Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- dir=~/vm
- exec qemu-system-x86_64 -nographic -nodefaults -machine q35,accel=kvm -m 256 \
- -drive "file=$dir/debian64.img,media=disk,format=raw,if=virtio" \
- -netdev user,id=hostnet0 \
- -chardev stdio,signal=off,id=channel0,mux=on \
- -mon chardev=channel0 \
- -device virtio-net-pci,netdev=hostnet0 \
- -device virtio-serial-pci,id=virtio-serial0 \
- -device virtconsole,bus=virtio-serial0.0,chardev=channel0 \
- -virtfs local,path=$HOME,mount_tag=home,security_model=passthrough \
- -append 'ro root=/dev/vda1 console=hvc0' -kernel "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement