15 lines
540 B
Plaintext
15 lines
540 B
Plaintext
|
[Unit]
|
||
|
Description=AniNIX/{{ inventory_hostname }}
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/sbin/qemu-system-x86_64 -name AniNIX/{{ inventory_hostname }} -machine type=pc,accel=kvm -bios /usr/share/edk2-ovmf/x64/OVMF.fd -cpu host -smp {{ cores }} {{ disks }} -net nic,macaddr={{ mac }},model=virtio -net bridge,br={{ bridge }} -vga std -nographic -vnc :{{ vnc }} -m size={{ memory }}G -device virtio-rng-pci
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
KillMode=process
|
||
|
Restart=always
|
||
|
User=root
|
||
|
Group=root
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|