KVM/QEMU
簡介
QEMU為Fabrice Bellard開發的開源硬體模擬器軟體,支援模擬x86、ARM、SPARC、RISC-V、MIPS各種架構的電腦。
Home: QEMU
Installation
- Ubuntu安裝QEMU/KVM和Virt Manager虛擬機管理員 · Ivon的部落格 (ivonblog.com)
- How to Install and Use Qemu on Ubuntu (itsfoss.com)
- EmuGUI + QEMU,Windows系統安裝虛擬機軟體 · Ivon的部落格 (ivonblog.com)
- Setting Up Virtual Machines with QEMU, KVM, and Virt-Manager on Debian/Ubuntu - LinuxConfig
- How to run virtual machines with virt-manager - Fedora Magazine
- How to Install KVM on Fedora 37/36 Step-by-Step
Fedora
QEMU
sudo dnf update
sudo dnf install qemu
KVM/QEMU/Virt-Manager
sudo dnf install -y qemu-kvm libvirt virt-install bridge-utils qemu virt-manager \
libvirt-devel virt-top libguestfs-tools guestfs-tools
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
sudo usermod -a -G libvirt $(whoami)
Command Line
- How To Use QEMU From the Linux Command-Line | Baeldung on Linux
- A Comprehensive Guide to Using QEMU from the Linux Command-Line — nixFAQ
virsh
# For x86
virsh cpu-models x86_64
# For PowerPC
virsh cpu-models ppc64
FAQ
Operation not permitted
qemu-system-ppc64: -net nic -net tap,script=no,ifname=tap0: could not configure /dev/net/tun (tap): Operation not permitted
Solution:
sudo setcap CAP_NET_ADMIN=ep /usr/bin/qemu-system-ppc64