VMware Cloud Community
taylorjonl
Enthusiast
Enthusiast

VMDirectPath and ATI Radeon

I am using VMware ESXi and I am trying to setup a guest that is Windows 7 that will have an ATI Radeon video card passed through to it.  I actually had this working on a previous system but I had to reinstall.  Now when I do this the guest fails to start and I get the following:

Error message from localhost.XXXXXXXXXXX:
PCIPassthru 004:00.0: Guest tried to (null)map
32 device pages (with base address of 0xb5d20)
to a range occupied by main memory. This is
outside of the PCI Hole. Add pciHole.start =
"2909" to the configuration file and then power
on the VM.
error
12/23/2010 1:04:36 PM
media
User

When I do as it asks, the guest now starts but gets an immediate BSOD concerning memory management.  Any ideas on why this is occuring and why it worked at one point but now it fails?

814 Replies
derickso
Contributor
Contributor

So my setup has been running pretty well for around the last year, but I have a few remaining gripes that I wanted to check and see if anyone else is experiencing, and has resolved.

1) VM crashes when watching video using Silverlight (ie Netflix)

My VM will randomly have its video lock up and become unresponsive when watching Netflix in a Windows 7 VM using the MCE interface, but I've verified it happens in Firefox as well.  Latest Silverlight revision.  I tried newer ATI drivers, no luck, and in fact made it worse so I reverted.  Sometimes it will run fine for a long time, other times it will crash 10 minutes apart.  Very frustrating, I've considered creating a script to detect when tools is nolonger responsive and reboot the VM, but of course I'd rather fix this if possible.  Also, it never locks up when playing regular MCE recorded video from my TV tuners.

2) Strange wireless keyboard/mouse behavior

I'm using a Logitech DiNovo keyboard with integrated touchpad, with the receiver connected to a passed through USB hub to the VM mentioned above.  I occasionally experience strange latency to commands, and actual full dropouts.  Its possible this is the result of some kind of interference at my house, but I thought I'd check since it was quite weird, and sporadic.

Thanks!

David

0 Kudos
mindless728
Contributor
Contributor

With my Logitech G35 (USB headset) I notice USB packets being dropped (lost/clippy sound) when the VM is using most of its cpu allocation

Might be something to check out as well

0 Kudos
derickso
Contributor
Contributor

derickso wrote:

So my setup has been running pretty well for around the last year, but I have a few remaining gripes that I wanted to check and see if anyone else is experiencing, and has resolved.

1) VM crashes when watching video using Silverlight (ie Netflix)

My VM will randomly have its video lock up and become unresponsive when watching Netflix in a Windows 7 VM using the MCE interface, but I've verified it happens in Firefox as well.  Latest Silverlight revision.  I tried newer ATI drivers, no luck, and in fact made it worse so I reverted.  Sometimes it will run fine for a long time, other times it will crash 10 minutes apart.  Very frustrating, I've considered creating a script to detect when tools is nolonger responsive and reboot the VM, but of course I'd rather fix this if possible.  Also, it never locks up when playing regular MCE recorded video from my TV tuners.

2) Strange wireless keyboard/mouse behavior

I'm using a Logitech DiNovo keyboard with integrated touchpad, with the receiver connected to a passed through USB hub to the VM mentioned above.  I occasionally experience strange latency to commands, and actual full dropouts.  Its possible this is the result of some kind of interference at my house, but I thought I'd check since it was quite weird, and sporadic.

Thanks!

David

As a follow up to this:

1) It turned out this was because I had not set the pciHole config params.  This VM was using only 2GB of RAM so I thought it unnecessary, but apparently it isn't.  So make sure you set this no matter what.  My VM hasn't crashed once since I set this.

2) Haven't resolved this yet, I'm going to get a USB extender and try to move the wireless receiver to the front for an unobscured line of sight, hopefully it is a simple problem like that.

-David

0 Kudos
GavinRamm
Contributor
Contributor

Hi All,

After reading this forum and working out what works and doesn't. I wrote a complete post about my configuration.. its an all in one NAS/Home Lab/Mame/game setup. http://rammstyletech.blogspot.com.au/2013/02/all-in-one-vm-lab-nas-mame-arcade-media.html its a bit of a read but anyone wanting to do the same it should be helpful.

Thanks for everyones input here so I could make this a reality..

cheers..

gnomie
Contributor
Contributor

Hi Guys. I have been reading through this thread today trying to get my 3D passthrough working with ESXi. It was so frustrating knowing that I was so close to getting it working and finally I can report that I have it working though I am not sure that I could lay out the exact steps for someone to replicate Smiley Happy I will be reinstalling now that I have proved that it works so I will report back with the

