run_qemu.sh: use virtio disk and network

This commit is contained in:
Johannes 'josch' Schauer 2020-01-03 15:56:25 +01:00
parent 7815fd16e6
commit c20056d48f
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1
2 changed files with 3 additions and 2 deletions

View file

@ -282,7 +282,7 @@ timeout 0
label linux label linux
kernel /vmlinuz kernel /vmlinuz
append initrd=/initrd.img root=/dev/sda1 rw console=ttyS0,115200 append initrd=/initrd.img root=/dev/vda1 rw console=ttyS0,115200
serial 0 115200 serial 0 115200
END END
cat << END > "$tmpdir/mmdebstrap.service" cat << END > "$tmpdir/mmdebstrap.service"

View file

@ -35,5 +35,6 @@ qemu-system-x86_64 \
-monitor unix:/tmp/monitor,server,nowait \ -monitor unix:/tmp/monitor,server,nowait \
-serial unix:/tmp/ttyS0,server,nowait \ -serial unix:/tmp/ttyS0,server,nowait \
-serial unix:/tmp/ttyS1,server,nowait \ -serial unix:/tmp/ttyS1,server,nowait \
-net nic,model=virtio -net user \
-virtfs local,id=mmdebstrap,path="$(pwd)/shared",security_model=none,mount_tag=mmdebstrap \ -virtfs local,id=mmdebstrap,path="$(pwd)/shared",security_model=none,mount_tag=mmdebstrap \
-drive file="$tmpdir/debian-$DEFAULT_DIST-overlay.qcow",cache=unsafe,index=0 -drive file="$tmpdir/debian-$DEFAULT_DIST-overlay.qcow",cache=unsafe,index=0,if=virtio