qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] "virsh edit" failed to take effect on KVM
@ 2013-05-09 11:42 Gonglei (Arei)
  2013-05-09 12:58 ` Laszlo Ersek
  2013-05-09 14:11 ` Eric Blake
  0 siblings, 2 replies; 3+ messages in thread
From: Gonglei (Arei) @ 2013-05-09 11:42 UTC (permalink / raw)
  To: libvirt-list-request@redhat.com
  Cc: Yanqiangjun, Luonengjun, qemu-devel@nongnu.org,
	Huangweidong (Hardware)

Hi all,
   we use the command "virsh edit"  to modify the VM configuration information online on KVM Platform(libvirt-1.0.0 and qemu-1.4), 
but it does not take effect after reboot. However, it works fine on Xen Platform.
  
   for an example,a VM is running with the following configuration information:
	   ...
	   <os>
		<type arch='x86_64'>hvm</type>
		<boot dev='hd'/>
		<bootmenu enable='yes'/>
	  </os>
	  ...
   use command "virsh edit " to modify it:
	   ...
	   <os>
		<type arch='x86_64'>hvm</type>
		<boot dev='cdrom'/>
		<bootmenu enable='yes'/>
	  </os>
	  ...
With the changing, the VM is expected to start from cdrom, when execute the command "virsh reboot".
But the fact is that the modify does not take effect, the VM is still start from hd. 
Well, it will take effect if I use command "virsh shutdown" and "virsh start" instesad of "virsh reboot".
We are wondering if there have any other ways to take the online modify effect. 
What is the next step going on with the command "virsh edit" on KVM Platform? Any ideas? 

Thanks!

-Gonglei

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] "virsh edit" failed to take effect on KVM
  2013-05-09 11:42 [Qemu-devel] "virsh edit" failed to take effect on KVM Gonglei (Arei)
@ 2013-05-09 12:58 ` Laszlo Ersek
  2013-05-09 14:11 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Laszlo Ersek @ 2013-05-09 12:58 UTC (permalink / raw)
  To: Gonglei (Arei)
  Cc: Yanqiangjun, Luonengjun, qemu-devel@nongnu.org,
	Huangweidong (Hardware)

On 05/09/13 13:42, Gonglei (Arei) wrote:
> Hi all,
>    we use the command "virsh edit"  to modify the VM configuration information online on KVM Platform(libvirt-1.0.0 and qemu-1.4), 
> but it does not take effect after reboot. However, it works fine on Xen Platform.
>   
>    for an example,a VM is running with the following configuration information:
> 	   ...
> 	   <os>
> 		<type arch='x86_64'>hvm</type>
> 		<boot dev='hd'/>
> 		<bootmenu enable='yes'/>
> 	  </os>
> 	  ...
>    use command "virsh edit " to modify it:
> 	   ...
> 	   <os>
> 		<type arch='x86_64'>hvm</type>
> 		<boot dev='cdrom'/>
> 		<bootmenu enable='yes'/>
> 	  </os>
> 	  ...
> With the changing, the VM is expected to start from cdrom, when execute the command "virsh reboot".
> But the fact is that the modify does not take effect, the VM is still start from hd. 
> Well, it will take effect if I use command "virsh shutdown" and "virsh start" instesad of "virsh reboot".
> We are wondering if there have any other ways to take the online modify effect. 
> What is the next step going on with the command "virsh edit" on KVM Platform? Any ideas? 

Under Xen, "xm reboot" (or, more likely, "xl reboot" recently), which is
what I expect "virsh reboot" to translate to, always creates a brand new
domain. Therefore domain config changes take effect.

Under KVM the same VM instance continues to run, it just goes through an
emulated reset.

Laszlo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] "virsh edit" failed to take effect on KVM
  2013-05-09 11:42 [Qemu-devel] "virsh edit" failed to take effect on KVM Gonglei (Arei)
  2013-05-09 12:58 ` Laszlo Ersek
@ 2013-05-09 14:11 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2013-05-09 14:11 UTC (permalink / raw)
  To: Gonglei (Arei)
  Cc: Yanqiangjun, Luonengjun, qemu-devel@nongnu.org,
	Huangweidong (Hardware)

[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]

On 05/09/2013 05:42 AM, Gonglei (Arei) wrote:
> Hi all,
>    we use the command "virsh edit"  to modify the VM configuration information online on KVM Platform(libvirt-1.0.0 and qemu-1.4), 
> but it does not take effect after reboot. However, it works fine on Xen Platform.

This sort of question belongs best on libvirt-users@redhat.com
(libvirt-list-request is not the right list address, and your question
isn't quite relevant to qemu-devel).

> With the changing, the VM is expected to start from cdrom, when execute the command "virsh reboot".

'virsh reboot' triggers a software reboot (reusing the same existing
qemu process); but 'virsh edit' only affects what will take place on a
hard boot (creation of a new qemu process).

> But the fact is that the modify does not take effect, the VM is still start from hd. 
> Well, it will take effect if I use command "virsh shutdown" and "virsh start" instesad of "virsh reboot".

Correct, because that sequence spawns a new qemu process.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-09 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 11:42 [Qemu-devel] "virsh edit" failed to take effect on KVM Gonglei (Arei)
2013-05-09 12:58 ` Laszlo Ersek
2013-05-09 14:11 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).