How I got here! I have made a new rig specifically to take advantage of VT-d and passthrough..first seeing videos and forum posts of people having success with Xen. I managed successfully follow a Howto on the Xen wiki and got 3D passthrough to Windows 7 working with this setup so I knew that the hardware could do it. I was frustrated though because my sound card drivers were buggy in Linux/Xen and would cause the whole system to hard freeze (Reset button wouldn't even work!) This led me on a voyage of discovery to KVM, then Virtualbox and eventually ESXi in search of the ultimate hypervisor for my dream dual gaming / desktop system.

First here is my hardware setup

Motherboard: ASRock Z77 Extreme 4, BIOS version 2.80

GPU: Radeon HD7950, OEM branded as Asus DirectCUII Top (Model: HD7950-DC2G-3GD5-V2)

Display: Dell U2311H connected on the DVI-I port of the graphics card

CPU: Intel i7-3770

RAM: 16 GB

PCI: Creative X-fi Fatal1ty

So I've encountered all of pci hole, 2GB limit, BSODs with atikmpag.sys, catalyst control center not detecting stuff and here is a summary of what I have found:

1. First installed ESXi 5.1 Update 1. My plan was to follow what I did in Xen, that is install windows through the console then add the PCI Passthrough devices and reboot, then install drivers. Didn't realise that I needed VMWare Tools and went ahead to provision a Windows 7 64bit VM with 6GB of RAM. I then attached the GPU and HDMI devices and booted the VM. This is when VMWare told me that I needed to put pciHole.start = "2853" into the config file. I did that then next reboot I encountered the "Not fully ACPI compliant BIOS." I then realised that I had accidentally installed 32 bit Windows so I thought what the heck I'll go with it and reduced the RAM to 2GB and installed 32 bit Catalyst drivers. The card was detected and installed but the physical display was blank. I disabled the "Standard VGA Adapter" and then catalyst control center said it couldn't find the AMD card. I thought I made a big mess of this so I started again.

2. Deleted VM #1, made a proper Win7 64 bit VM this time installing the correct version of windows. Again with 6GB (as I initially thought the ACPI thing was due to a 32 vs 64 bit thing) and followed the same steps until I encountered the ACPI thing. I tried reducing the RAM again and ended up with the same result, a successful driver install yet a blank screen. As I was desperate at this time I tried installing VMWare Tools (default installation). After that I got the atikmpag.sys bluescreen. At around this time I started reading this thread.

3. I decided to go to ESXi 5.0 Update 1. I made new VM again with 2GB of RAM (no passthrough), installed windows, this time installed VMWare Tools first but did a custom install to leave out the SVGA video driver. After this I attached the PCI cards. Surprisingly this time there was no error that suggested to use pciHole.start. In the end it was the same result, a blank screen. One interesting side-note is that in 5.1 the PCI devices list had "AMD Radeon blah blah" listed while in 5.0 it says something like "Unknown VGA compatible controller." This is when I trawled through many pages of this thread and did all of the things suggested - disabling iGPU, disabling on-board audio, booting default to PCI Express. At this time I knew I was very close as the frozen image of the console would disappear when I started the VM, yet it was still remaining blank! Finally I did a reinstall of VMWare tools with all the default options (ie installing the SVGA driver) and it worked! To prove it I ran a 3D game.

What I have learned:

  • VMWare Tools is needed but only for the SVGA Driver. Without it I get successful card detection and driver install but blank screen
  • I can't find any way to get it working with IGPU enabled in the BIOS. I have tried to leave IGPU on and add it to the pass-through list, but not passed to anything, figuring that this would 'hide' it from the host and guests, but no luck there. The Windows VM BSODs with atikmpag.sys whenever IGPU is enabled in the BIOS.
  • X-fi PCI Fatal1ty passthrough works but sound output is just white noise Smiley Happy

Summary of my setup

VMWare Info

ESXi 5.0.0 Update 1

VM Windows 7 64 bit

Memory 2048 MB 100% reserved

CPUs 1 socket, 4 cores

Video card 1 display, 8MB RAM, Enabled 3D Unchecked

Passed through devices: 01:00.0 (AMD GPU), 01.00.0 (AMD HDMI Audio), 07:00.0 (ASMedia USB 3.0 Controller)

No custom entries in the .vmx file

BIOS settings

IGPU Multi-monitor Disabled

Primary graphics device PCI Express

Onboard Audio Disabled

Windows

Catalyst 13.4 (Driver 12.104.0.0) custom install, all drivers and options EXCEPT Catalyst Control Center

ASMedia USB Driver (latest version)

VMWare Tools installed with the VMware SVGA 3D adapter

My next steps are to try to get more than 2GB RAM, try some of the ideas here to get the Radeon as the primary adapter, some kind of acceptable sound and if possible the IGPU working before I declare this a winner.

Windows experience index:

Processor 7.6

Memory 5.5

Graphics 7.9

Gaming graphics 7.9

Primary hard disk 7.9

Can anyone tell my why the Memory score is so low? Using roughly the same configuration with Virtualbox and Xen it was in the 7's.

Kamerat
Contributor
Contributor

For accessing more RAM while using GPU-passthrough you can use the "pciHole.start = 1200" and "pciHole.end = 2200" options (works for me and many others).  I have successfully passed my Radeon HD6450 to Ubuntu (12.04, 12.10 and 13.04) using Catalyst drivers, Windows 7 (also had to install the VMware driver along with the Catalyst driver) and OSX 10.8.3 (using unofficial hack/patch) on ESXi 5.0. For sound I'm using a Terratec AureonDualUSB on an USB-controller on PCI-passthrough.

Config is:
ASRock X58 Xtreme (bios 2.90)
Intel Xeon E5606
24GB of some DDR3 ECC
Club 3D Radeon HD 6450 1GB (on passthrough, showing as "Unknown VGA compatible controller")
Gigabyte Radeon HD 2400 XT (on passthrough, tested with Windows 7 and Ubuntu 12.04)
IBM M1015 in HBA mode (on passthrough) with 8x 2TB Seagate disks (for my fileserver VM)
Crucial M4 128GB (for VM's)
Crucial C300 64GB (for VM's and ESXi hypervisor)
Creative X-Fi PCI (on passthrough, only tested with Ubuntu)

0 Kudos
csyckad
Enthusiast
Enthusiast

Hi Kamert.

I am able to pass the my 6450 to win 7 but the sound to HDMI is choppy and terrible, Any setting I can change ?

My HDMI connect to the TV and use the team viewer to control the Win7 VM now.

i am not able to pass the USB keyboard or mouse to the guest yet

Config

Asrock H77 Pro m

Intel Xeon E3-1230V2

HIS Radeon HD 6450 1GB (passthrough to Win 7 guest)
ESXI 5.1 update 1

0 Kudos
rmathis1984
Contributor
Contributor

To be honest Csyckad ESXi 5.0 is a better bet if you want to do passthrough. It has working USB where 5.1 dosent. HDMI audio is normaly going to be driver related. You can attempted to lower the audio quality in Windows and see if that helps but I have little hopes for that... Need a tab more background on your VM setup to find the cause.

There is very little difference between 5.0 and 5.1 for a home lab unless your actually using DRS... In that case I opt to eat my own words lol.

0 Kudos
vintagedon
Enthusiast
Enthusiast

Agree completely with rmathis about 5.0 vs. 5.1 for this particular purpose.  USB passthrough on 5.1 is currently broken, or extremely unreliable, and I can attest to that after testing 5.1 on one of my nodes.  That, our of your specs you listed, is the only potential hardware/non-hardware issue I see.

My lab is pretty extensive (for a home lab), and I run three XBMC VMs plus two VMs that I use for desktops (my wife and son) and pass through a total of 5 video cards to these VMs as well as running HDMI and USB over CAT6 for all 5 VMs.  My son's VM has a GTX560 passed through to it and plays COD Black Ops, and other demanding games w/o issue.  The HDMI sound I haven't had any specific issues with other than driver related items.

As Always, VintageDon
0 Kudos
KRA77
Contributor
Contributor

Vintagedon, so nvidia cards are working now ?

0 Kudos
vintagedon
Enthusiast
Enthusiast

My apologies, that's a hasty mistype (quick interjection into the conversation from work).  That's my son's old desktop card; I'm running an HD7850 in the VM, and low profile HD6670s in the XBMC VMs.

As Always, VintageDon
0 Kudos
akuznetsov
Contributor
Contributor

VIntagedon,

Could you please display detailed setup of you lab hardware? I'm planning to virtualize XBMC too, so I'm pretty worried about videocard/usb/hdd passthrough.

Thanks.

0 Kudos
vintagedon
Enthusiast
Enthusiast

Actually, I can do better than that.  My complete builds and information on my setup are on my blog dedicated to this at http://thehomeserverblog.com

I'm always open to questions, and the comments sections in the builds have some great input from others, too.

As Always, VintageDon
akuznetsov
Contributor
Contributor

Well, that page is on my bookmarks already. I wasn't sure it was you Smiley Happy

0 Kudos
technobro1
Contributor
Contributor

Hi guys ,

Out of curiousity , do you think it would be possible to run this on a laptop ?

does anyone ever manage to make it work ?

0 Kudos
csyckad
Enthusiast
Enthusiast

After reinstall with ESX 5.0 update1 , and try passthrough again,

everything run smooth even USB mouse and the sound Smiley Happy

rmathis1984
Contributor
Contributor

@technobro1 As long as the laptop is supported under HCL and the CPU has VT-D or MMOU "Whatever AMD version is" it will work. But the question is why would you want to load ESXi on a laptop to do VGA passthrough. It might be more suited to VMware Workstation. But then again what are you asking...

0 Kudos
sjnobles
Contributor
Contributor

I know this is super old, but which version of ESXi are you running.  I am running 5.1 and cannot get DXVA to work with a 6450 or 5450.  Passthough is fine with video and hdmi audio but I'd like to use DXVA if at all possible.

0 Kudos
derickso
Contributor
Contributor

I'm using 5.0 with updates on a 7750 and my DXVA works fine.

0 Kudos
sjnobles
Contributor
Contributor

Ok, so 5.0 U2 with patches?  Are you using Windows 7 x64?  What player and files are you playing?

I've tried VLC and XBMC 12.2 and when DXVA is checked I get a green or blank screen on anything other than avi files.  Using Catalyst 13.x drivers.

0 Kudos