From c20056d48fb3f26686335c69f8fffad9ed5884a6 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 3 Jan 2020 15:56:25 +0100 Subject: [PATCH] run_qemu.sh: use virtio disk and network --- make_mirror.sh | 2 +- run_qemu.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/make_mirror.sh b/make_mirror.sh index 2f80651..cad8f3e 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -282,7 +282,7 @@ timeout 0 label linux 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 END cat << END > "$tmpdir/mmdebstrap.service" diff --git a/run_qemu.sh b/run_qemu.sh index d234dc6..91c6ddf 100755 --- a/run_qemu.sh +++ b/run_qemu.sh @@ -35,5 +35,6 @@ qemu-system-x86_64 \ -monitor unix:/tmp/monitor,server,nowait \ -serial unix:/tmp/ttyS0,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 \ - -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