y2kbug

QEMU

Jul 2nd, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. qemu-img create -f qcow2 /Users/rogerleung/ubuntu.qcow2 25G
  2.  
  3. qemu-system-x86_64 \
  4. -enable-kvm \
  5. -no-user-config \
  6. -nodefaults \
  7. -show-cursor \
  8. -M pc-q35-3.1,accel=hvf,usb=off,vmport=off \
  9. -cpu Penryn,kvm=on,vendor=GenuineIntel \
  10. -smp 4,sockets=1,cores=2,threads=2 \
  11. -m 4096 \
  12. -realtime mlock=off \
  13. -rtc base=utc,driftfix=slew \
  14. -drive file=/Users/rogerleung/ubuntu.qcow2,if=none,format=qcow2,id=disk0 \
  15. -device virtio-blk-pci,bus=pcie.0,addr=0x1,drive=disk0 \
  16. -netdev user,id=net0 \
  17. -device virtio-net-pci,netdev=net0,bus=pcie.0,addr=0x2 \
  18. -device virtio-keyboard-pci,bus=pcie.0,addr=0x3 \
  19. -device virtio-tablet-pci,bus=pcie.0,addr=0x4 \
  20. -device virtio-vga,bus=pcie.0,addr=0x5 \
  21. -cdrom /Users/rogerleung/Downloads/ubuntu-20.04-desktop-amd64.iso -boot d
Add Comment
Please, Sign In to add comment