LinuxCommandLibrary

qemu-system-x86_64

TLDR

Boot ISO image

$ qemu-system-x86_64 -cdrom [image.iso] -boot d
copy
Boot disk image
$ qemu-system-x86_64 -hda [disk.qcow2]
copy
Boot with memory and CPU
$ qemu-system-x86_64 -m [2G] -smp [2] -hda [disk.qcow2]
copy
Boot with KVM acceleration
$ qemu-system-x86_64 -enable-kvm -m [4G] -hda [disk.qcow2]
copy
Boot with network
$ qemu-system-x86_64 -hda [disk.qcow2] -nic user,hostfwd=tcp::2222-:22
copy

SYNOPSIS

qemu-system-x86_64 [options] [diskimage_]

DESCRIPTION

qemu-system-x86_64 emulates x86_64 systems. Full system emulator for running operating systems. Supports KVM hardware acceleration on Linux for near-native performance.

PARAMETERS

-m size

RAM size (e.g., 2G, 4096M).
-smp cpus
Number of CPUs.
-hda file
Primary hard disk image.
-cdrom file
CD-ROM image.
-boot order
Boot order (c=disk, d=cdrom).
-enable-kvm
Enable KVM acceleration.
-nic options
Network configuration.
-nographic
Disable graphical output.
-vnc display
Enable VNC server.

SEE ALSO

Copied to clipboard