QEMU.md (694B)
1 # QEMU 2 3 ## Usage 4 5 ### Create disk-image 6 7 Create a disk image: 8 9 `qemu-img create -f qcow2 debian.qcow 20G` 10 11 Boot with: 12 13 `qemu-system-x86_64 -hda debian.qcow -cdrom {ISO_PATH} -boot d -m 4096` 14 15 ### Run disk image 16 17 Running a qemu disk image: 18 19 `qemu-system-x86_64 {image}` 20 21 Specify host CPU model, 4 cores, 4G ram: 22 23 `qemu-system-x86_64 debian.qcow -cpu host -enable-kvm -smp 4 -m 4G` 24 25 NOTE: Get your mouse out with ctrl+alt+g. Apparently this is only for the GTK version, the other uses ctrl+alt on the left side for both. 26 27 ### SSH Access 28 29 By default, the VM can SSH **out** to any host on the local network (by private IP), but you can't SSH into the VM. 30 31 ### Backups 32 33 Just copy the disk image.