diff options
author | Julien Dessaux | 2021-06-16 17:58:22 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-06-16 18:04:02 +0200 |
commit | 094cd0bb6ef48ad28b8a8a7edddf1648e8806304 (patch) | |
tree | bb93b9c41a59dd84e0a3de3da67d3c5d6abab633 /content/blog/commands | |
parent | Fixed mistake (diff) | |
download | www-094cd0bb6ef48ad28b8a8a7edddf1648e8806304.tar.gz www-094cd0bb6ef48ad28b8a8a7edddf1648e8806304.tar.bz2 www-094cd0bb6ef48ad28b8a8a7edddf1648e8806304.zip |
Added blog article
Diffstat (limited to 'content/blog/commands')
-rw-r--r-- | content/blog/commands/qemu-bis.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/content/blog/commands/qemu-bis.md b/content/blog/commands/qemu-bis.md new file mode 100644 index 0000000..ddaf4b1 --- /dev/null +++ b/content/blog/commands/qemu-bis.md @@ -0,0 +1,32 @@ +--- +title: "Simple qemu vm" +date: 2021-06-16 +description: How to start a simple qemu vm, no gui! +tags: + - Linux + - virtualization +--- + +## Introduction + +I know I already blogged about it in 2019 in [this article]({{< ref "qemu.md" >}}) but it is good to refresh one's memory for something so useful. No virt-manager or any other gui required, no complicated networking... It's easy! + +## Installation + +```sh +qemu-img create -f raw alpine.raw 16G +qemu-system-x86_64 -drive file=alpine.raw,format=raw,cache=writeback \ + -cdrom Downloads/alpine-virt-3.14.0-x86_64.iso \ + -net user -boot d -machine type=q35,accel=kvm \ + -cpu host -smp 2 -m 1024 -vnc :0 +``` + +Connect to the console with a `vncviewer localhost`. + +## Afterwards + +```sh +qemu-system-x86_64 -drive file=alpine.raw,format=raw,cache=writeback \ + -net user -machine type=q35,accel=kvm \ + -cpu host -smp 2 -m 1024 -vnc :0 +``` |