[Users] Invoking guest os script, without guest having network connectivity?

Itamar Heim iheim at redhat.com
Fri Nov 23 14:07:47 UTC 2012


On 11/23/2012 03:47 PM, Shlomi Tsadok wrote:
> Hi Itamar
>
> In the Wiki I see references on attaching floppy/iso as a payload. Is it
> possible to trigger a bash script (with parameters), for example,
> inside the guest using this mechanism?
> If so, can you please point me to some documentation?

the payload is attached at boot.
cloud-init is a sample daemon which at guest startup look up for 
payloads and acts on them.
for example, the deltaclout project has a cloud-init extension to read 
from payload data it expects.

http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/sources/DataSourceAltCloud.py

>
> Thank you
> Shlomi
>
> On Nov 23, 2012 2:23 PM, "Itamar Heim" <iheim at redhat.com
> <mailto:iheim at redhat.com>> wrote:
>
>     On 11/23/2012 01:48 PM, Shlomi Tsadok wrote:
>
>         I'm looking for a way to configure the guest
>         networking(including IP)
>         dynamically, using a custom script, right after VM creation.
>
>         Is there a similar feature in oVirt as the Invoke-VMScript in of
>         VMware's PowerCLI? It allows you to run a script in the guest
>         OS, even
>         before the guest has networking connectivity ( the host talks to the
>         vmtools agent that's  installed in the guest).
>
>
>     currently, you can attach to the guest a "payload", and have a
>     script in the guest expecting that payload and acting on it (which
>     is what cloud-init does).
>
>
>         Native KVM/libvirt option will be good as well.
>
>
>     if kvm/libvirt allow it, you can use a custom vdsm hook as well.
>
>
>         Thanks,
>         Shlomi
>
>         Invoke-VMScript reference:
>         http://www.vmware.com/support/__developer/windowstoolkit/__wintk40u1/html/Invoke-__VMScript.html
>         <http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/Invoke-VMScript.html>
>
>
>
>         _________________________________________________
>         Users mailing list
>         Users at ovirt.org <mailto:Users at ovirt.org>
>         http://lists.ovirt.org/__mailman/listinfo/users
>         <http://lists.ovirt.org/mailman/listinfo/users>
>
>
>





More information about the Users mailing list