From: Laszlo Ersek <lersek@redhat.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: Yanqiangjun <yanqiangjun@huawei.com>,
Luonengjun <luonengjun@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Huangweidong (Hardware)" <huangweidong@huawei.com>
Subject: Re: [Qemu-devel] "virsh edit" failed to take effect on KVM
Date: Thu, 09 May 2013 14:58:56 +0200 [thread overview]
Message-ID: <518B9D90.7050900@redhat.com> (raw)
In-Reply-To: <33183CC9F5247A488A2544077AF190205369B2BE@szxeml538-mbx.china.huawei.com>
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
next prev parent reply other threads:[~2013-05-09 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 11:42 [Qemu-devel] "virsh edit" failed to take effect on KVM Gonglei (Arei)
2013-05-09 12:58 ` Laszlo Ersek [this message]
2013-05-09 14:11 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=518B9D90.7050900@redhat.com \
--to=lersek@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=huangweidong@huawei.com \
--cc=luonengjun@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=yanqiangjun@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).