aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/qemu
blob: f749c29738c1c0ff8250e06c5c9a3cb9b84453fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Prepare folder for images

mkdir ~/.qemu_imgs

# Creating hard disk

qemu-img create -f qcow2 ~/.qemu_imgs/image_file.cow 4G

# Install operating system

qemu-system-x86_64 -cdrom ~/Download/image.iso -boot order=d -drive file=/home/<user>/.qemu_imgs/image_file.cow,format=qcow2

tips: Get the mouse after grabbed by qemu: Ctrl+Alt+g