====== Craptrap - the home of (crap) virtualized workstations ======
===== Hardware =====
* Ryzen 5950X
* 128GB RAM
* R9 290
===== Software =====
* Debian
* Qemu (libvirt KVM)
===== VM's ======
* **Win10 => winbox.waw.hackerspace.pl (10.8.1.48)**
* Włączanie/wyłączanie na http://iot.waw.hackerspace.pl (via S3 - suspend to ram)
* Podłączenie zdalne przez RDP (Microsoft Remote Desktop). Host: ''winbox.waw.hackerspace.pl'', user/password: jak na LDAP
* Podłączenie bezpośrednie: FYI jest podłączona na stałe klawiatura i mysz bezprzewodowa, przynieś baterie AA
* Logowanie hasłem z LDAPa (pGina Fork, staff ma Administratora)
* RDP enabled
* GPU pass-through do karty graficznej
* USB pass-through => klawiatura + myszka wireless Logitech bork, trzeba nowego adaptera USB/PCIe żeby przekazać
====== Issues & Solutions ======
===== Windows 10 =====
==== GPU code 43 ====
Reinstall uninstall and reinstall GPU drivers
==== VM S3 (suspend/sleep) not available ====
Install ''qxldod'' drivers.
==== Slow suspend ====
Disable hibernation: ''powercfg /h off''
==== My IO is too slow ====
[[https://www.nikhef.nl/~dennisvd/lvmcrap.html|Delet LVM snapshots...]]
==== ''virsh dompm{suspend,wakeup}'' does not... ====
Install ''qemu agent'' and ''vioserial'' driver in guest
==== VM crashes when idle for some time ====
Well, disable screen blanking and autosuspend...
==== Audio on PulseAudio ====
[[https://wiki.archlinux.org/index.php/libvirt#PulseAudio]]
[...]
==== Audio stutters ====
Change ''Default Format'' from ''16bit 48kHz'' to ''16bit 44.1kHz'' in emulated sound card properties in guest.
==== Everything's shit ====
Enable "HIGH PERFRORMANCE" power profile.
==== GPU crashes after host resume ====
Seems like keeping QXL enabled on VMs with Radeon GPU passed through fixes GPU crashes on host suspend. (VM needs to be suspended first as well)
==== QXL/Spice display does not automatically resize to client window ====
Install spice guest tools:
https://www.spice-space.org/download/windows/spice-guest-tools/spice-guest-tools-latest.exe (https://www.spice-space.org/download.html)
===== FreeBSD =====
==== 11.1 ====
=== Hypervisor configuration ===
* Network: choose bridged. Bridge name: ''br0''.
===== Linux Guests with PCIe Passthrough =====
Use UEFI & Q35 platform model. (re https://forum.level1techs.com/t/fedora-28-pci-e-gpu-passthrough-linux-guest/127161/3)
===== MacOS =====
https://github.com/kholia/OSX-KVM + ''wieloryb:/storage/common/S*/O*/*.README''
Works perfectly fine, including GPU passthrough.