
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:/clou...
Thank you Shlomi
On Nov 23, 2012 2:23 PM, "Itamar Heim" <iheim@redhat.com <mailto:iheim@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/In... <http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/Invoke-VMScript.html>
_________________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/__mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>