Originally Posted by ghormoon
laptop HP Elitebook 8560p
CPU: Intel i7-2620M
GPU: ATI HD 6470M
1) should be ok
2) should be ok
3) I'm passing the discrete card, the integrated HD3000 in CPU is diasbled and not possible to allow in bios
4) I want Windows 7 with grapphics (because of games) and debian running at the same time (X11 SSH passthrough)
Btw, I'm using Xen 4.0, could it be the problem?
1. If you have VT-d enabled in the BIOS (in my BIOS it was disabled by default), it may work. Not all BIOSes are equal, though. Check for newer BIOS versions and what they additional features they have (or bug fixes). In my case there are newer BIOS versions available, but they address Win8 compatibility. They also do not allow a roll-back. So I don't even try.
2. CPU is with VT-d support, according to Intel.
3. ATI 6470M - I don't know but chances are it will work. It's a pity you can't use the HD3000, it would help.
4. The xen.org page has information about the newer hypervisor versions. In my case, 4.1.2 worked without patches.
The newer 4.2 hypervisor should bring further improvements in VGA passthrough. It may be worth downloading and compiling it. My 4.1.2 hypervisor still uses xm as toolstack, the 4.2 hypervisor will have xl which is a lot different under the surface. Most how-tos I've found are based on xm, and since xl is not complete in 4.1.2 I went with xm. However, it will be deprecated later. 4.2 should still support it, I think.
If the latest Debian doesn't offer a 4.1.2 hypervisor package then I would go for the 4.2 release and compile it (there aren't yet any packages of it, as far as I remember, but it should be pretty close to release).
How far did you get?
In your case, once you pass through the graphic card, you won't have a screen for Linux. You need to use VNC or remote desktop from another computer on the network to be able to do anything until Windows is installed and running.
I have shared my config files and more details on another blog site under replies (go down to the bottom): http://gro.solexiv.de/2012/08/pci-passthrough-howto/#comment-29
. You may have a look at them and adjust them - bear in mind that I'm passing through my secondary graphics adapter, so you need to adapt the PCI IDs to your hardware (lspci can help).
I am using the xen-pciback module and haven't compiled xen-pciback into the kernel. Which means my Xen hypervisor and kernel will boot first using the screen for Linux and sometime in the boot process it will detach my secondary display adapter from Linux. In your case it would produce a blank screen sometime during the boot process, and you would need some access from another machine to log in and start Linux. So in your case i would not insert the pciback shell script in the inet.d process but manually activate the script when you are set up and connected to your laptop from another machine.
Another thing to watch out for is that pci passthrough is using vpci as default in Ubuntu based distributions and I believe in Debian too. So you should load the xen-pciback module as "xen-pciback passthrough=1" in your /etc/modules file. Please have a look at the link above for more details on the setup. Bear in mind that your configuration files may differ because of different hardware and Debian distribution - I use Linux Mint 13 Mate 64bit.
You will also need to check your dmesg output when you're in the dom0:
Here are some useful terminal commands to check your hardware and setup:
lspci # to check your PCI IDs
lspci -vv # to get more details
dmesg # to see the boot messages and debug output
dmesg | grep XEN # to narrow the output to the XEN related stuff
xm list # to list your current domains - only useful when running your domU
xm dmesg # your XEN messages
Check the http://wiki.xen.org/wiki/Xen_PCI_Passthrough
pages for more information and instructions.
Hope it helps.