From 662f7542ef8ef32f41fab3312ba845eb16647f8c Mon Sep 17 00:00:00 2001 From: lazymio Date: Wed, 3 Jan 2024 16:20:29 +0800 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1e45f6..82671bb 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ qemu-system-arm -m 512 -M virt -cpu cortex-a15 \ -device virtio-blk-device,drive=hd0 \ -drive if=none,file=debian-bullseye-armhf-armmp.qcow2,id=hd0 \ -append "root=/dev/vda rw console=ttyAMA0 rodata=n net.ifnames=0" \ - -nic user,model=virtio-net-pci,hostfwd=tcp::5555-:22 -nographic + -device virtio-net-device,netdev=usernet \ + -netdev user,id=usernet,hostfwd=tcp::5555-:22 -nographic ``` Refer to [QEMU ARM doc](https://wiki.qemu.org/Documentation/Platforms/ARM) for details. @@ -223,4 +224,4 @@ On emulated targets: parted /dev/vda resizepart 1 100% resize2fs /dev/vda reboot -``` \ No newline at end of file +```