IMAGE="/home/gautam/fun/linux/programming/image"
qemu-system-x86_64
-m 4G
-smp 2
-kernel /opt/linux/arch/x86/boot/bzImage
-append "console=ttyS0 root=/dev/sda earlyprintk=serial net.ifnames=0 kasan.fault=report"
-drive file=$IMAGE/buster.img,format=raw
-net user,hostfwd=tcp::10021-:22 -net nic
-enable-kvm
-usb -device qemu-xhci,id=xhci -device usb-host,hostdevice=/dev/bus/usb/001/003 -nographic -pidfile vm.pid 2>&1 | tee vm.log
Created
September 29, 2022 09:28
-
-
Save gautammenghani/a12062d214ad92a9e87b34f38cf9d521 to your computer and use it in GitHub Desktop.
pass thru usb drive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment