Created
February 4, 2025 21:14
-
-
Save Alveel/40b5496c1e92262c38e5b73dd66786ac to your computer and use it in GitHub Desktop.
Base TrueNAS libvirt definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm'> | |
<name>truenas</name> | |
<memory unit='KiB'>8388608</memory> | |
<currentMemory unit='GiB'>8</currentMemory> | |
<vcpu placement='static'>2</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-q35-9.2'>hvm</type> | |
<boot dev='cdrom'/> | |
<boot dev='hd'/> | |
</os> | |
<cpu mode='host-passthrough' check='none' migratable='on'/> | |
<devices> | |
<disk type='volume' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source pool='machinepool' volume='truenas-boot'/> | |
<target dev='vda' bus='virtio'/> | |
</disk> | |
<disk type='volume' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source pool='machinepool' volume='truenas-flash'/> | |
<target dev='vdb' bus='virtio'/> | |
</disk> | |
<disk type='block' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source dev='/dev/disk/by-id/ata-BRAND_MODEL_SERIAL'/> | |
<target dev='vdc' bus='virtio'/> | |
</disk> | |
<disk type='file' device='cdrom'> | |
<driver name='qemu' type='raw'/> | |
<source file='/var/lib/libvirt/isos/TrueNAS-SCALE-24.10.1.iso'/> | |
<backingStore/> | |
<target dev='sda' bus='sata'/> | |
<readonly/> | |
</disk> | |
<interface type='bridge'> | |
<source bridge='br0'/> | |
<model type='virtio'/> | |
<mac address="52:54:00:5f:e7:61"/> | |
</interface> | |
<graphics type='vnc' port='-1' autoport='yes' listen='192.168.178.5'> | |
<listen type='address' address='192.168.178.5'/> | |
</graphics> | |
</devices> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment