QEMU: Difference between revisions
import>User3412 No edit summary |
m 13 revisions imported |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
QEMU has no virtual machine manager (but virt-manager and GNOME boxes are good ones), but what if you want to use the command-line? Then this is for you! <br> | QEMU has no virtual machine manager (but virt-manager and GNOME boxes are good ones), 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 -M pc -cdrom .\alpine.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::8022-:22 -net nic,model= | <code>qemu-system-x86_64 -M pc -cdrom .\alpine.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::8022-:22 -net nic,model=e1000</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> |