-
-
Save igalic/dba54db678ad2f12b08d35504e7909de to your computer and use it in GitHub Desktop.
LXD's qemu config
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
# Machine | |
[machine] | |
graphics = "off" | |
type = "q35" | |
accel = "kvm" | |
usb = "off" | |
[global] | |
driver = "ICH9-LPC" | |
property = "disable_s3" | |
value = "1" | |
[global] | |
driver = "ICH9-LPC" | |
property = "disable_s4" | |
value = "1" | |
[boot-opts] | |
strict = "on" | |
# Memory | |
[memory] | |
size = "4096M" | |
# CPU | |
[smp-opts] | |
cpus = "1" | |
maxcpus = "8" | |
[object "mem0"] | |
qom-type = "memory-backend-memfd" | |
size = "4096M" | |
share = "on" | |
[numa] | |
type = "node" | |
nodeid = "0" | |
memdev = "mem0" | |
# Firmware (read only) | |
[drive] | |
file = "/snap/lxd/current/share/qemu/OVMF_CODE.fd" | |
if = "pflash" | |
format = "raw" | |
unit = "0" | |
readonly = "on" | |
# Firmware settings (writable) | |
[drive] | |
file = "/dev/fd/3" | |
if = "pflash" | |
format = "raw" | |
unit = "1" | |
# Qemu control | |
[chardev "monitor"] | |
backend = "socket" | |
path = "/var/snap/lxd/common/lxd/logs/test-fbsd14/qemu.monitor" | |
server = "on" | |
wait = "off" | |
[mon] | |
chardev = "monitor" | |
mode = "control" | |
# Console | |
[chardev "console"] | |
backend = "socket" | |
path = "/var/snap/lxd/common/lxd/logs/test-fbsd14/qemu.console" | |
server = "on" | |
wait = "off" | |
[device "qemu_pcie0"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.0" | |
chassis = "0" | |
multifunction = "on" | |
# Balloon driver | |
[device "qemu_balloon"] | |
driver = "virtio-balloon-pci" | |
bus = "qemu_pcie0" | |
addr = "00.0" | |
multifunction = "on" | |
# Random number generator | |
[object "qemu_rng"] | |
qom-type = "rng-random" | |
filename = "/dev/urandom" | |
[device "dev-qemu_rng"] | |
driver = "virtio-rng-pci" | |
bus = "qemu_pcie0" | |
addr = "00.1" | |
rng = "qemu_rng" | |
# Input | |
[device "qemu_keyboard"] | |
driver = "virtio-keyboard-pci" | |
bus = "qemu_pcie0" | |
addr = "00.2" | |
# Input | |
[device "qemu_tablet"] | |
driver = "virtio-tablet-pci" | |
bus = "qemu_pcie0" | |
addr = "00.3" | |
# Vsock | |
[device "qemu_vsock"] | |
driver = "vhost-vsock-pci" | |
bus = "qemu_pcie0" | |
addr = "00.4" | |
guest-cid = "9" | |
# Virtual serial bus | |
[device "dev-qemu_serial"] | |
driver = "virtio-serial-pci" | |
bus = "qemu_pcie0" | |
addr = "00.5" | |
# LXD serial identifier | |
[chardev "qemu_serial-chardev"] | |
backend = "ringbuf" | |
size = "16B" | |
[device "qemu_serial"] | |
driver = "virtserialport" | |
name = "org.linuxcontainers.lxd" | |
chardev = "qemu_serial-chardev" | |
bus = "dev-qemu_serial.0" | |
# Spice agent | |
[chardev "qemu_spice-chardev"] | |
backend = "spicevmc" | |
name = "vdagent" | |
[device "qemu_spice"] | |
driver = "virtserialport" | |
name = "com.redhat.spice.0" | |
chardev = "qemu_spice-chardev" | |
bus = "dev-qemu_serial.0" | |
# Spice folder | |
[chardev "qemu_spicedir-chardev"] | |
backend = "spiceport" | |
name = "org.spice-space.webdav.0" | |
[device "qemu_spicedir"] | |
driver = "virtserialport" | |
name = "org.spice-space.webdav.0" | |
chardev = "qemu_spicedir-chardev" | |
bus = "dev-qemu_serial.0" | |
# USB controller | |
[device "qemu_usb"] | |
driver = "qemu-xhci" | |
bus = "qemu_pcie0" | |
addr = "00.6" | |
p2 = "8" | |
p3 = "8" | |
[chardev "qemu_spice-usb-chardev1"] | |
backend = "spicevmc" | |
name = "usbredir" | |
[device "qemu_spice-usb1"] | |
driver = "usb-redir" | |
chardev = "qemu_spice-usb-chardev1" | |
[chardev "qemu_spice-usb-chardev2"] | |
backend = "spicevmc" | |
name = "usbredir" | |
[device "qemu_spice-usb2"] | |
driver = "usb-redir" | |
chardev = "qemu_spice-usb-chardev2" | |
[chardev "qemu_spice-usb-chardev3"] | |
backend = "spicevmc" | |
name = "usbredir" | |
[device "qemu_spice-usb3"] | |
driver = "usb-redir" | |
chardev = "qemu_spice-usb-chardev3" | |
[device "qemu_pcie1"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.1" | |
chassis = "1" | |
# SCSI controller | |
[device "qemu_scsi"] | |
driver = "virtio-scsi-pci" | |
bus = "qemu_pcie1" | |
addr = "00.0" | |
[device "qemu_pcie2"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.2" | |
chassis = "2" | |
# Config drive (9p) | |
[fsdev "qemu_config"] | |
fsdriver = "local" | |
security_model = "none" | |
readonly = "on" | |
path = "/var/snap/lxd/common/lxd/devices/test-fbsd14/config.mount" | |
[device "dev-qemu_config-drive-9p"] | |
driver = "virtio-9p-pci" | |
bus = "qemu_pcie2" | |
addr = "00.0" | |
multifunction = "on" | |
mount_tag = "config" | |
fsdev = "qemu_config" | |
# Config drive (virtio-fs) | |
[chardev "qemu_config"] | |
backend = "socket" | |
path = "/var/snap/lxd/common/lxd/logs/test-fbsd14/virtio-fs.config.sock" | |
[device "dev-qemu_config-drive-virtio-fs"] | |
driver = "vhost-user-fs-pci" | |
bus = "qemu_pcie2" | |
addr = "00.1" | |
tag = "config" | |
chardev = "qemu_config" | |
[device "qemu_pcie3"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.3" | |
chassis = "3" | |
# GPU | |
[device "qemu_gpu"] | |
driver = "virtio-vga" | |
bus = "qemu_pcie3" | |
addr = "00.0" | |
[device "qemu_pcie4"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.4" | |
chassis = "4" | |
[device "qemu_pcie5"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.5" | |
chassis = "5" | |
[device "qemu_pcie6"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.6" | |
chassis = "6" | |
[device "qemu_pcie7"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "1.7" | |
chassis = "7" | |
[device "qemu_pcie8"] | |
driver = "pcie-root-port" | |
bus = "pcie.0" | |
addr = "2.0" | |
chassis = "8" | |
multifunction = "on" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment