executable_qemu-vpn.sh 437 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Run qemu-system-x86_64 with KVM and bridge
  3. # Copyright © 2019 Oleg Pykhalov <go.wigust@gmail.com>
  4. # Released under the GNU GPLv3 or any later version.
  5. qemu-system-x86_64 \
  6. -smp cores=4,threads=1 \
  7. -m 4096 \
  8. -enable-kvm \
  9. -cpu host \
  10. -daemonize \
  11. -net nic,model=virtio,macaddr="52:54:a8:2c:f2:22" -net bridge,br=br0 \
  12. -vnc :5 \
  13. -hda /home/oleg/vm/debian.qcow2 \
  14. -boot order=c \
  15. "$@"