2017-01-10 20:07:15 +03:00
|
|
|
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
|
2016-11-24 17:54:15 +00:00
|
|
|
<name></name>
|
2020-08-12 21:26:36 +01:00
|
|
|
<title>title</title>
|
|
|
|
|
<description>description</description>
|
2016-11-24 17:54:15 +00:00
|
|
|
<uuid></uuid>
|
|
|
|
|
<memory></memory>
|
2020-04-29 13:08:01 -05:00
|
|
|
<vcpu cpuset='1-4,^3,6'>1</vcpu>
|
2016-11-24 17:54:15 +00:00
|
|
|
<cpu mode='custom'>
|
2021-11-22 17:29:11 +00:00
|
|
|
<model fallback='allow'>qemu64</model>
|
|
|
|
|
<feature name='AAA' policy='required'/>
|
|
|
|
|
<topology sockets='1' cores='3' threads='2'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
</cpu>
|
2020-05-10 04:52:46 -05:00
|
|
|
<numatune>
|
|
|
|
|
<memory nodeset='1-4,^3,6'/>
|
|
|
|
|
</numatune>
|
2022-11-10 12:22:37 +00:00
|
|
|
<memtune>
|
|
|
|
|
<hard_limit unit='KiB'>250000</hard_limit>
|
|
|
|
|
<soft_limit unit='KiB'>200000</soft_limit>
|
|
|
|
|
</memtune>
|
2020-05-10 05:24:06 -05:00
|
|
|
<cputune>
|
2022-10-08 05:14:08 -05:00
|
|
|
<vcpupin vcpu="0" cpuset="0" />
|
2020-05-10 05:24:06 -05:00
|
|
|
<shares>1024</shares>
|
|
|
|
|
</cputune>
|
2016-11-24 17:54:15 +00:00
|
|
|
<os>
|
2021-11-22 17:29:11 +00:00
|
|
|
<type arch='x86_64' machine='pc-compatible'>hvm</type>
|
|
|
|
|
<loader readonly='yes' type='rom'>/efi/loader</loader>
|
|
|
|
|
<bootmenu enable='yes'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<kernel></kernel>
|
|
|
|
|
<initrd></initrd>
|
|
|
|
|
<cmdline></cmdline>
|
2022-08-16 18:44:11 +02:00
|
|
|
<smbios mode='sysinfo'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
</os>
|
2022-08-16 18:44:11 +02:00
|
|
|
<sysinfo type='smbios'>
|
|
|
|
|
<system>
|
|
|
|
|
<entry name='serial'>AAAAAAAA</entry>
|
|
|
|
|
</system>
|
|
|
|
|
<oemStrings>
|
|
|
|
|
<entry>AAAAAAAA</entry>
|
|
|
|
|
</oemStrings>
|
|
|
|
|
</sysinfo>
|
2016-11-24 17:54:15 +00:00
|
|
|
<features>
|
|
|
|
|
<acpi/>
|
|
|
|
|
<apic/>
|
|
|
|
|
<pae/>
|
2018-03-21 19:00:28 +01:00
|
|
|
<hyperv>
|
|
|
|
|
<BBB state='on' />
|
2019-09-04 20:57:15 +02:00
|
|
|
<spinlocks state='on' retries='4096' />
|
2018-03-21 19:00:28 +01:00
|
|
|
</hyperv>
|
2016-11-24 17:54:15 +00:00
|
|
|
</features>
|
2020-12-16 20:19:24 +01:00
|
|
|
<clock offset='variable'>
|
|
|
|
|
<timer name='t1'/>
|
|
|
|
|
<timer name='t2' track='b' tickpolicy='c' frequency='d' mode='e' present='yes'/>
|
|
|
|
|
</clock>
|
2016-11-24 17:54:15 +00:00
|
|
|
<devices>
|
|
|
|
|
<emulator>/usr/bin/kvm-spice</emulator>
|
|
|
|
|
<disk type='file' device='disk'>
|
2021-10-08 18:00:01 +01:00
|
|
|
<alias name='ua-box-volume-0'/>
|
2020-12-17 22:03:47 +11:00
|
|
|
<driver name='qemu' type='qcow2' cache='unsafe' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<source file='/var/lib/libvirt/images/test.qcow2'/>
|
|
|
|
|
<target dev='vda' bus='ide'/>
|
2022-11-14 13:52:22 +01:00
|
|
|
<address type='virtio-mmio'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
</disk>
|
Allow to use many disks in vagrant box for libvirt provider
Adds support for a new multi disk box format and handling to upload the
multiple disks to the storage pool.
New format is:
{
'disks': [
{
'name': 'disk1.img',
'virtual_size': 10,
'format': 'qcow2'
},
{
'name': 'disk2.img',
'virtual_size': 15,
'format': 'qcow2'
},
{
'name': 'disk3.img',
}
],
'provider': 'libvirt',
'format': 'qcow2'
}
It is expected to remove format from being set at the top level when
using the new format, with the assuming that qcow2 should be the default
format, and other formats should be permitted to be specified as needed.
Includes tests for handling the box images and creation of domain
volumes. Additionally includes an integration test to ensure a box with
2 disks will work as expected.
Partially fixes: #602
2020-09-10 10:03:00 +02:00
|
|
|
<disk type='file' device='disk'>
|
2021-10-08 18:00:01 +01:00
|
|
|
<alias name='ua-box-volume-1'/>
|
Allow to use many disks in vagrant box for libvirt provider
Adds support for a new multi disk box format and handling to upload the
multiple disks to the storage pool.
New format is:
{
'disks': [
{
'name': 'disk1.img',
'virtual_size': 10,
'format': 'qcow2'
},
{
'name': 'disk2.img',
'virtual_size': 15,
'format': 'qcow2'
},
{
'name': 'disk3.img',
}
],
'provider': 'libvirt',
'format': 'qcow2'
}
It is expected to remove format from being set at the top level when
using the new format, with the assuming that qcow2 should be the default
format, and other formats should be permitted to be specified as needed.
Includes tests for handling the box images and creation of domain
volumes. Additionally includes an integration test to ensure a box with
2 disks will work as expected.
Partially fixes: #602
2020-09-10 10:03:00 +02:00
|
|
|
<driver name='qemu' type='qcow2' cache='unsafe' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
|
|
|
|
|
<source file='/var/lib/libvirt/images/test2.qcow2'/>
|
|
|
|
|
<target dev='vdb' bus='ide'/>
|
2022-11-14 13:52:22 +01:00
|
|
|
<address type='virtio-mmio'/>
|
Allow to use many disks in vagrant box for libvirt provider
Adds support for a new multi disk box format and handling to upload the
multiple disks to the storage pool.
New format is:
{
'disks': [
{
'name': 'disk1.img',
'virtual_size': 10,
'format': 'qcow2'
},
{
'name': 'disk2.img',
'virtual_size': 15,
'format': 'qcow2'
},
{
'name': 'disk3.img',
}
],
'provider': 'libvirt',
'format': 'qcow2'
}
It is expected to remove format from being set at the top level when
using the new format, with the assuming that qcow2 should be the default
format, and other formats should be permitted to be specified as needed.
Includes tests for handling the box images and creation of domain
volumes. Additionally includes an integration test to ensure a box with
2 disks will work as expected.
Partially fixes: #602
2020-09-10 10:03:00 +02:00
|
|
|
</disk>
|
2016-11-24 17:54:15 +00:00
|
|
|
<disk type='file' device='disk'>
|
2021-10-08 18:00:01 +01:00
|
|
|
<alias name='ua-disk-volume-0'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<driver name='qemu' type='qcow2' cache='default'/>
|
|
|
|
|
<source file='/var/lib/libvirt/images/test-disk1.qcow2'/>
|
2021-11-22 10:02:18 +00:00
|
|
|
<target dev='vdc' bus='virtio'/>
|
2022-11-14 13:52:22 +01:00
|
|
|
<address type='virtio-mmio'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
</disk>
|
|
|
|
|
<disk type='file' device='disk'>
|
2021-10-08 18:00:01 +01:00
|
|
|
<alias name='ua-disk-volume-1'/>
|
2020-12-17 22:03:47 +11:00
|
|
|
<driver name='qemu' type='qcow2' cache='default' io='threads' copy_on_read='on' discard='unmap' detect_zeroes='on'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<source file='/var/lib/libvirt/images/test-disk2.qcow2'/>
|
2021-11-22 10:02:18 +00:00
|
|
|
<target dev='vdd' bus='virtio'/>
|
2022-11-14 13:52:22 +01:00
|
|
|
<address type='virtio-mmio'/>
|
|
|
|
|
</disk>
|
|
|
|
|
<disk type='file' device='disk'>
|
|
|
|
|
<alias name='ua-disk-volume-2'/>
|
|
|
|
|
<driver name='qemu' type='qcow2' cache='default'/>
|
|
|
|
|
<source file='/var/lib/libvirt/images/test-disk3.qcow2'/>
|
|
|
|
|
<target dev='vde' bus='virtio'/>
|
|
|
|
|
<address type='pci'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
</disk>
|
|
|
|
|
<disk type='file' device='cdrom'>
|
2018-08-06 12:52:26 +01:00
|
|
|
<driver name='qemu' type='raw' />
|
2016-11-24 17:54:15 +00:00
|
|
|
<source file=''/>
|
|
|
|
|
<target dev='hda' bus='ide'/>
|
|
|
|
|
<readonly/>
|
|
|
|
|
</disk>
|
|
|
|
|
<disk type='file' device='cdrom'>
|
2018-08-06 12:52:26 +01:00
|
|
|
<driver name='qemu' type='raw' />
|
2016-11-24 17:54:15 +00:00
|
|
|
<source file=''/>
|
|
|
|
|
<target dev='hdb' bus='ide'/>
|
|
|
|
|
<readonly/>
|
|
|
|
|
</disk>
|
2022-10-08 13:59:06 +03:00
|
|
|
<disk type='file' device='floppy'>
|
|
|
|
|
<source file=''/>
|
|
|
|
|
<target dev='fda' bus='fdc'/>
|
|
|
|
|
</disk>
|
2021-10-19 16:37:46 +02:00
|
|
|
<serial type='file'>
|
|
|
|
|
<source path='/var/log/vm_consoles/machine.log'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<target port='0'/>
|
|
|
|
|
</serial>
|
2021-10-19 16:37:46 +02:00
|
|
|
<console type='file'>
|
|
|
|
|
<source path='/var/log/vm_consoles/machine.log'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<target port='0'/>
|
|
|
|
|
</console>
|
2021-11-22 17:29:11 +00:00
|
|
|
<channel type='unix' >
|
|
|
|
|
<target type='virtio' name='org.qemu.guest_agent.0'/>
|
|
|
|
|
</channel>
|
|
|
|
|
<channel type='spicevmc' >
|
|
|
|
|
<target type='virtio' name='com.redhat.spice.0'/>
|
|
|
|
|
</channel>
|
|
|
|
|
<channel type='unix' >
|
|
|
|
|
<source path='/tmp/foo'/>
|
|
|
|
|
<target type='guestfwd' address='192.0.2.42' port='4242'/>
|
|
|
|
|
</channel>
|
2022-11-10 12:22:37 +00:00
|
|
|
<input type='mouse' bus='ps2'>
|
|
|
|
|
</input>
|
2021-11-22 17:29:11 +00:00
|
|
|
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us'>
|
|
|
|
|
<gl enable='yes'/>
|
|
|
|
|
</graphics>
|
|
|
|
|
<video>
|
2022-10-02 21:43:37 +01:00
|
|
|
<model type='virtio' vram='16384' heads='1'>
|
2022-08-08 21:41:42 +00:00
|
|
|
<acceleration accel3d='yes'/>
|
2021-11-22 17:29:11 +00:00
|
|
|
</model>
|
|
|
|
|
</video>
|
|
|
|
|
<rng model='virtio'>
|
|
|
|
|
<backend model='random'>/dev/random</backend>
|
|
|
|
|
</rng>
|
|
|
|
|
<hostdev mode='subsystem' type='pci' managed='yes'>
|
|
|
|
|
<source>
|
2022-05-04 10:11:50 +01:00
|
|
|
<address domain='0x0000' bus='0x06' slot='0x12' function='0x5'/>
|
2021-11-22 17:29:11 +00:00
|
|
|
</source>
|
|
|
|
|
</hostdev>
|
|
|
|
|
<hostdev mode='subsystem' type='pci' managed='yes'>
|
|
|
|
|
<source>
|
2022-05-05 10:37:42 +02:00
|
|
|
<address domain='0x0001' bus='0x03' slot='0x00' function='0x0'/>
|
2021-11-22 17:29:11 +00:00
|
|
|
</source>
|
|
|
|
|
</hostdev>
|
2022-05-04 10:11:50 +01:00
|
|
|
<hostdev mode='subsystem' type='pci' managed='yes'>
|
|
|
|
|
<source>
|
2022-05-05 10:37:42 +02:00
|
|
|
<address domain='0x0002' bus='0x04' slot='0x00' function='0x0'/>
|
2022-05-04 10:11:50 +01:00
|
|
|
</source>
|
|
|
|
|
<address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
|
|
|
|
|
</hostdev>
|
2021-11-22 17:29:11 +00:00
|
|
|
<hostdev mode='subsystem' type='usb'>
|
|
|
|
|
<source startupPolicy='mandatory'>
|
2022-08-08 21:41:42 +00:00
|
|
|
<vendor id='0x1234'/>
|
|
|
|
|
<product id='0xabcd'/>
|
|
|
|
|
<address bus='1' device='2'/>
|
2021-11-22 17:29:11 +00:00
|
|
|
</source>
|
|
|
|
|
</hostdev>
|
|
|
|
|
<redirdev bus='usb' type='tcp'>
|
|
|
|
|
</redirdev>
|
|
|
|
|
<redirfilter>
|
|
|
|
|
<usbdev class='0x0b' vendor='0x08e6' product='0x3437' version='2.00' allow='yes'/>
|
|
|
|
|
</redirfilter>
|
2017-01-10 00:10:56 +01:00
|
|
|
<watchdog model='i6300esb' action='reset'/>
|
2021-11-22 17:29:11 +00:00
|
|
|
<smartcard mode='passthrough' type='spicevmc'/>
|
2016-11-24 17:54:15 +00:00
|
|
|
<tpm model='tpm-tis'>
|
|
|
|
|
<backend type='passthrough'>
|
|
|
|
|
<device path='/dev/tpm0'/>
|
|
|
|
|
</backend>
|
|
|
|
|
</tpm>
|
2022-11-10 12:22:37 +00:00
|
|
|
<controller type='usb' model='nec-xhci' ports="4" >
|
|
|
|
|
</controller>
|
2016-11-24 17:54:15 +00:00
|
|
|
</devices>
|
2017-01-10 20:07:15 +03:00
|
|
|
<qemu:commandline>
|
|
|
|
|
<qemu:arg value='-device'/>
|
|
|
|
|
<qemu:arg value='dummy-device'/>
|
2020-05-10 09:37:31 -04:00
|
|
|
<qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
|
|
|
|
|
<qemu:env name='QEMU_AUDIO_TIMER_PERIOD' value='150'/>
|
|
|
|
|
<qemu:env name='QEMU_PA_SAMPLES' value='1024'/>
|
|
|
|
|
<qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/>
|
2017-01-10 20:07:15 +03:00
|
|
|
</qemu:commandline>
|
2016-11-24 17:54:15 +00:00
|
|
|
</domain>
|