Thank you very much.
For example, if at first I install an OS in a virtual machine from NETWORK, then I modify
the boot option from NETWORK to HD online, at last I reboot the virtual machine.
I hope it can boot from HD now. Can per-device boot indexes work on this situation? If
yes, how does it work? If no, can I try to make a patch to set boot indexes online
(maybe play with the QEMU command "boot_set")?
-----Original Message-----
From: Jiri Denemark [mailto:jdenemar@redhat.com]
Sent: Monday, March 03, 2014 9:31 PM
To: Daniel P. Berrange
Cc: Wangyufei (James); libvir-list(a)redhat.com; Moyuxiang; Zhaoyanbin (A)
Subject: Re: [libvirt] [Question] Will we support to set boot order online?
On Mon, Mar 03, 2014 at 09:58:40 +0000, Daniel Berrange wrote:
> On Mon, Mar 03, 2014 at 08:22:13AM +0000, Wangyufei (James) wrote:
> > Hello,
> > I find that QEMU supports to set boot(QMP command "boot_set")
order
> > online, namely the virtual machine can be reboot in appointed order,
> > but libvirt had no corresponding interface. So, I want to know if libvirt
> > intend to support to set boot order online. If the answer is yes, I'll
> > try to apply the patch. If no, why?
>
> AFAIK, no one has looked at this.
>
> NB, this will only work for guests actually using the old style boot
> order. Any guests using per-device boot indexes for ordering won't
> work with this command.
Hmm, looks like it's quite useless because libvirt uses per-device boot
indexes whenever it is possible even if the domain XML used the old way
of specifying boot order. Thus, it's very likely any domain running in a
QEMU which is not ancient will be using per-device boot order.
Jirka