π» Virtual Machine Manager (VMM)
VM software by Red Hat
See Windows & DOS VMs for minimum and maximum system requirements (RAM, VRAM, etc.)
virt-manager qemu qemu-utilssudo systemctl enable/start libvirtd
qemu-system-i386 ... -net user,hostfwd=tcp:443::443 -redir tcp:80::80 -redir tcp:22::22 -hda storage.img -nographic
qemu-img convert -f raw -O qcow "/dir/machine.vdi" "/dir/machine.img"
virt-clone --original /dir/c8n1.img --name "new name" --file c8n2.imgvirt-clone --original "c8n0" --name "c8n1" --auto-clonevirt-clone --connect=qemu:///system -o "vm" -n "newvm" --auto-cloneOR copy
.img; then usevirt-managerto create a new VM; use the.img
sudo qemu-img create -f raw drive.img 20Gsudo gpartedsudo fdisk -l
sudo qemu-img resize "/dir/vm.img" +10G+20G,40G,80G, etc.. When usingresizeuse same VM storage container type (.img)
sudo qemu-img resize "/dir/vm.img" -10G-20G,-40G, etc.
sudo dd if=/dir/qemu/vm.img of=/dev/sXX
- Packages:
ebtables&dnsmasq - Check box for Link State:
Active
Crash after every sound event?
Install gstreamer plugins
gst-plugins*reboot
yay -S system76-powersudo systemctl enable com.system76.PowerDaemon.servicesudo systemctl start com.system76.PowerDaemon.serviceSee Arch Wiki: PCI Passthrough via OVMF for GPU indentification
vfio-pci.ids=To add
vfio-pci.idsvia virt-manager GUIRight click VM > Open > View Details > Add Hardware > PCI Host Device >
vfio-pci.idMost modern GPUs have at least one ID for video, and one ID for HDMI audio
If you have VM startup issues make sure both are passed to the guest system
sudo system76-power graphics integrated && sudo vim /etc/default/grubIf
system76-powererrors out remove the service andenable+startthen run the command againrm /etc/systemd/system/system76-power.servicesudo systemctl enable system76-power.servicesudo systemctl start system76-power.service
Comment out existing
GRUB_CMDLINE_LINUX_DEFAULTThe following line is for Thinkpad X1 Extreme G2 w/Nvidia 1650 Max-Q)
++ GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog nvme_load=YES intel_iommu=on igfx_off kvm.ignore_msrs=1 vfio-pci.ids=10de:1f91,10de:10faupdate-grubrebootTo revert the process so that the host has GPU access comment out above and use this line instead
sudo vim /etc/default/grub++ GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog nvme_load=YES kvm.ignore_msrs=1update-grubreboot
VRAM (Default:
QXL 16M)Go to preferences
Check box for XML editing
Go to VM video preferences
Exit XML and add
vram="64000"Or whatever amount is needed
OR change to
vgamem=""forQXL16M= 16384,32M= 32768,64M= 65536,120M= 122880,240M= 245760
Install kernel-headers
apti linux-kernel-headersIf headers are not already installed
Virtio w/3D Acceleration
Virtio as GPU
Check 3D Acceleration & change VRAM to
32M+Display Spice
Listen type: None
Check OpenGL
- Select GPU
Guest needs mesa >= 11.2 compiled with option..
gallium-drivers=virgl
sudo addgroup vboxsudo usermod -aG vbox userInstalling to USB via VMM
Add new USB device that points to USB drive in VMM console
- Otherwise Live ISOs won’t detect USB drives etc.
- VirtIO Disk 1 > Virtual Disk > Advanced Options > Disk bus: SATA
sudo EDITOR=vim virsh
sudo virsh net-edit default++ <host mac='' name='' ip=''/>sudo virsh net-destroy defaultsudo virsh net-start default
Domain setup w/
virt-managervirsh list --allvirsh autostart [domain]virsh autostart [domain] --disableIf needed
virsh net-autostart defaultsudo systemctl enable libvirtdvim /vm_autostart_script.sh++ #!/bin/bash ++ sudo virt-viewer --domain <domain> -f ++ while pgrep -u $USER qemu > /dev/null; do ++ sleep 5 ++ done ++ poweroffAdd script to
.startx.. add.startxto~/.profile
Add hardware > Channel > spice webdav
Install
spice-webdavvia guestAlso:
gvfs-fuse