Skip to main content

KVM/QEMU

簡介

QEMU為Fabrice Bellard開發的開源硬體模擬器軟體,支援模擬x86、ARM、SPARC、RISC-V、MIPS各種架構的電腦。

Home: QEMU

Installation

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

virsh

Guest CPU Models

# 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