Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

infra:machines:craptrap [2020/02/12 17:28] (current)
q3k created
Line 1: Line 1:
 +====== Craptrap - the home of virtualized workstations ======
  
 +===== Hardware =====
 +
 +  * FX8350
 +  * R9 290
 +
 +===== Software =====
 +  * Debian
 +  * Qemu (libvirt KVM)
 +===== VM's ======
 +
 +  * **Win10 => craptrap-vm.waw.hackerspace.pl (10.8.1.48)**
 +    * Włączanie/​wyłączanie na http://​iot.waw.hackerspace.pl (via S3 - suspend to ram)
 +    * Logowanie hasłem z LDAPa (pGina 3.2.4.0 + [[https://​d.inf.re/​b/​9853ce8f9c2461122b01c2f4fc5d9296.reg|config]],​ staff ma Administratora + patch na drive mapper żeby logowało się kerberosem...)
 +    * RDP enabled
 +    * GPU pass-through do karty graficznej
 +    * USB pass-through => klawiatura + myszka wireless Logitech
 +
 +
 +====== 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]]
 +
 +  <domain type='​kvm'​ xmlns:​qemu='​http://​libvirt.org/​schemas/​domain/​qemu/​1.0'>​
 +   [...]
 +   <​qemu:​commandline>​
 +     <​qemu:​env name='​QEMU_AUDIO_DRV'​ value='​pa'/>​
 +     <​qemu:​env name='​QEMU_PA_SERVER'​ value='​sound.waw.hackerspace.pl'/>​
 +   </​qemu:​commandline>​
 +  </​domain>​
 +
 +==== Audio stutters ====
 +
 +Change ''​Default Format''​ from ''​16bit 48kHz''​ to ''​16bit 44.1kHz''​ in emulated sound card properties in guest.
 +
 +==== Shitty IO performance vol. 2 ====
 +[[https://​forums.servethehome.com/​index.php?​threads/​performance-of-kvm-qemu-disks-on-zfs-volumes.12550/#​post-119801]]
 +
 +==== 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''​.
 +
 +=== Hypervisor bug ===
 +
 +There'​s a problem with the ''​Opteron_G5''​ hypervisor, which is set by default.
 +
 +The solution is to replace ''​Opteron_G5''​ with ''​kvm64''​ or ''​Opteron_G3''​.
 +
 +Also, there is an open bug report for this issue on [[ https://​bugs.freebsd.org/​bugzilla/​show_bug.cgi?​id=213333 | FreeBSD Bugzilla ]].
 +
 +Fixed in 12.0.
 +
 +===== 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.
infra/machines/craptrap.txt · Last modified: 2020/02/12 17:28 by q3k