QEMU: Difference between revisions
import>User3412 Powered by VirtIO/libvirt™ |
import>User3412 New configuration |
||
Line 11: | Line 11: | ||
QEMU has no GUI, but what if you want to use the command-line? Then this is for you! <br> | QEMU has no GUI, but what if you want to use the command-line? Then this is for you! <br> | ||
QEMU has many arguments, but here's a basic example of usage of the AMD64 softmmu (targeted for modern QEMU and modern linux)<nowiki>:</nowiki> <br> | QEMU has many arguments, but here's a basic example of usage of the AMD64 softmmu (targeted for modern QEMU and modern linux)<nowiki>:</nowiki> <br> | ||
<code>qemu-system-x86_64 - | <code>qemu-system-x86_64 -M pc -cdrom .\alpine-virt-3.16.2-x86_64.iso -boot cd -drive if=virtio,file=alpine.qcow2 -m 1G -accel tcg -device virtio-vga,edid=on,xres=800,yres=600 -usb -device usb-tablet -net user,hostfwd=tcp::22-:22 -net nic,model=virtio</code> <br> | ||
You need to create the disk image using the following command<nowiki>:</nowiki> <br> | You need to create the disk image using the following command<nowiki>:</nowiki> <br> | ||
<code>qemu-img create -f qcow2 alpine.qcow2 30G</code> <br> | <code>qemu-img create -f qcow2 alpine.qcow2 30G</code> <br> |