[virt-manager] LinuxMint 18.2 Cinnamon runs in software rendering mode

Questions about virtualization software
Forum rules
Before you post please read how to get help
marmistrz
Level 3
Level 3
Posts: 169
Joined: Tue Jan 29, 2013 4:47 am

[virt-manager] LinuxMint 18.2 Cinnamon runs in software rendering mode

Postby marmistrz » Thu Aug 10, 2017 5:39 am

Hi!

I decided to try out virt-manager as a virtualization solution - it would be nice to have VMs without out-of-tree kernel modules :) My host OS is Arch Linux, my guest: Linux Mint 18.2 Cinnamon.

xserver-xorg-video-qxl was already installed out of the box. Besides, I installed spice-vdagent. Still, Cinnamon warns me that it's running in software rendering mode (just like under VirtualBox with no guest additions).

From guest:

Code: Select all

 $ inxi -Fxx
System:    Host: mincik Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.4.3 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm
           Distro: Linux Mint 18.2 Sonya
Machine:   System: QEMU product: Standard PC (i440FX + PIIX 1996) v: pc-i440fx-2.9
           Mobo: N/A model: N/A
           Bios: Sea v: 1.10.2-20170228_101828-anatol date: 04/01/2014
           Chassis: type: 1 v: pc-i440fx-2.9
CPU:       Single core Intel Core (Skylake) (-UP-) cache: 16384 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3) bmips: 6816 speed: 3408 MHz (max)
Graphics:  Card: Red Hat QXL paravirtual graphic card
           bus-ID: 00:02.0 chip-ID: 1b36:0100
           Display Server: X.Org 1.18.4 drivers: (unloaded: fbdev,vesa)
           Resolution: 1920x961@59.93hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
           GLX Version: 3.0 Mesa 12.0.6 Direct Rendering: Yes
Audio:     Card Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:04.0 chip-ID: 8086:2668
           Sound: Advanced Linux Sound Architecture v: k4.8.0-53-generic
Network:   Card: Red Hat Virtio network device
           driver: virtio-pci port: c0a0 bus-ID: 00:03.0 chip-ID: 1af4:1000
           IF: ens3 state: up speed: -1 duplex: unknown mac: 52:54:00:18:00:6b
Drives:    HDD Total Size: 16.1GB (56.2% used)
           ID-1: /dev/vda model: N/A size: 16.1GB serial: N/A
Partition: ID-1: / size: 11G used: 4.7G (46%) fs: ext4 dev: /dev/vda1
           ID-2: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/vda5
RAID:      System: supported: N/A
           No RAID devices: /proc/mdstat, md_mod kernel module present
           Unused Devices: none
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 160 Uptime: 16 min Memory: 603.1/3951.3MB
           Init: systemd v: 229 runlevel: 5 default: 2 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481 running in gnome-terminal-) inxi: 2.2.35

Code: Select all

$ lspci -kv
 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
   Subsystem: Red Hat, Inc Qemu virtual machine
   Flags: fast devsel

00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
   Subsystem: Red Hat, Inc Qemu virtual machine
   Flags: medium devsel

00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] (prog-if 80 [Master])
   Subsystem: Red Hat, Inc Qemu virtual machine
   Flags: bus master, medium devsel, latency 0
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable)
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable)
   I/O ports at c140 [size=16]
   Kernel driver in use: ata_piix
   Kernel modules: pata_acpi

00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
   Subsystem: Red Hat, Inc Qemu virtual machine
   Flags: medium devsel, IRQ 9
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c_piix4

00:02.0 VGA compatible controller: Red Hat, Inc. QXL paravirtual graphic card (rev 04) (prog-if 00 [VGA controller])
   Subsystem: Red Hat, Inc QEMU Virtual Machine
   Flags: fast devsel, IRQ 11
   Memory at f4000000 (32-bit, non-prefetchable) [size=64M]
   Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
   Memory at fc054000 (32-bit, non-prefetchable) [size=8K]
   I/O ports at c080 [size=32]
   Expansion ROM at 000c0000 [disabled] [size=128K]
   Kernel driver in use: qxl
   Kernel modules: qxl

