-
Notifications
You must be signed in to change notification settings - Fork 0
QEMU Virtual Machine Installation
Lean's edited this page Mar 26, 2024
·
12 revisions
- sudo pacman -S qemu-full virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat
- sudo pacman -S ebtables iptables
Confirm overwrite
- sudo pacman -S libguestfs
- sudo systemctl enable libvirtd
- sudo systemctl start libvirtd
- sudo usermod -a -G libvirt $(whoami)
- sudo systemctl restart libvirtd
Unfortunately to this works you will need a secondary gpu, integrated counts as gpu
- go to BIOS in your system
- enable virtualization
- enable IOMMU
Get the GPU id and GPU audio id, find than and save it
- lspci -nn / NVIDIA simple: lspci -nn | grep "NVIDIA"
ID Example
[0030]: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] [10de:1b06] <-- this is the graphics id
[0030]: NVIDIA Corporation GP102 HDMI Audio Controller [10de:10ef] <-- this is the audio id
Enabling IOMMU in grub
- sudo vim /etc/default/grub
#AMD for AMD intel for intel..., change the id by the one you get from previous section
GRUB_CMDLINE_LINUX_DEFAULT="amd/intel_iommu=on vfio-pci.ids=graphicsId,audioId"
- sudo update-grub
- reboot
Now pickup the id from your integrated gpu or secondary gpu Add the ids in vfio
- sudo vim /etc/modprobe.d/vfio.conf
options vfio-pci ids=graphicsId,audioId