Mir
|
At the time of writing not all necessary patches to run Mir inside KVM can be found in a vanilla kernel release. The steps below describe setting up KVM and installing the right version of Mesa and the Linux kernel.
The only way to run Mir inside KVM requires a setup with SPICE. So next to KVM a SPICE client is needed on the host to provide a monitor to the guest. The following description will use virt-manager for this task:
$ apt-get install qemu-KVM virt-manager python-spice-client-gtk
More details on setting up KVM can be found in the wiki.
Now create a new virtual machine with virt-manager and a current Linux boot iso image or reconfigure an existing installation.
Launch virt-manager and open your virtual machine. Go to the configuration options through the info icon in the toolbar. There are now two relevant configuration entries: Video and Display.
Now boot the machine and build a new kernel and verify that you have the right Mesa package.
Since the DRM QXL driver only provides KMS, GEM and dma-buf support, and no 3D GPU emulation or forwarding, Mesa will load the kms-swrast driver. This driver is available since Mesa 10.3.0. The necessary support for dmabuf fds and crtc handling in QXL is available since Linux 3.18.
With that we have enough support for EGL and GLESv2 to run Mir.
This is not necessary but helpful for day to day use:
Now you can finally install & run unity8-desktop-session-mir in KVM.
Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:07:25 UTC 2017