WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Windows guest accelerated 3d?

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Windows guest accelerated 3d?
From: "Emre Erenoglu" <erenoglu@xxxxxxxxx>
Date: Tue, 4 Dec 2007 10:43:28 +0100
Cc: Gryffus <gryffus@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Dec 2007 01:44:19 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=T8cQ7zDBxsqM4s9aVEUurknachxTHBybL03YXd9AOc0=; b=bnQor+rAjl8x09MIlARtSlX0FHxmuLX0PM2Gc3HXWKFP401hNsQdamvjcJF85sbkBp3KEjeWyVl98SgHfjI24kzA8lHHnwP7pyOg06sLAri6HmTiZiWs8C8lghtDAAcFyOwYxpcW8QiMVp9NZMDMGdvtzl/NhwYQvHPrHGm6RDg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Qz9i888zO9aoLnwRZ1wH4o/VSSvW4lzOKie+vNBseahL3zEK/iA9uH1vScq6nf4kbhDwmVS2G8RduaN0H/Sv8OaG7Qw7RiunWvfRIIPMD/wdgwqNB1g5USWStjDRI351Gnxc2UpNyXbMbR+jBgXXJOuBUyCL5BEtfuQhSSdpgvg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200712040414.21916.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <005501c824c9$748d41a0$42216b0a@gfs> <200712040414.21916.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
In the past, I was able to run 3D in Dom0 with NVIDIA ( I can't compile it on current > 2.6.21 dom0 kernels though), and use 3D functions in a linux DomU through XDMCP (though indirect rendering).

I installed nvidia libraries both in Dom0 and DomU. Using XDMCP login, DomU showed all possible opengl extensions, just direct rendering was off (due to IP based communication).

However, I was able to run compiz successfully in DomU, but milage may vary..

Emre

On Dec 4, 2007 5:14 AM, Mark Williamson <mark.williamson@xxxxxxxxxxxx > wrote:
Hi there Gryffus,

> I have few questions, so if some1 could answer them i would be very
> thankful...
>
> I wanna use xen for following purpose:
> I'm planning to buy shiny new box and i wanna run a linux (xen?) kernel and
> i want to run window$ 3D applications accelerated (with working directx)...
> All of this without reboot...
>
> 1) What i need to run windows XP in xen with _accelerated_ 3D? IOMMU, or
> something more than that? 2 graphics cards? And which processors does
> support IOMMU and what graphics card is the best for this?

At the moment you can't get 3D accelerated graphics with only one graphics
card...

Code supporting IOMMU has recently been added to xen-unstable so it's possible
that you could pass through a PCI device to a Windows guest.  In practice, I
suspect that graphics cards haven't been tested, so passing them through may
not work.  It is very new support, anyhow.

I don't know of any companies who'd support 3D accelerated virtual machines
for you just yet :-(  I expect that will change in a year or two, though.

FYI, getting 3D graphics drivers to load under Xen can be a pain even for
dom0.  For that reason, you might find another VMM is more convenient to use.
Still, people have managed to get versions of the Nvidia and ATI drivers
working in the past...  That doesn't solve the problem of accelerating
Windows, though.

> 2) Is the best solution work normally on xen kernel (kde desktop, compiz,
> etc....) and have window$ the only 1 guest, or 1xen kernel, and 2guests - 1
> linux for working and 1 window$ for gaming? And how do i switch between all
> the VMs? Or better way is to have 1st VM running on 1st display and 2nd VM
> on 2nd display? How?

Typically you have VNC connections to each guest in order to access the
virtual screen.  Because Xen is server-oriented, most people don't do a lot
of interacting with the display device (which is currently a little slow).
For Unixy guests, you can also just use something like X-forwarding.

Because it's just VNC, the virtual machine displays appear in Windows.

If you're going to use the machine as a desktop, it makes sense to interact
with dom0 directly for normal work.  I don't think you'll be doing much
gaming with Windows if you have to use the emulated graphics though :-(

Something you might find cool is VMGL - a project (still a bit experimental, I
think) to give 3D acceleration to X11 (Linux, FreeBSD) virtual machines.
It's actually independent of Xen and can work with VMware.
http://www.cs.toronto.edu/~andreslc/xen-gl/


Sorry I couldn't give you more positive news about Windows gaming under Xen.
In consolation, I guess I'd note that if you're running really demanding 3D
games you mightn't want the CPU overhead / network of running under
virtualisation.

Cheers,
Mark

--
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



--
Emre Erenoglu
erenoglu@xxxxxxxxx
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>