Linux command
qemu-system-x86_64 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Boot ISO image
qemu-system-x86_64 -cdrom [image.iso] -boot d
Boot disk image
qemu-system-x86_64 -hda [disk.qcow2]
Boot with memory and CPU
qemu-system-x86_64 -m [2G] -smp [2] -hda [disk.qcow2]
Boot with KVM acceleration
qemu-system-x86_64 -enable-kvm -m [4G] -hda [disk.qcow2]
Boot with network
qemu-system-x86_64 -hda [disk.qcow2] -nic user,hostfwd=tcp::2222-:22
说明
qemu-system-x86_64 is a full-system emulator for the x86_64 architecture. It can run complete operating systems including Linux, Windows, and BSD. With KVM hardware acceleration on Linux, it achieves near-native performance. QEMU emulates CPU, memory, storage, network, and display devices. It supports multiple disk image formats (qcow2, raw, vmdk), various network configurations, and both graphical and serial console output. It is the backend for higher-level virtualization tools like libvirt, virt-manager, and Proxmox.
参数
- -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.
- -cpu _model_
- CPU model to emulate.
- -drive _options_
- Define a drive (file, format, if, media).
- -serial _device_
- Redirect serial port.
FAQ
What is the qemu-system-x86_64 command used for?
qemu-system-x86_64 is a full-system emulator for the x86_64 architecture. It can run complete operating systems including Linux, Windows, and BSD. With KVM hardware acceleration on Linux, it achieves near-native performance. QEMU emulates CPU, memory, storage, network, and display devices. It supports multiple disk image formats (qcow2, raw, vmdk), various network configurations, and both graphical and serial console output. It is the backend for higher-level virtualization tools like libvirt, virt-manager, and Proxmox.
How do I run a basic qemu-system-x86_64 example?
Run `qemu-system-x86_64 -cdrom [image.iso] -boot d` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -m _size_ do in qemu-system-x86_64?
RAM size (e.g., 2G, 4096M).