00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
   Subsystem: Red Hat, Inc Virtio network device
   Physical Slot: 3
   Flags: bus master, fast devsel, latency 0, IRQ 11
   I/O ports at c0a0 [size=32]
   Memory at fc056000 (32-bit, non-prefetchable) [size=4K]
   Memory at febf0000 (64-bit, prefetchable) [size=16K]
   Expansion ROM at fc000000 [disabled] [size=256K]
   Capabilities: <access denied>
   Kernel driver in use: virtio-pci

00:04.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
   Subsystem: Red Hat, Inc QEMU Virtual Machine
   Physical Slot: 4
   Flags: bus master, fast devsel, latency 0, IRQ 31
   Memory at fc050000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel

00:05.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
   Subsystem: Red Hat, Inc QEMU Virtual Machine
   Flags: bus master, fast devsel, latency 0, IRQ 10
   I/O ports at c0c0 [size=32]
   Kernel driver in use: uhci_hcd

00:05.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
   Subsystem: Red Hat, Inc QEMU Virtual Machine
   Flags: bus master, fast devsel, latency 0, IRQ 11
   I/O ports at c0e0 [size=32]
   Kernel driver in use: uhci_hcd

00:05.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
   Subsystem: Red Hat, Inc QEMU Virtual Machine
   Flags: bus master, fast devsel, latency 0, IRQ 11
   I/O ports at c100 [size=32]
   Kernel driver in use: uhci_hcd

00:05.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
   Subsystem: Red Hat, Inc QEMU Virtual Machine
   Flags: bus master, fast devsel, latency 0, IRQ 10
   Memory at fc057000 (32-bit, non-prefetchable) [size=4K]
   Kernel driver in use: ehci-pci

00:06.0 Communication controller: Red Hat, Inc Virtio console
   Subsystem: Red Hat, Inc Virtio console
   Physical Slot: 6
   Flags: bus master, fast devsel, latency 0, IRQ 11
   I/O ports at c000 [size=64]
   Memory at fc058000 (32-bit, non-prefetchable) [size=4K]
   Memory at febf4000 (64-bit, prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: virtio-pci

00:07.0 SCSI storage controller: Red Hat, Inc Virtio block device
   Subsystem: Red Hat, Inc Virtio block device
   Physical Slot: 7
   Flags: bus master, fast devsel, latency 0, IRQ 11
   I/O ports at c040 [size=64]
   Memory at fc059000 (32-bit, non-prefetchable) [size=4K]
   Memory at febf8000 (64-bit, prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: virtio-pci

00:08.0 Unclassified device [00ff]: Red Hat, Inc Virtio memory balloon
   Subsystem: Red Hat, Inc Virtio memory balloon
   Physical Slot: 8
   Flags: bus master, fast devsel, latency 0, IRQ 10
   I/O ports at c120 [size=32]
   Memory at febfc000 (64-bit, prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: virtio-pci

There was a similar thread on the Fedora forums and the author says something about converting the VM to qemu. https://forums.fedoraforum.org/showthread.php?t=309943

Do you have an idea what I'm missing? Have I missed some package that should've been installed in the VM?

powerhouse
Level 5
Level 5
Posts: 986
Joined: Thu May 03, 2012 3:54 am
Location: Israel
Contact:

Re: [virt-manager] LinuxMint 18.2 Cinnamon runs in software rendering mode

Postby powerhouse » Sun Aug 13, 2017 2:47 pm

I have not had good experience with virt-manager. Somehow it always seems to need some manual fine tuning or command additions inside the xml file to make things work, or to get some decent performance.

If I already have to tinker with the xml file, I might as well use the qemu command and write a script to start the VM. It's much easier and clearer than the xml obfuscation.

To use KVM and stop software rendering mode, you would use the accel=kvm option in the qemu-system-86_64 -machine type=q35,accel=kvm command. Go figure the virt-manager GUI.
Asus Sabertooth X79, i7 3930K CPU, 8x4GB Kingston DDR3 RAM, Noctua NH-D14 CPU cooler, Gigabyte GTX 970 + PNY Quadro 2000 GPU, Asus Xonar Essence STX, Sandisk Extreme 120GB + Samsung EVO 850 250GB SSD + 5 HDD, Corsair 500R case, SeaSonic 660W Gold X PS


Return to “Virtualization”