[libvirt-users] virtual machine id

Peter Krempa pkrempa at redhat.com
Wed Jan 23 13:33:59 UTC 2013


On 01/23/13 08:07, 春祥 王 wrote:
> Below is my start.xml:
> <domain type='kvm' id='12'>
>              <name>start-ubuntu</name>
>              <memory>1048576</memory>
>              <currentMemory>1048576</currentMemory>
>              <vcpu>1</vcpu>
> <os>
>                <type>hvm</type>
>                <boot dev='hd'/>
>                ......
> I start the machine   virsh create start.xml
> virsh list
> Id Name                           State
> ----------------------------------------------------
>   20    start-ubuntu                   running
>
> I set id=12,but it is actually 20,I don't know why.

The id field is assigned at start of a guest sequentially. You can't 
influence that in the XML.

Peter




More information about the libvirt-users mailing list