Skip to contentSkip to conversation

Is it, valuable to achieve modify boot index when vm is running?

Qemu-devel ChenLiang 4 participants 6 messages Jun 25, 2014 – Jun 26, 2014 1 message not in the archive

lore
Share & tools
lore

ChenLiang

author
#0 lore raw

hi,all
Qemu can not modify boot index when vm is running. It is inconvenience when we install guest os. Is it necessary to achieve modify boot index online? We can add one qmp interface to achieve it.

#1 lore raw
Quoted 2 lines · ChenLiang

hi,all
Qemu can not modify boot index when vm is running.

So? Boot index is used exactly once - when the domain is started. After that, you aren't booting any more, so what benefit is there to changing boot index on the fly?

Quoted 2 lines

It is inconvenience when we install guest os. Is it necessary to achieve modify boot index online?

virt-install manages to install guests just fine without changing the boot index on the fly; it manages to sequence multiple qemu runs with different boot indices between runs.

Quoted 1 line

We can add one qmp interface to achieve it.

You're welcome to submit a patch if you think you have a use case; but I personally don't see the current setup as limiting.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#2 lore raw

Il 25/06/2014 15:27, Eric Blake ha scritto:

Quoted 5 lines
Quoted 1 line
Quoted 1 line

Qemu can not modify boot index when vm is running.

So? Boot index is used exactly once - when the domain is started. After that, you aren't booting any more, so what benefit is there to changing boot index on the fly?

It's also used when you reboot. However, there are currently pre-existing bugs in bootindex handling (especially regarding hotplug and hot-unplug) that should be fixed before allowing modification of boot index while the VM is running.

The command to do the modification could be qom-set. We can make the bootindex property runtime-modifiable.

Paolo

#3 lore raw
Quoted 10 lines

Il 25/06/2014 15:27, Eric Blake ha scritto:

Quoted 5 lines
Quoted 1 line
Quoted 1 line

Qemu can not modify boot index when vm is running.

So? Boot index is used exactly once - when the domain is started. After that, you aren't booting any more, so what benefit is there to changing boot index on the fly?

It's also used when you reboot. However, there are currently pre-existing bugs in bootindex handling (especially regarding hotplug and hot-unplug) that should be fixed before allowing modification of boot index while the VM is running.

yeah, it is.

Quoted 2 lines

The command to do the modification could be qom-set. We can make the bootindex property runtime-modifiable.

ok, I will try to achieve it.

Best regards
chenliang

Quoted 2 lines

Paolo

#4 lore raw
In reply to Eric Blake
Quoted 10 lines · ChenLiang
Quoted 2 lines

hi,all
Qemu can not modify boot index when vm is running.

So? Boot index is used exactly once - when the domain is started. After that, you aren't booting any more, so what benefit is there to changing boot index on the fly?

Quoted 6 lines
Quoted 2 lines

It is inconvenience when we install guest os. Is it necessary to achieve modify boot index online?

virt-install manages to install guests just fine without changing the boot index on the fly; it manages to sequence multiple qemu runs with different boot indices between runs.

Thanks for your advice. I will try it.

Quoted 6 lines
Quoted 2 lines

We can add one qmp interface to achieve it.

You're welcome to submit a patch if you think you have a use case; but I personally don't see the current setup as limiting.

There is one case when reboot in vm.

Best regards
chenliang

Quoted 4 lines
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
author
#6 lore raw
In reply to a message not in the archive
Quoted 14 lines

________________________________________

发件人: [email protected] [[email protected]] 代表 ChenLiang [[email protected]] 发送时间: 2014年6月25日 18:28
收件人: [email protected]
抄送: Paolo Bonzini
主题: [Qemu-devel] [question] Is it, valuable to achieve modify boot index when vm is running?

hi,all
Qemu can not modify boot index when vm is running. It is inconvenience when we install guest os. Is it necessary to achieve modify boot index online? We can add one qmp interface to achieve it.

Quoted 3 lines

cc: qemu-discuss
Do you mean changing the boot option without closing QEMU process? If so, it is a good demand.

yeah, I mean it.

Quoted 3 lines

--
Best Regards,
Kewei