有谁知道虚拟机显卡的问题?
大家都知道vmware虚拟机只能虚拟出来一个16mb显存的svga显卡,那么Virtuozzo和xen虚拟的显卡是什么规格?有没有虚拟机能直接利用真实的显卡?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
大家都知道vmware虚拟机只能虚拟出来一个16mb显存的svga显卡,那么Virtuozzo和xen虚拟的显卡是什么规格?有没有虚拟机能直接利用真实的显卡?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
If work on 3D kinda projects, one thing you'd understand that the 3D software have to utilize the power of your physical video system. It's impossible to suck the capability from a "virtual" video system. You've to prepare a dedicate PC/workstation for your 3D tasks.
OK,接着看资料去了。想虚拟个windows,女朋友作3d工作用。看来不可能了。
xen虚拟的是cirrus logic的显卡,事实上xen是可以使用真实的物理显卡的,不过需要解决很多问题。
详细地可以搜索pciproxy。
知道了,多谢了。可惜虚拟windows要等vt了。
在xen user's manual中有如下叙述:
5.3 Driver Domain Configuration (Domain 驱动配置)
5.3.1 PCI
Individual PCI devices can be assigned to a given domain to allow that domain direct access to the PCI hardware. To use this functionality, ensure that the PCI Backend is compiled in to a privileged domain (e.g. domain 0) and that the domains which will be assigned PCI devices have the PCI Frontend compiled in. In XenLinux, the PCI Backend is available under the Xen configuration section while the PCI Frontend is under the architecture-specific "Bus Options" section. You may compile both the backend and the frontend into the same kernel; they will not affect each other.
The PCI devices you wish to assign to unprivileged domains must be "hidden" from your backend domain (usually domain 0) so that it does not load a driver for them. Use the pciback.hide kernel parameter which is specified on the kernel command-line and is configurable through GRUB (see Section 2.5). Note that devices are not really hidden from the backend domain. The PCI Backend ensures that no other device driver loads for those devices. PCI devices are identified by hexadecimal slot/funciton numbers (on Linux, use lspci to determine slot/funciton numbers of your devices) and can be specified with or without the PCI domain:
(bus:slot.func) example (02:1d.3)
(domain:bus:slot.func) example (0000:02:1d.3)
An example kernel command-line which hides two PCI devices might be:
root=/dev/sda4 ro console=tty0 pciback.hide=(02:01.f)(0000:04:1d.0)
To configure a domU to receive a PCI device:
Command-line:
Use the pci command-line flag. For multiple devices, use the option multiple times.
xm create netcard-dd pci=01:00.0 pci=02:03.0
Flat Format configuration file:
Specify all of your PCI devices in a python list named pci.
pci=['01:00.0','02:03.0']
SXP Format configuration file:
Use a single PCI device section for all of your devices (specify the numbers in hexadecimal with the preceding '0x'). Note that domain here refers to the PCI domain, not a virtual machine within Xen.
(device (pci
(dev (domain 0x0)(bus 0x3)(slot 0x1a)(func 0x1)
(dev (domain 0x0)(bus 0x1)(slot 0x5)(func 0x0)
)
There are a number of security concerns associated with PCI Driver Domains that you can read about in Section 9.2
也就是说dom0中的一个pci可以被domu使用. 而显卡也是一个pci设备.
没有用过这么高级的特性
不好意思没有找到,我去了,但是没有描述这个问题
既然没有用过,第一件优先级不是在这里问,你可以直接去他们的官方站点,每个站点都会有 Feature, Specification, Product sheet之类的,下下来看看就知道了,这样岂不是更加直接和准确?
不知道啊,所以才问的啊,我只用过vmware,他肯定是不行的啊,Virtuozzo,qemu,xen我都没有用过。
xen是不是可以直接利用主机的单独显卡?