Files
vm-configs/debian.xml
2024-09-08 22:36:40 -04:00

25 lines
924 B
XML

<domain type='kvm'>
<name>basic-vm</name>
<memory unit='KiB'>1048576</memory> <!-- 1 GiB Memory -->
<vcpu placement='static'>1</vcpu> <!-- 1 vCPU -->
<os>
<type arch='x86_64' machine='pc-q35-7.2'>hvm</type> <!-- Change machine type based on your requirement -->
<boot dev='hd'/>
</os>
<cpu mode='host-passthrough'> <!-- Enable CPU passthrough -->
<topology sockets='1' cores='1' threads='1'/>
</cpu>
<devices>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source path='/var/lib/libvirt/images/basic-vm.qcow2'/> <!-- Disk image path -->
<target dev='vda' bus='virtio'/>
</disk>
<interface type='network'>
<mac address='52:54:00:xx:xx:xx'/> <!-- Replace with a unique MAC address -->
<source network='default'/>
<model type='virtio'/>
</interface>
</devices>
</domain>