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. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130123/b8339567/attachment.htm>
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