Repository : ssh://git@diktynna/doc
On branches: backup-redmine/2021-09-11,backup-redmine/2021-10-09,backup-redmine/2021-11-13,backup-redmine/2021-12-11,backup-redmine/2022-01-08,backup-redmine/2022-02-12,backup-redmine/2022-03-12,backup-redmine/2022-04-09,backup-redmine/2022-05-07,backup-redmine/2022-06-11,backup-redmine/2022-08-06,backup-redmine/2022-10-07,backup-redmine/2022-11-14,backup-redmine/2023-01-14,main
>---------------------------------------------------------------
commit 4fd33e021f72751c4963ef6d1abd9d6a32ed1a0e
Author: Sven Eckelmann <sven(a)narfation.org>
Date: Sat Sep 4 00:34:42 2021 +0000
doc: open-mesh/OpenWrt_in_QEMU: switch to modern virtio-scsi
>---------------------------------------------------------------
4fd33e021f72751c4963ef6d1abd9d6a32ed1a0e
open-mesh/OpenWrt_in_QEMU.textile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/open-mesh/OpenWrt_in_QEMU.textile b/open-mesh/OpenWrt_in_QEMU.textile
index ff8c1e3d..0e9c07e7 100644
--- a/open-mesh/OpenWrt_in_QEMU.textile
+++ b/open-mesh/OpenWrt_in_QEMU.textile
@@ -101,7 +101,7 @@ BOOTARGS+=("-serial" "chardev:charconsole0")
#BASE_IMG=debian.img
#BOOTARGS+=("-bios" "qboot/build/bios.bin")
#BOOTARGS+=("-kernel" "linux-next/arch/x86/boot/bzImage")
-#BOOTARGS+=("-append" "root=/dev/vda rw console=hvc0 nokaslr tsc=reliable no_timer_check noreplace-smp rootfstype=ext4 rcupdate.rcu_expedited=1 reboot=t pci=lastbus=0 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 no_hash_pointers")
+#BOOTARGS+=("-append" "root=/dev/sda rw console=hvc0 nokaslr tsc=reliable no_timer_check noreplace-smp rootfstype=ext4 rcupdate.rcu_expedited=1 reboot=t pci=lastbus=0 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 no_hash_pointers")
#BOOTARGS+=("-device" "virtconsole,chardev=charconsole0,id=console0")
for i in $(seq 1 "${NUM_SESSIONS}"); do
@@ -120,7 +120,9 @@ for i in $(seq 1 "${NUM_SESSIONS}"); do
-display none -no-user-config -nodefaults \
-m 512M,maxmem=2G,slots=2 -device virtio-balloon \
-cpu host -smp 2 -machine q35,accel=kvm,usb=off,dump-guest-core=off \
- -drive file=root.cow$i,if=virtio,cache=unsafe \
+ -device virtio-scsi-pci \
+ -device scsi-hd,drive=drive0 \
+ -drive file=root.cow$i,if=none,id=drive0,cache=unsafe,discard=unmap \
-nic tap,ifname=tap$i,script=no,downscript=no,model=virtio,mac=02:ba:de:af:fe:"${twodigit_id}" \
-nic user,model=virtio,mac=06:ba:de:af:fe:"${twodigit_id}" \
-virtfs local,path="${SHARED_PATH}",security_model=none,mount_tag=host \