
Originally Posted by
qcjulle
Hi, I thought this might be a good place to ask. I have ordered an AMD A10-5700 APU with an SVM/IOMMU capable motherboard. The setup is going to go into a quite small passively cooled case so no room for a dedicated video card. Can I pass through the AMD IGP to a Win8 VM for light gaming and HD video processing with HDMI audio (XBMC, Netflix @1080p) or does it only work with Intel IGPs?
I have seen successes reported with dedicated AMD GPUs and integrated Intel GPUs but not with integrated AMD GPUs.
My goal is to get Linux Mint/Ubuntu and Windows 8 running without running the Linux inside Win8 (potential for too many disruptive reboots). I don't really need graphics for the hypervisor and the Linux side if I can use SSH/VNC to control them but I would like to have full GPU capabilities in Windows.
If the CPU and motherboard support IOMMU or whatever it's called in AMD language, it should be possible. The graphics card or integrated GPU can be a tricky part, and I have no experience with the AMD ones.
If you have only one GPU you will need to pass it thru right at system boot. This will be more difficult with Linux Mint/Ubuntu than with Fedora, for the simple reason that Fedora 16/17 has pciback integrated into the kernel, whereas in LM/Ubuntu you load it as a module (the xen_pciback module).
I've written a how-to for LM 13 which should also work for Ubuntu - see here: http://forums.linuxmint.com/viewtopic.php?f=42&t=112013.
You install LM/Ubuntu and then the Xen hypervisor from packages (Ubuntu is easier to install on LVM, and I recommend LVM strongly). Then you need to install either a VNC server or ssh server so you can access your PC from another one via network (you need a second PC/laptop to be able to do the installation and configuration). Follow the instructions I've given in my how-to. Here is what's different:
In your case you need to pass-through and boot your Windows VM when you boot into Linux. So once you installed all the packages in LM/Ubuntu, blacklist the installed graphics driver. Use:
Code:
lspci -v | grep -A 11 -i vga
and check the Kernel driver in use, then try this http://community.linuxmint.com/tutorial/view/923 and run update-grub. An alternative method for blacklisting the graphics driver is this:
Code:
sudo echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf
Replace the name of the driver with the one you found (most likely "radeon"). For example, /etc/modprobe.d/blacklist-radeon.conf with the following content:
Try the first method, it's better to disable the GPU driver as early as possible else you won't be able to detach the GPU.
When done, and before rebooting, make the network and other config file adjustments, create your win8.cfg file, and prepare an ISO file of your Windows 8 DVD that will be mounted via your win8.cfg file when you boot the guest. Also I recommend installing virt-manager and edit the /etc/xen/xend-config.sxp file to include the following:
Code:
(xend-unix-server yes)
Make sure you have ssh root access from your second PC. Now reboot. After the Xen hypervisor loads, and just when Linux Mint/Ubuntu take over, you should get a blank screen. Now connect via ssh -X ... or VNC and run:
Code:
sudo xm pci-list-assignable-devices #to see if the GPU is assignable - if it doesn't appear, something went wrong
sudo xm create /etc/xen/win8.cfg
Then you can run sudo virt-manager, select the win8 that is running and press the console button to get a VNC console to the Windows VM. Install Windows and I believe after the first reboot of the VM you should be able to select and install the video driver (if Windows hasn't done that already). Check under devices - the graphics card should be listed, perhaps in addition to the "virtual" VGA card Xen presents to Windows. By this time, or after another Windows reboot, Windows should show on your screen.
Once you succeeded to boot into Windows and have a working display, you can add a startup script to start win8 when you boot the PC.
Wish you good luck!