* Invoking guest os script, without guest having network connectivity?
@ 2012-11-24 16:40 Shlomi Tsadok
2012-11-26 11:06 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Shlomi Tsadok @ 2012-11-24 16:40 UTC (permalink / raw)
To: kvm
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 KVM/Libvirt 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).
Thanks,
Shlomi
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Invoking guest os script, without guest having network connectivity?
2012-11-24 16:40 Invoking guest os script, without guest having network connectivity? Shlomi Tsadok
@ 2012-11-26 11:06 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2012-11-26 11:06 UTC (permalink / raw)
To: Shlomi Tsadok; +Cc: kvm
On Sat, Nov 24, 2012 at 06:40:39PM +0200, 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 KVM/Libvirt 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).
The QEMU guest agent (qemu-ga) has features that may allow you to do
this. I'm not familiar enough with it to give details, here are some
alternatives:
If you provide a kernel + initramfs externally (outside the guest disk
image) you can add files to the initramfs. This allows you to customize
boot up.
Alternatively you can use PXE booting to achieve the same thing.
Finally, you could edit the disk image using libguestfs or qemu-nbd
before booting it for the first time. This gives you a chance to
customize configuration and startup files.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-26 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-24 16:40 Invoking guest os script, without guest having network connectivity? Shlomi Tsadok
2012-11-26 11:06 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox