VirtualBox: !!Assertion Failed!!? Try disabling SME!

After upgrading from an old FX-8350 to a new ThreadRipper VirtualBox was not able to start any VM in Linux. The error  shown in VM was something like "NS_ERROR_FAILURE (0x80004005)"

And in the VM logs were these entries: 

!!Assertion Failed!!
Expression: pVM->pVMR0 == CreateVMReq.pVMR0
Location  : /home/vbox/tinderbox/6.0-lnx64-rel/src/VBox/VMM/VMMR3/VM.cpp(591) int vmR3CreateU(UVM*, uint32_t, int (*)(UVM*, VM*, void*), void*)
Stack     :
00007f8970304133 VBoxRT.so + 0x1f1133
For me this was solved by disabling AMDs Secure Memory Encryption (SME) .You can do this in the BIOS/UEFI Setup, via the linux boot parameter mem_encrypt=off or by disabling this during in your next self-compiled kernel. 
 
This was solved by trying to work around a kernel/firmware/AMD bug which caused errors when trimming/discarding from a NVME with an activated IOMMU. After setting the iommu to passthrough discarding worked, but the Broadcom/LSI/Avago RAID controllers  and the Radeon driver failed to start: 
mpt3sas 0000:09:00.0: SME is active, device will require DMA bounce buffers
mpt2sas_cm0: reply_post_free pool: dma_pool_alloc failed
mpt2sas_cm0: failure at drivers/scsi/mpt3sas/mpt3sas_scsih.c:10506/_scsih_probe()!
radeon 0000:07:00.0: SME is active, device will require DMA bounce buffers
radeon 0000:07:00.0: SME is active, device will require DMA bounce buffers
software IO TLB: SME is active and system is using DMA bounce buffers
[drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)
radeon 0000:07:00.0: disabling GPU acceleration
And after disabling SME VirtualBox also worked..
 
Given my fun with my Lenovo notebook last year and the unblogged fun I have/had with my successor  Dell notebook, it seems that the AMD IOMMU is quite a PITA. 

Xubuntu X11 does not start after update

After upgrading my Xubuntu 16.04 installation after a couple of weeks without updates, X11 was not able to start anymore. Only a black screen with a blinking cursor was shown. Ctrl-Alt-F1 to console worked but killed "X11". Easy solution: Remove oibaf drivers!

apt install ppa-purge
ppa-purge ppa:oibaf/graphics-drivers

Funny Keywords you may encounter during your voyage:

  • lightdm fails, check service lightdm status, look into /var/log/syslog
  • gpu-manager, either run from console via service gpu-manager
  • console-kit-daemon: GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
  • update-alternatives: error: no alternatives for x86_64-linux-gnu-gfxcore_conf
  • /etc/modprobe.d is not a file (that is noise)
  • gpu-manager Error: can't open /lib/modules/<your kernel version>/updates/dkms

Keine neue Hoffnung: Sword of the Stars II

Tja, gestern habe ich dann den Steam-Code für Sword of the Stars II (SotS2) bekommen. Nach 5min SotS2 hab ich dann wieder Deus Ex - Human Revolution gespielt. Folgende Probleme hatte ich mit SotS2:

  • Vor jedem Start will er was installieren, Visual C Runtime Bibliotheken oder ein .Net Update, immer wieder.
  • Die Optionen sind ein Witz, vor allem die Option "Windowed", die voreingestellt ist, hat keine Auswirkungen. Das Spiel läuft bei mir immer im Fenster.
  • Im Hauptmenü ist ein Eintrag für eine Enzyklopädie, nach ein bisschen lesen hat sich das Programm sang- und klanglos verabschiedet aka Crash-to-Desktop (nach dem Neustart wollt er wieder .Net Kram installieren..)
  • Es gibt kein Tutorial.. oh und auch kein Handbuch, de fakto ist das Spiel undokumentiert
  • Das Font Rendering (Texte zeichnen) ist grottig, einige Stellen sind sehr schlecht zu lesen
  • Hat jemand das Anti-Aliasing vergessen? (siehe Screenshots)

Ich hab mal zwei Screenshots gemacht, einmal von SotS 2 direkt nach dem Erstellen eines Spiels und eins vom alten Spiel. Am besten mal in voller Größe vergleichen. Das alte Interface ist um Längen sauberer und meiner Meinung nach auch hübscher.

Screenshot Sword of the Stars 1 - HauptbildschirmScreenshot Sword of the Stars 2 - Hauptbildschirm

Zum Spiel selber kann ich nix sagen, da ich ohne Handbuch oder Tutorial keine Lust habe mich da durch zu wühlen. Ich hoffe Kerberos (der Entwickler) arbeitet da noch intensiv dran, damit es kein Fehlschlag wird.
Verdächtig ist dass in den Spieldaten die Verzeichnisse der Rassen mit dlc_* anfangen, also dlc_Hiver für die ääh Hiver. Das deutet darauf hin, dass es anscheinend schon geplant ist, weitere Inhalt später zum Erwerb zur Lizenzierung anzubieten. So wie es Kerberos beim ersten Spiel schon gemacht hat. Einfaches Grundspiel, stetig erweitert durch "Half-Price" Erweiterungen/Stand-alones.

Ich spiel jetzt erstmal DX:HR durch, das wird noch einige Zeit dauern und dann schau ich SotS2 mir mal genauer an.