Files
libvirt/tests/genericxml2xmlindata/disk-nvme.xml
T
Martin Kletzander d80386745a docs, conf, schemas: Add support for NVMe disks
NVMe disks are essentially a namespace of an NVMe controller, but to
make it easier for the users to just add a disk, the necessary details
like adding the proper controller, setting the serial number for the
controller based on the disk, are done automatically.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Honglei Wang <honglei.wang@smartx.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2025-06-09 15:12:39 +02:00

33 lines
971 B
XML

<domain type='qemu'>
<name>bar</name>
<uuid>00010203-0405-4607-8809-0a0b0c0d0e0f</uuid>
<memory unit='KiB'>219136</memory>
<currentMemory unit='KiB'>219136</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/HostVG/QEMUGuest1'/>
<target dev='nvme0n1' bus='nvme'/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/HostVG/QEMUGuest2'/>
<target dev='nvme3n2' bus='nvme'/>
<serial>abcdefgh</serial>
</disk>
<controller type='nvme' index='0'/>
<controller type='nvme' index='1'>
<serial>CDEFGAHC</serial>
</controller>
</devices>
</domain>