免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5468 | 回复: 18
打印 上一主题 下一主题

有谁知道虚拟机显卡的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-05 14:00 |只看该作者 |倒序浏览
大家都知道vmware虚拟机只能虚拟出来一个16mb显存的svga显卡,那么Virtuozzo和xen虚拟的显卡是什么规格?有没有虚拟机能直接利用真实的显卡?

论坛徽章:
0
2 [报告]
发表于 2006-09-05 18:03 |只看该作者
xen是不是可以直接利用主机的单独显卡?

论坛徽章:
0
3 [报告]
发表于 2006-09-05 18:06 |只看该作者
不知道啊,所以才问的啊,我只用过vmware,他肯定是不行的啊,Virtuozzo,qemu,xen我都没有用过。

论坛徽章:
0
4 [报告]
发表于 2006-09-05 20:28 |只看该作者
既然没有用过,第一件优先级不是在这里问,你可以直接去他们的官方站点,每个站点都会有 Feature, Specification, Product sheet之类的,下下来看看就知道了,这样岂不是更加直接和准确?

论坛徽章:
0
5 [报告]
发表于 2006-09-05 21:24 |只看该作者
不好意思没有找到,我去了,但是没有描述这个问题

论坛徽章:
0
6 [报告]
发表于 2006-09-05 23:22 |只看该作者
在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设备.
没有用过这么高级的特性

论坛徽章:
0
7 [报告]
发表于 2006-09-06 08:43 |只看该作者
知道了,多谢了。可惜虚拟windows要等vt了。

论坛徽章:
0
8 [报告]
发表于 2006-09-06 11:04 |只看该作者
xen虚拟的是cirrus logic的显卡,事实上xen是可以使用真实的物理显卡的,不过需要解决很多问题。
详细地可以搜索pciproxy。

论坛徽章:
0
9 [报告]
发表于 2006-09-06 13:22 |只看该作者
OK,接着看资料去了。想虚拟个windows,女朋友作3d工作用。看来不可能了。

论坛徽章:
0
10 [报告]
发表于 2006-09-06 20:21 |只看该作者
原帖由 pluto_odin 于 2006-9-6 13:22 发表
OK,接着看资料去了。想虚拟个windows,女朋友作3d工作用。看来不可能了。



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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP