mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
39366c37f6
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>
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
<domain type="kvm">
|
|
<name>w2k3_32bit</name>
|
|
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
|
<description>Description added by RWMJ.</description>
|
|
<memory>1048576</memory>
|
|
<currentMemory>1048576</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch="x86_64" machine="pc">hvm</type>
|
|
<boot dev="hd"/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<vmport state="off"/>
|
|
</features>
|
|
<cpu mode="host-model"/>
|
|
<clock offset="utc">
|
|
<timer name="rtc" tickpolicy="catchup"/>
|
|
<timer name="pit" tickpolicy="delay"/>
|
|
<timer name="hpet" present="no"/>
|
|
</clock>
|
|
<pm>
|
|
<suspend-to-mem enabled="no"/>
|
|
<suspend-to-disk enabled="no"/>
|
|
</pm>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
|
<disk type="file" device="disk">
|
|
<driver name="qemu"/>
|
|
<source file="/var/lib/libvirt/images/w2k3_32bit-disk1"/>
|
|
<target dev="sda" bus="scsi"/>
|
|
</disk>
|
|
<controller type="usb" model="ich9-ehci1"/>
|
|
<controller type="usb" model="ich9-uhci1">
|
|
<master startport="0"/>
|
|
</controller>
|
|
<controller type="usb" model="ich9-uhci2">
|
|
<master startport="2"/>
|
|
</controller>
|
|
<controller type="usb" model="ich9-uhci3">
|
|
<master startport="4"/>
|
|
</controller>
|
|
<interface type="bridge">
|
|
<source bridge="testsuitebr0"/>
|
|
<mac address="00:11:22:33:44:55"/>
|
|
<model type="e1000"/>
|
|
</interface>
|
|
<console type="pty"/>
|
|
<channel type="spicevmc">
|
|
<target type="virtio" name="com.redhat.spice.0"/>
|
|
</channel>
|
|
<input type="tablet" bus="usb"/>
|
|
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes">
|
|
<image compression="off"/>
|
|
</graphics>
|
|
<sound model="ich6"/>
|
|
<video>
|
|
<model type="qxl"/>
|
|
</video>
|
|
<redirdev bus="usb" type="spicevmc"/>
|
|
<redirdev bus="usb" type="spicevmc"/>
|
|
</devices>
|
|
</domain>
|
|
|
|
|
|
Copying w2k3 32bit-disk1.vmdk to /var/lib/libvirt/images/w2k3_32bit-disk1
|