mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-10 04:58:08 -05:00
Libvirt is able to figure this out and it will make usage of the CLI
options more user-friendly.
For example if users wants to add a new pcie-root-port to existing VM
they have to figure out the latest controller index and call it like
this:
virt-xml \
--add-device \
--controller pci,model=pcie-root-port,index=$nextIndex \
$VM
After this change it will be simply:
virt-xml \
--add-device \
--controller pci,model=pcie-root-port \
$VM
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
30 lines
699 B
XML
30 lines
699 B
XML
<domain type="test">
|
|
<name>vm1</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<memory>65536</memory>
|
|
<currentMemory>65536</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch="i686">hvm</type>
|
|
<loader secure="yes">/path/to/loader</loader>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<pae/>
|
|
</features>
|
|
<clock offset="utc"/>
|
|
<pm>
|
|
<suspend-to-mem enabled="no"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/test-hv</emulator>
|
|
<controller type="usb" model="none"/>
|
|
<interface type="user">
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="e1000"/>
|
|
</interface>
|
|
<console type="pty"/>
|
|
</devices>
|
|
</domain>
|