[libvirt] Redefining the XML of VM

Eric Blake eblake at redhat.com
Wed Jan 8 14:03:54 UTC 2014

On 01/08/2014 06:36 AM, Ján Tomko wrote:
> On 01/08/2014 01:56 PM, kangta123 wrote:
>> Hi,
>> I'm a newbie to Libvirt, i want to know if i can change the vm definition xml dynamically. like change cpu, network value.
> You can't do that with hooks. You'll need to edit the domain definition before
> you ask libvirt to start it.

There are _some_ things you can change on a running domain, such as
network devices, by means of hotplug operations.  But you can't do a
wholesale change of the XML outside of hotplug except for an offline domain.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140108/21cb5cdb/attachment-0001.sig>

More information about the libvir-list mailing list