executable_ubuntu 247 B

1234567
  1. #!/usr/bin/env bash
  2. export QEMU_AUDIO_DRV=pa
  3. export QEMU_PA_SERVER=/run/user/1000/pulse/native
  4. qemu-system-x86_64 -name ubuntu -smp cores=4,threads=1 -m 4096 -enable-kvm -cpu host -soundhw hda -daemonize -vga virtio -hda "$HOME"/vm/ubuntu.qcow2