Table of Contents
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)
- 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 3.2.4.0 + 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
''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
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 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.