Skip to contentSkip to conversation

graphic card on domU

DISCUSSION Abe 4 participants 5 messages Mar 15, 2007 – Mar 16, 2007

lore
Share & tools
lore

Abe

author
#0 lore raw

hello everybody,

is it possible to run a paravirtualized linux (domU) that its graphic card is working directly with hardware? what about the peripherals? mouse,keyboard,usb?
how can this be accomplished if domain0 does not hold of a graphic card driver?
thanks,
Abe.

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#1 lore raw

Hi Abe,

I'm not a developer. Nevertheless, as far as I know, using a graphic hardware with 3d functionalities etc. is not possible at the moment. PCI device hiding functionality of Xen 2.0 does not yet work for Xen 3.0, therefore you cannot reach the graphics hardware directly from a Xen DomU.

To have X in DomUs, there may be several solutions:
1) HVM Guests: They already have a graphics card emulation. Low resolution, slow.
2) PV Guests: You can configure a FrameBuffer for the DomUs and use SDL or VNC to view it from Dom0.
3) For any type of guest, you can run another X server in your Dom0, and use this one over TCP/IP for your DomUs (i use XDMCP). It is not that slow. You can even watch movies. I didn't yet try running Compiz Beryl etc.

Best regards,

Emre

Quoted 17 lines · Abe

hello everybody,

is it possible to run a paravirtualized linux (domU) that its graphic card is working directly with hardware? what about the peripherals? mouse,keyboard,usb?
how can this be accomplished if domain0 does not hold of a graphic card driver?
thanks,
Abe.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 3 lines
Emre Erenoglu
[email protected]
[email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 6 lines

Hi Abe,

I'm not a developer. Nevertheless, as far as I know, using a graphic hardware with 3d functionalities etc. is not possible at the moment. PCI device hiding functionality of Xen 2.0 does not yet work for Xen 3.0, therefore you cannot reach the graphics hardware directly from a Xen DomU.

Actually the PCI device hiding does now work on Xen 3.0 so you could assign a graphics card to a domU. I think people may have done this successfully although I'm not sure how functional they managed to make the resulting system; X.org used to get a little unhappy and confused when run in a domU even with access to the graphics card. Maybe this is better now.

Giving PCI devices to HVM isn't possible (at least not until suitable IOMMU support is available - both a hardware and software problem).

Quoted 7 lines

1) HVM Guests: They already have a graphics card emulation. Low resolution, slow.
2) PV Guests: You can configure a FrameBuffer for the DomUs and use SDL or VNC to view it from Dom0.
3) For any type of guest, you can run another X server in your Dom0, and use this one over TCP/IP for your DomUs (i use XDMCP). It is not that slow. You can even watch movies. I didn't yet try running Compiz Beryl etc.

I wouldn't expect compiz / beryl to work well if forwarded from another machine (or even from a domU), although I'd be interested to discover if you *can*.

Or SSH to the guest and use X protocol forwarding - works very well and integrates well with your dom0 desktop. Or use NX (NoMachine X) to forward a desktop with sound, storage and print services (if you can get it to work!).

Cheers,
Mark

Signature · 4 lines
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!
#3 lore raw

Hi,

I don't have a second PCI graphics card so I won't be able to try it. But just a question, when we say PCI, is it also applicable for AGP (guess this is also PCI) and PCI-E?

In my setup, I'm using pulseaudio for sound and samba for file sharing. NFS may also be used.

How is performance when watching a movie over X forwaded by SSH?

Emre

Quoted 51 lines · Mark Williamson
Quoted 7 lines

Hi Abe,

I'm not a developer. Nevertheless, as far as I know, using a graphic hardware with 3d functionalities etc. is not possible at the moment. PCI device hiding functionality of Xen 2.0 does not yet work for Xen 3.0, therefore you cannot reach the graphics hardware directly from a Xen

DomU.

Actually the PCI device hiding does now work on Xen 3.0 so you could assign a
graphics card to a domU. I think people may have done this successfully although I'm not sure how functional they managed to make the resulting system; X.org used to get a little unhappy and confused when run in a domU even with access to the graphics card. Maybe this is better now.

Giving PCI devices to HVM isn't possible (at least not until suitable IOMMU
support is available - both a hardware and software problem).

Quoted 1 line

1) HVM Guests: They already have a graphics card emulation. Low

resolution,

Quoted 2 lines

slow.
2) PV Guests: You can configure a FrameBuffer for the DomUs and use SDL

or

Quoted 3 lines

VNC to view it from Dom0.
3) For any type of guest, you can run another X server in your Dom0, and use this one over TCP/IP for your DomUs (i use XDMCP). It is not that

slow.

Quoted 1 line

You can even watch movies. I didn't yet try running Compiz Beryl etc.

I wouldn't expect compiz / beryl to work well if forwarded from another machine (or even from a domU), although I'd be interested to discover if you
*can*.

Or SSH to the guest and use X protocol forwarding - works very well and integrates well with your dom0 desktop. Or use NX (NoMachine X) to forward a
desktop with sound, storage and print services (if you can get it to work!).

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!

Signature · 3 lines
Emre Erenoglu
[email protected]
[email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Emre Erenoglu
Sent: 16 March 2007 15:45
To: Mark Williamson
Cc: [email protected]; [email protected]
Subject: Re: [Xen-devel] graphic card on domU

Quoted 5 lines

Hi,

I don't have a second PCI graphics card so I won't be able to try it. But just a question, when we say PCI, is it also applicable for AGP (guess this is also PCI) and PCI-E?

Yes, all "flavours" of PCI are software compatible: PCI, PCI-x, AGP(1,2,8x) and PCI-E. It's just changes in hardware architecture (and some extended register sets for PCI-E, but if you don't particuarly care about PCI-E performance counting, or some other rather special things, the software don't need to know about those to function correctly).

--
Mats