[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Re : Re : Re : Re : Re : Xen VGA Passthrough Questions



Dear David Techer,

I have just had great success with Xen VGA Passthrough to Windows 8 Consumer Preview HVM domU and Windows XP HVM domU with Xen 4.2-unstable changeset 25070 in Ubuntu 11.10 64-bit dom0.

I am using Linux kernel 3.3.0. I can observe that you are using Debian 6.0.2 from your blog. But I am using Ubuntu 11.10. My favorite distro.

Please read my latest documentation "Xen VGA Passthrough - Version 1.1.pdf".

It is a great success, especially Xen VGA Passthrough to Windows 8 Consumer Preview. Thank you for your blog.

Yours sincerely,

Teo En Ming (Zhang Enming)


On 21/03/2012 21:40, David TECHER wrote:
Windows XP......OK

Windows 2008...KO

2008 is based on Vista. It may not work for NVIDIA. (ATI should work).

I will not waste my time to help you if you don't take into account these informations.





De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : David TECHER <davidtecher@xxxxxxxx>
Cc : "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; Casey DeLorme <cdelorme@xxxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mercredi 21 mars 2012 12h36
Objet : Re: [Xen-users] Re : Re : Re : Re : Xen VGA Passthrough Questions

Dear David Techer,

Thank you for your reply.

I am already using Linux Kernel 3.3.0 final.

I will be making changes to my compilation steps for Xen 4.2-unstable changeset 25070.

Let's see how.

Yours sincerely,

Teo En Ming (Zhang Enming)

On 21/03/2012 19:09, David TECHER wrote:
My domU Windows XP works perfectly with changeset 25070

Did you read http://wiki.xen.org/wiki/Xen_VGA_Passthrough carefully?

As noticed in your document I am not used to compil my kernel using 

make world

I've got a doubt about building your kernel this way, your kernel will have all required support for VGA PassThrough

I'm used to compil from 3.1.10

Extract from documentation on Wiki

==========

Xen VGA passthru requirements from dom0 kernel

Make sure your dom0 Linux kernel has "CONFIG_XEN_PCIDEV_BACKEND_PASS" option enabled. "CONFIG_XEN_PCIDEV_BACKEND_VPCI" should be disabled. For example Debian Squeeze 2.6.32 kernel has the wrong PCIDEV_BACKEND mode as a default.. so in that case you might need to recompile the kernel with custom .config to get the right backend mode in use. BACKEND_PASS mode means the PCI IDs of the PCI device (graphics card) will be the same in the VM as in dom0/host.
===============

So you need to download kernel 3.3 sources and compil it properly.

Tonight (EST Time so in more than 8 hours ) I will have a try for kernel 3.3 and see if I have the same error an will let you know.











De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : David TECHER <davidtecher@xxxxxxxx>
Cc : Casey DeLorme <cdelorme@xxxxxxxxx>; "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mercredi 21 mars 2012 11h02
Objet : Re: Re : [Xen-users] Re : Re : Xen VGA Passthrough Questions

Dear David Techer,

Thank you for your reply.

I am using Windows XP / Windows 8 Consumer Preview HVM domU and not Linux HVM domU.

Please read my Xen VGA Passthrough - Version 1.0.PDF and see whether I am missing out or making any wrong steps.

Yours sincerely,

Teo En Ming (Zhang Enming)

On 21/03/2012 17:25, David TECHER wrote:
You need to add nouveau.blacklist=1 in the grub.cfg of your domU

Have access to partition table of your domU using kpartx

kpart -va /dev/path/to/your/LVM/domU

mount /dev/mapper/.../....       /path/where/to/mount

vim //path/where/to/mount/boot/grub/grub.cfg

add nouveau.blacklist=1 to the module line.

Umount /path/where/to/mount

kpart -vd /dev/path/to/your/LVM/domU

boot your domU

Install NVIDIA driver.





De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : Casey DeLorme <cdelorme@xxxxxxxxx>
Cc : David TECHER <davidtecher@xxxxxxxx>; "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mercredi 21 mars 2012 5h06
Objet : Re: [Xen-users] Re : Re : Xen VGA Passthrough Questions

Hi,

How do I stop lightdm display manager and X.org server in Ubuntu 11.10 and unload the nouveau vga driver?

I can run "sudo killall lightdm" and lightdm and X.org X server will be terminated successfully, but I cannot force nouveau to unload at all. It always say nouveau module is in use even if I use "sudo modprobe --force --remove nouveau".

I need to unload the following kernel modules for successful Xen VGA passthrough.
rmmod nouveau
rmmod ttm
rmmod drm_kms_helper
rmmod drm

Please read Deactivating KMS and unloading Nouveau at http://nouveau.freedesktop.org/wiki/KernelModeSetting
But setting "echo 0 > /sys/class/vtconsole/vtcon1/bind" causes the display to hang and I can't do anything more at all.
I can't force nouveau,ttm,drm_kms_helper,drm kernel modules to unload. Help!!!

Also, if I add xen-pciback.hide=(01:00.0) to the module line in GRUB2, the display turns blank while booting and I can't do anything at all. Any ideas?

Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)

