From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaQOs-0007hb-1G for qemu-devel@nongnu.org; Thu, 09 May 2013 08:56:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaQOp-0000Gn-Bn for qemu-devel@nongnu.org; Thu, 09 May 2013 08:56:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaQOp-0000Gc-40 for qemu-devel@nongnu.org; Thu, 09 May 2013 08:56:43 -0400 Message-ID: <518B9D90.7050900@redhat.com> Date: Thu, 09 May 2013 14:58:56 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: <33183CC9F5247A488A2544077AF190205369B2BE@szxeml538-mbx.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF190205369B2BE@szxeml538-mbx.china.huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] "virsh edit" failed to take effect on KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: > ... > > 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? 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