fix(pxe-infra): script=no,downscript=no on the tap netdev
By default invokes /etc/qemu-ifup
after opening the tap (and /etc/qemu-ifdown on shutdown).
That script does not exist on a stock NixOS install, and
QEMU fails with:
network script /etc/qemu-ifup failed with status 256
The pre-start already brings the tap up (ip link set … up)
and the postStop tears it down, so we tell QEMU not to
call out to /etc/qemu-if{up,down} via script=no,
downscript=no.
This commit is contained in:
1 parent
4f69d96e4e
commit
a1aaa46908
1 file changed
+1
-1
@@ -82,7 +82,7 @@
|
||||
-smp ${toString config.pxe-infra.vm.cpus} \
|
||||
-m ${config.pxe-infra.vm.memory} \
|
||||
-drive if=pflash,format=raw,readonly=on,file=${pkgs.OVMF.fd}/FV/OVMF.fd \
|
||||
-netdev tap,id=net0,ifname=pxe0-tap \
|
||||
-netdev tap,id=net0,ifname=pxe0-tap,script=no,downscript=no \
|
||||
-device virtio-net-pci,netdev=net0,mac=${config.pxe-infra.vm.mac} \
|
||||
-boot n \
|
||||
-nographic \
|
||||
|
||||
Reference in new issue
Block a user