On 21/03/2012 00:36, Casey DeLorme wrote:
Hello,

Supposedly both the board & CPU must have VT-d, the E6300 does not:

If pciback was compiled into your kernel (not a module) then you can add "xen-pciback.hide=(01:00.0)" to the module line in your grub.cfg, substituting your lspci device names.

nVidia supposedly requires patches and only works in Windows XP, there are a few Windows 7 success stories, but they seem rare.  Most people have success without patches using AMD cards.

Best of luck.

~Casey DeLorme


On Tue, Mar 20, 2012 at 11:39 AM, Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx> wrote:
Dear David Techer and others,

I thought Intel H61 chipset and MSI motherboards officially don't support VT-x and VT-d? There is no VT-d enabling option in MSI motherboard BIOS.

I want to test Xen VGA passthrough for Windows 8 Consumer Preview 64-bit English HVM domU with my Intel DQ45CB motherboard and Intel Pentium Dual Core E6300 2800 MHz.

By the way, I am using Linux kernel 3.3.0 Final. Should I use PCIBACK or PCI-STUB? If I use pciback, what arguments should I parse to the kernel command line in GRUB2? Please point me to the documentation for kernel command line arguments in the linux kernel source tree.

My graphics card: Palit NVIDIA Geforce 8400 GS PCI Express x16 SGD$44


Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)


On 20/03/2012 23:17, David TECHER wrote:
You're welcome.

Keep in mind that if you are going to upgrade BIOS for your motherboard, those values for your card may changed.

I was in this situation last time  BIOS was upgraded.

It does mean that those values will changed each time you upgrade your motherboad BIOS but having thos values changed after a BIOS upgrade could occur for a specific upgrade.

Don't ask me why...I do not know.

So you will be well advised to heck those values for each BIOS upgrade.

Moreover don't waste your time to test VGA PassThrough for NVIDIA for Windows  7. For Windows 7 use ATI.

I did my tests for playing with wine 1.4/1.5 on domU Ubuntu Lucid 10.04.4 PV HVM (game like Crysis 2) and it rocks :)

My configuration:

Manufacturer: MSI / Product Name: H61MU-E35 (MS-7680)
Bios version: V10.11




De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : David TECHER <davidtecher@xxxxxxxx>
Cc : "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mardi 20 mars 2012 16h02
Objet : Re: Re : Xen VGA Passthrough Questions

Dear David Techer,

Thank you.

I think the following command is sufficient.

dmesg | grep 01:00.0 | grep "pci.*mem"

Yours sincerely,

Teo En Ming (Zhang Enming)

On 20/03/2012 17:54, David TECHER wrote:
Hi Teo,

The 3 first lines with pattern 'pci.*mem' need to be returned

U need to use somethign like

root@gemini:~# lspci |grep VGA
02:00.0 VGA compatible controller: nVidia Corporation Device 0ca2 (rev a2)
root@gemini:~# dmesg|grep 02:00.0 |grep ' pci [0-9].*mem'|head -n3
[    0.174458] pci 0000:02:00.0: reg 10: [mem 0xfb000000-0xfbffffff]
[    0.174466] pci 0000:02:00.0: reg 14: [mem 0xd0000000-0xdfffffff 64bit pref]
[    0.174475] pci 0000:02:00.0: reg 1c: [mem 0xee000000-0xefffffff 64bit pref]

Kind regards



De : Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
À : "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; David TECHER <davidtecher@xxxxxxxx>; Teo En Ming (Zhang Enming) <singapore.mr.teo.en.ming@xxxxxxxxx>
Envoyé le : Mardi 20 mars 2012 8h39
Objet : Xen VGA Passthrough Questions

Dear David Techer,

I have read through your article on Xen VGA passthrough on http://www.davidgis.fr.

It appears that the following command on your blog doesn't work.

dmesg | grep 01:00.0 | grep BAR

The above command shows nothing at all. Is there an alternative solution?

Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)







_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users









_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


Attachment: Xen VGA Passthrough - Version 1.1.pdf
Description: Adobe PDF document

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.