Checking support for KVM

1
$ LC_ALL=C lscpu | grep Virtualization
1
$ zgrep CONFIG_KVM /proc/config.gz
1
$ lsmod | grep kvm
1
$ zgrep VIRTIO /proc/config.gz
1
$ lsmod | grep virtio
1
$ sudo modprobe virtio
1
sudo pacman -S qemu
1
$ sudo vim /etc/default/grub
1
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet iommu=pt intel_iommu=on vfio-pci.ids=8086:a12f"
1
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
1
$ git clone https://github.com/foxlet/macOS-Simple-KVM
1
$ git clone https://github.com/foxlet/vmra1n
1
$ cd vmra1n
1
$ sudo ./lsiommu.sh
1
IOMMU Group 4 00:14.0 USB controller [0c03]: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller [8086:a12f] (rev 31)
1
$ vim rebind.sh
1
2
BIND_PID1="8086:a12f"
BIND_BDF1="0000:00:14.0

Reference

  1. https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Setting_up_IOMMU
  2. https://wiki.archlinux.org/index.php/Kernel_parameters#GRUB