Fix network and working without cdrom

This commit is contained in:
Anthony Rose 2022-09-06 21:53:11 +01:00
parent b9ce8a2c26
commit 31a6f7487b

View file

@ -42,6 +42,9 @@ ram=1G
# only be accessible from this host (or via SSH tunnels). # only be accessible from this host (or via SSH tunnels).
vnc="localhost:0" vnc="localhost:0"
# Network TAP device.
netif=tap0
# Change to /dev/nmdm0A for the first null-modem. # Change to /dev/nmdm0A for the first null-modem.
comoutput=stdio comoutput=stdio
@ -70,8 +73,8 @@ fi
-H \ -H \
-s 0,hostbridge \ -s 0,hostbridge \
-s 1,virtio-blk,$vmpath/${vmname}_disk0.img \ -s 1,virtio-blk,$vmpath/${vmname}_disk0.img \
-s 2,virtio-net,tap0 \ -s 2,virtio-net,$netif \
${cdrom:-""} \ $cdrom \
-s 29,fbuf,tcp=${vnc},w=800,h=600 \ -s 29,fbuf,tcp=${vnc},w=800,h=600 \
-s 30,xhci,tablet \ -s 30,xhci,tablet \
-s 31,lpc \ -s 31,lpc \