When using the xl toolstack, you need to select qemu-traditional, not qemu-xen (the newer version). This is because qemu-xen doesn't support yet VGA passthrough. Here is my Windows 7 configuration file, for reference:wolfiegr wrote:Well I think it's time to add my experience with trying to make Xen PCI Passthrough to work. First some hardware info: I got the i7-3930K c2 cpu as powerhouse does and the ASUS p9x79 deluxe mobo (which has vt-d support on my current bios and is enabled) 16GB of ram and two GPUs an Nvidia GTX660Ti and one AMD hd6450 (which i bought only to test if I could make this work). I'm trying to pass the amd card to win. (TBH I'm using debian testing but I guess it'll be like LMDE).
I startted following the guide and I encountered the first problem on the network bridge configuration. When I restarted my networking service I got an error about RTNETLINK or something. Which was easy to bypass by not having eth0 auto configured from network-manager. About the missing links I skipped the first one altogether since I don't have a lib64 under /usr/ (there is a /lib64 folder but I didn't try linking to it). I skipped passing USB devices in order to see how it was working with Synergy.
Next thing was to update the initramfs.Using this command I got an error about an already existing file so I changed -c to -u. Everything worked fine as I could tell. I created the win7.cfg and then the lvm partition.Code: Select all
update-initramfs -k all -c
After that it was time to create the VM.returned an error about line 14. I deleted all comments from the cfg file and left only what was necessary and I got an error about: Error: 'NoneType' object has no attribute 'rfind'. (As a sidenote I don't have a qemu-dm on my system and I didn't try to use another qemu binary)Code: Select all
sudo xm create win7.cfg
After Googling I decided to try xl since it was the most common solution. I changed my win7.cfg to this:and the VM was created I installed windows 7 with a lot of hassle since my actual dot/mouse wasn't truly in sync and had to use the keyboard mostly. (I had trouble finding the LVM drive to install windows so I destroyed and recreated it under the partition, dunno what changed). After a couple of restarts I was admiring my win 7 pro 64bit installation. I was seeing 2x Standard VGA Graphics Adapter (one with the triangle) and under other devices a PCI Device with a triangle. Downloaded AMD drivers installed them and I rebooted the machine. Nothing happens still the triangle is there and the Standard VGA Graphics Adapter has changed name to AMD Radeon HD6450. The PCI device is still with a triangle. On the hardware properties I get:Code: Select all
builder = 'hvm' memory = 4096 vcpus = 8 name = 'win7' vif = [ 'mac=00:16:3e:68:e1:01,bridge=xenbr0' ] disk = [ '/dev/mapper/guest-win7,,hda,rw','/home/whoami/win7.iso,,hdc,cdrom,r' ] # Try to boot from CD-ROM first (‘d”), then try hard disk (“c”). boot = 'dc' vnc = 1 vncpasswd = 'pass' pci=[ '02:00.0', '02:00.1' ] # Necessary for booting as of 12-06-2013 device_model_version = 'qemu-xen' device_model_override = '/usr/bin/qemu' bios = 'seabios'
"This device cannot find enough free resources it can use (Code 12). If you want to use this device, you will need to disable one of the other devices on this system", And on the PCI Device: "The drivers for this device are not installed (Code 28)".
Any clues about this?
P.S. When I tried to give 8192MB I got an error about not having enough memory. While on grub I have given dom0 8192MB and I should be able to give the rest 8gigs to the domU.
Code: Select all
kernel = '/usr/lib/xen-default/boot/hvmloader'
builder='hvm'
memory = 8192
name = 'win7'
vcpus=8
pae=1
acpi=1
apic=1
on_xend_stop='shutdown'
vif = [ 'mac=00:16:3e:68:01:01,type=vif,bridge=xenbr0' ]
disk = [ '/dev/mapper/lm13-win7,raw,hda,rw' ]
device_model_version = 'qemu-xen-traditional'
boot='c'
sdl=0
vnc=1
vncpasswd=''
serial='pty'
tsc_mode=0
viridian=1
usb=0
# usbdevice='tablet'
gfx_passthru=0
pci=[ '02:00.0', '02:00.1' , '00:1a.0' , '0a:00.0' , '0b:00.0' ]
localtime=1
xen_platform_pci=1
pci_power_mgmt=1