Re: [libvirt] "virsh edit" failed to take effect on KVM

2013-05-09 Thread Daniel P. Berrange
On Thu, May 09, 2013 at 11:49:05AM +, 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:
>  ...
>  
>   hvm
>   
>   
> 
> ...
>use command "virsh edit " to modify it:
>  ...
>  
>   hvm
>   
>   
> 
> ...
> 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. 

"virsh edit" changes the persistent configuration of a guest, and as such this
has no effect on the runtime state of the guest. The changes will only take
effect at the next cold boot. 'virsh reboot' does a warm boot, hence won't see
the changes.

> 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? 

AFAIK, there is no way to programatically change the BIOS boot order for
a running QEMU process.

Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] "virsh edit" failed to take effect on KVM

2013-05-09 Thread Gonglei (Arei)
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:
   ...
   
hvm


  
  ...
   use command "virsh edit " to modify it:
   ...
   
hvm


  
  ...
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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list