Skip to content

Instantly share code, notes, and snippets.

@f9n
Last active February 25, 2019 21:36
Show Gist options
  • Save f9n/0b3429644a18da761a97ccdf146bc3d8 to your computer and use it in GitHub Desktop.
Save f9n/0b3429644a18da761a97ccdf146bc3d8 to your computer and use it in GitHub Desktop.
Virtualization with cli tools
$ sudo pacman -S qemu
$ qemu-image create -f raw new_qemu_image 20G
OR
$ qemu-image create -f qcow2 new_qemu_image 20G

$ qemu-system-x86_64 -smp 2 -m 2G -enable-kvm -cdrom CentOS-7-x86_64-DVD-1708.iso -boot order=d new_qemu_image
# Installing CentOs...
$ qemu-system-x86_64 -k en-us -vga std -enable-kvm -m 2G -smp 2 -boot c new_qemu_image
# Running CentOs...

Ctrl+Alt+G (when you want to exit qemu gui) -k en-us (keymap) -smp 2 (number of cores)

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment