From f8ac8e9f6a159eadea0ac709e300ab8742e5f428 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Apr 2024 15:40:42 +0800 Subject: [PATCH] auto_update --- ...\240\347\247\215\346\250\241\345\274\217.md" | 17 ----------------- 1 file changed, 17 deletions(-) diff --git "a/source/_posts/qemu/qemu\350\277\220\350\241\214virtio_net\347\232\204\345\207\240\347\247\215\346\250\241\345\274\217.md" "b/source/_posts/qemu/qemu\350\277\220\350\241\214virtio_net\347\232\204\345\207\240\347\247\215\346\250\241\345\274\217.md" index 07870a0..402bcbd 100644 --- "a/source/_posts/qemu/qemu\350\277\220\350\241\214virtio_net\347\232\204\345\207\240\347\247\215\346\250\241\345\274\217.md" +++ "b/source/_posts/qemu/qemu\350\277\220\350\241\214virtio_net\347\232\204\345\207\240\347\247\215\346\250\241\345\274\217.md" @@ -73,23 +73,6 @@ qemu-system-x86_64 -machine q35,accel=kvm,usb=off,vmport=off,dump-guest-core=off -nographic -serial mon:stdio -monitor tcp:127.0.0.1:3333,server,nowait ``` -qemu-system-x86_64 -machine q35,accel=kvm,usb=off,vmport=off,dump-guest-core=off,kernel_irqchip=split -cpu host -m 1G \ - -object memory-backend-file,id=ram-node0,prealloc=yes,mem-path=/dev/hugepages,share=yes,size=1G \ - -numa node,nodeid=0,memdev=ram-node0 \ - -smp 2 ./test.raw \ - -enable-kvm \ - -chardev socket,id=charnet0,path=/usr/local/var/run/openvswitch/vhost-user1 \ - -netdev vhost-user,chardev=charnet0,id=hostnet0,queues=6 \ - -device pcie-root-port,port=0x10,chassis=1,id=pci.4,bus=pcie.0,multifunction=on,addr=0x2 \ - -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:00:34:56,bus=pci.4,mq=on,host_mtu=3500 \ - -chardev socket,id=charnet1,path=/usr/local/var/run/openvswitch/vhost-user2 \ - -netdev vhost-user,chardev=charnet1,id=hostnet1,queues=6 \ - -device pcie-root-port,port=0x11,chassis=0,id=pci.5,bus=pcie.0,multifunction=on,addr=0x3 \ - -device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:00:34:57,bus=pci.5,mq=on,host_mtu=3500 \ - -device e1000e,netdev=tap_dev1,bus=pcie.0 \ - -netdev tap,ifname=tap_dev1,id=tap_dev1,vhost=off,script=/etc/qemu-ifup,downscript=no,queues=6,br=docker0 \ - -nographic -serial mon:stdio -monitor tcp:127.0.0.1:3333,server,nowait - # qemu-ifup ```sh cat << 'EOF' > /etc/qemu-ifup