<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The question is : why xorg detects
      device on pci 0:0:16:0 and not on 0:10:0 ( with lspci ) ? That can
      explain my problem ?<br>
      <br>
      Can we disable the default vga device in kvm ?<br>
      Can we remap a device on a forced address ?<br>
      <br>
      Regards,<br>
      <br>
      Charles<br>
      <br>
      Le 13/08/2012 13:58, Charles Bijon a écrit :<br>
    </div>
    <blockquote cite="mid:5028EBED.8060900@bijon.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">I did it but it doesn't work. The vm
        running centos 6.3, but i will try with another distribution (
        debian ) to see if i get the same situation.<br>
        <br>
        Regards<br>
        <br>
        Le 13/08/2012 12:45, Gilberto Nunes a écrit :<br>
      </div>
      <blockquote
cite="mid:CAOKSTBsPnfncwVO6We1VdrYOiCOgtn4mJ2o+booWOv7etYTpiA@mail.gmail.com"
        type="cite">
        <div>Hello</div>
        <div><br>
        </div>
        I think is not a problem with proxmox..
        <div>You need install the properly driver in order to get NVidia
          Card work...</div>
        <div>Try download the driver from NVidia web page...</div>
        <div><br>
        </div>
        <div><br>
          <br>
          <div class="gmail_quote">2012/8/13 Charles Bijon <span
              dir="ltr"><<a moz-do-not-send="true"
                href="mailto:charles@bijon.fr" target="_blank">charles@bijon.fr</a>></span><br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
                <br>
                I am trying to use an nvidia card into virtual machine.
                My pci card is listed with the lspci command on my VM
                but when i try to launch my X windows, xorg said it
                can't find the device.<br>
                <br>
                I have try latest stable stable and beta drivers of
                nvidia proprietary.<br>
                <br>
                lspci on node master give : <br>
                <br>
                lspci | grep -i nvi<br>
                42:00.0 VGA compatible controller: NVIDIA Corporation
                G98 [GeForce 8400 GS] (rev a1)<br>
                <br>
                On my kvm vm config file i have this :<br>
                <br>
                cat /etc/pve/qemu-server/2667.conf<br>
                bootdisk: ide0<br>
                cores: 2<br>
                <b>hostpci0: 42:00.0</b><br>
                ide0: local:2667/vm-2667-disk-1.raw<br>
                ide2:
                local:iso/CentOS-6.3-x86_64-bin-DVD1.iso,media=cdrom<br>
                keyboard: fr<br>
                memory: 6500<br>
                name: <a moz-do-not-send="true"
                  href="http://map2667.eu.webraska.com" target="_blank">map2667.eu.webraska.com</a><br>
                net0: rtl8139=DE:8A:16:1C:56:AF,bridge=vmbr0<br>
                ostype: l26<br>
                sockets: 2<br>
                vga: std<br>
                <br>
                On the node dmesg, i have this message :<br>
                <br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0xf (was 0x100, writing 0x10f)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0xc (was 0x0, writing 0xd3800000)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x9 (was 0x1, writing 0x7c81)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x7 (was 0x4, writing 0xd0000004)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x5 (was 0xc, writing 0xc000000c)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x4 (was 0x0, writing 0xd2000000)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x3 (was 0x0, writing 0x10)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x1 (was 0x100000, writing 0x100007)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0xf (was 0x100, writing 0x10f)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0xc (was 0x0, writing 0xd3800000)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x9 (was 0x1, writing 0x7c81)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x7 (was 0x4, writing 0xd0000004)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x5 (was 0xc, writing 0xc000000c)<br>
                pci-stub 0000:42:00.0: restoring config space at offset
                0x4 (was 0x0, writing 0xd2000000)<br>
                <br>
                Into the kvm instance i have this :<br>
                <br>
                lspci | grep -i nvi<br>
                00:10.0 VGA compatible controller: NVIDIA Corporation
                G98 [GeForce 8400 GS] (rev a1)<br>
                <br>
                And my device configuration into xorg.conf  is :<br>
                <br>
                Section "Device"<br>
                    BusId   "0:10:0"<br>
                    Identifier     "Device0"<br>
                    Driver         "nvidia"<br>
                    VendorName     "NVIDIA Corporation"<br>
                    Option "IgnoreEDID" "true"<br>
                    #Option "ConnectedMonitor" "CRT"<br>
                    #Option "NoLogo" "true"<br>
                    #Option "UseEDID" "false"<br>
                    #Option "ConnectedMonitor" "DFP"<br>
                    Option "AllowEmptyInput" "On"<br>
                EndSection<br>
                <br>
                And i have this error :<br>
                <br>
                  1396.860]<br>
                X.Org X Server 1.10.6<br>
                Release Date: 2012-02-10<br>
                [  1396.860] X Protocol Version 11, Revision 0<br>
                [  1396.860] Build Operating System: c6b9
                2.6.32-220.el6.x86_64<br>
                [  1396.860] Current Operating System: Linux <a
                  moz-do-not-send="true"
                  href="http://map2667.eu.webraska.com" target="_blank">map2667.eu.webraska.com</a>
                2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC
                2012 x86_64<br>
                [  1396.860] Kernel command line: ro
                root=/dev/mapper/vg_map2667-lv_root rd_NO_LUKS
                rd_LVM_LV=vg_map2667/lv_swap rd_NO_MD LANG=fr_FR.UTF-8
                SYSFONT=latarcyrheb-sun16 crashkernel=129M@0M
                rd_LVM_LV=vg_map2667/lv_ro<br>
                ot  KEYBOARDTYPE=pc KEYTABLE=fr-latin9 rd_NO_DM rhgb
                quiet<br>
                [  1396.860] Build Date: 22 June 2012  08:01:35PM<br>
                [  1396.860] Build ID: xorg-x11-server
                1.10.6-1.el6.centos<br>
                [  1396.860] Current version of pixman: 0.18.4<br>
                [  1396.860]    Before reporting problems, check <a
                  moz-do-not-send="true"
                  href="https://www.redhat.com/apps/support/"
                  target="_blank">https://www.redhat.com/apps/support/</a><br>
                        to make sure that you have the latest version.<br>
                [  1396.860] Markers: (--) probed, (**) from config
                file, (==) default setting,<br>
                        (++) from command line, (!!) notice, (II)
                informational,<br>
                        (WW) warning, (EE) error, (NI) not implemented,
                (??) unknown.<br>
                [  1396.860] (==) Log file: "/var/log/Xorg.0.log", Time:
                Sun Aug 12 23:46:22 2012<br>
                [  1396.860] (==) Using config file:
                "/etc/X11/xorg.conf"<br>
                [  1396.860] (==) ServerLayout "Layout0"<br>
                [  1396.860] (**) |-->Screen "Screen0" (0)<br>
                [  1396.860] (**) |   |-->Monitor "Monitor0"<br>
                [  1396.860] (**) |   |-->Device "Device0"<br>
                [  1396.860] (**) |-->Input Device "Keyboard0"<br>
                [  1396.860] (**) |-->Input Device "Mouse0"<br>
                [  1396.860] (==) Automatically adding devices<br>
                [  1396.860] (==) Automatically enabling devices<br>
                [  1396.860] (**) FontPath set to:<br>
                        /usr/share/fonts/default/Type1,<br>
                        catalogue:/etc/X11/fontpath.d,<br>
                        built-ins<br>
                [  1396.860] (**) ModulePath set to
                "/usr/lib64/xorg/modules/extensions/nvidia,/usr/lib64/xorg/modules"<br>
                [  1396.860] (WW) Hotplugging is on, devices using
                drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.<br>
                [  1396.860] (WW) Disabling Keyboard0<br>
                [  1396.860] (WW) Disabling Mouse0<br>
                [  1396.860] (II) Loader magic: 0x7d51a0<br>
                [  1396.860] (II) Module ABI versions:<br>
                [  1396.860]    X.Org ANSI C Emulation: 0.4<br>
                [  1396.860]    X.Org Video Driver: 10.0<br>
                [  1396.860]    X.Org XInput driver : 12.2<br>
                [  1396.860]    X.Org Server Extension : 5.0<br>
                [  1396.862] (--) PCI: (0:0:2:0) 1013:00b8:1af4:1100 rev
                0, Mem @ 0xfc000000/33554432, 0xf3040000/4096, BIOS @
                0x????????/65536<br>
                [  1396.862] (--) PCI:*(0:0:16:0) 10de:06e4:10de:050f
                rev 161, Mem @ 0xf2000000/16777216,
                0xe0000000/268435456, 0xf0000000/33554432, I/O @
                0x0000c100/128, BIOS @ 0x????????/131072<br>
                [  1396.862] (II) "extmod" will be loaded. This was
                enabled by default and also specified in the config
                file.<br>
                [  1396.862] (II) "dbe" will be loaded. This was enabled
                by default and also specified in the config file.<br>
                [  1396.862] (II) "glx" will be loaded. This was enabled
                by default and also specified in the config file.<br>
                [  1396.862] (II) "record" will be loaded by default.<br>
                [  1396.862] (II) "dri" will be loaded by default.<br>
                [  1396.862] (II) "dri2" will be loaded by default.<br>
                [  1396.862] (II) LoadModule: "dbe"<br>
                [  1396.862] (II) Loading
                /usr/lib64/xorg/modules/extensions/libdbe.so<br>
                [  1396.862] (II) Module dbe: vendor="X.Org Foundation"<br>
                [  1396.862]    compiled for 1.10.6, module version =
                1.0.0<br>
                [  1396.862]    Module class: X.Org Server Extension<br>
                [  1396.862]    ABI class: X.Org Server Extension,
                version 5.0<br>
                [  1396.862] (II) Loading extension DOUBLE-BUFFER<br>
                [  1396.862] (II) LoadModule: "extmod"<br>
                [  1396.863] (II) Loading
                /usr/lib64/xorg/modules/extensions/libextmod.so<br>
                [  1396.863] (II) Module extmod: vendor="X.Org
                Foundation"<br>
                [  1396.863]    compiled for 1.10.6, module version =
                1.0.0<br>
                [  1396.863]    Module class: X.Org Server Extension<br>
                [  1396.863]    ABI class: X.Org Server Extension,
                version 5.0<br>
                [  1396.863] (II) Loading extension SELinux<br>
                [  1396.863] (II) Loading extension MIT-SCREEN-SAVER<br>
                [  1396.863] (II) Loading extension
                XFree86-VidModeExtension<br>
                [  1396.863] (II) Loading extension XFree86-DGA<br>
                [  1396.863] (II) Loading extension DPMS<br>
                [  1396.863] (II) Loading extension XVideo<br>
                [  1396.863] (II) Loading extension
                XVideo-MotionCompensation<br>
                [  1396.863] (II) Loading extension X-Resource<br>
                [  1396.863] (II) LoadModule: "glx"<br>
                [  1396.863] (II) Loading
                /usr/lib64/xorg/modules/extensions/libglx.so<br>
                [  1396.873] (II) Module glx: vendor="NVIDIA
                Corporation"<br>
                [  1396.873]    compiled for 4.0.2, module version =
                1.0.0<br>
                [  1396.873]    Module class: X.Org Server Extension<br>
                [  1396.873] (II) NVIDIA GLX Module  304.32  Thu Aug  2
                19:03:23 PDT 2012<br>
                [  1396.873] (II) Loading extension GLX<br>
                [  1396.873] (II) LoadModule: "record"<br>
                [  1396.873] (II) Loading
                /usr/lib64/xorg/modules/extensions/librecord.so<br>
                [  1396.873] (II) Module record: vendor="X.Org
                Foundation"<br>
                [  1396.873]    compiled for 1.10.6, module version =
                1.13.0<br>
                [  1396.873]    Module class: X.Org Server Extension<br>
                [  1396.873]    ABI class: X.Org Server Extension,
                version 5.0<br>
                [  1396.873] (II) Loading extension RECORD<br>
                [  1396.873] (II) LoadModule: "dri"<br>
                [  1396.873] (II) Loading
                /usr/lib64/xorg/modules/extensions/libdri.so<br>
                [  1396.874] (II) Module dri: vendor="X.Org Foundation"<br>
                [  1396.874]    compiled for 1.10.6, module version =
                1.0.0<br>
                [  1396.874]    ABI class: X.Org Server Extension,
                version 5.0<br>
                [  1396.874] (II) Loading extension XFree86-DRI<br>
                [  1396.874] (II) LoadModule: "dri2"<br>
                [  1396.874] (II) Loading
                /usr/lib64/xorg/modules/extensions/libdri2.so<br>
                [  1396.874] (II) Module dri2: vendor="X.Org Foundation"<br>
                [  1396.874]    compiled for 1.10.6, module version =
                1.2.0<br>
                [  1396.874]    ABI class: X.Org Server Extension,
                version 5.0<br>
                [  1396.874] (II) Loading extension DRI2<br>
                [  1396.874] (II) LoadModule: "nvidia"<br>
                [  1396.874] (II) Loading
                /usr/lib64/xorg/modules/drivers/nvidia_drv.so<br>
                [  1396.874] (II) Module nvidia: vendor="NVIDIA
                Corporation"<br>
                [  1396.874]    compiled for 4.0.2, module version =
                1.0.0<br>
                [  1396.874]    Module class: X.Org Video Driver<br>
                [  1396.875] (II) NVIDIA dlloader X Driver  304.32  Thu
                Aug  2 18:43:25 PDT 2012<br>
                [  1396.875] (II) NVIDIA Unified Driver for all
                Supported NVIDIA GPUs<br>
                [  1396.875] (--) using VT number 2<br>
                <br>
                [  1396.884] (EE) No devices detected.<br>
                [  1396.884]<br>
                Fatal server error:<br>
                [  1396.884] no screens found<br>
                [  1396.884]<br>
                Please consult the CentOS support<br>
                         at <a moz-do-not-send="true"
                  href="https://www.redhat.com/apps/support/"
                  target="_blank">https://www.redhat.com/apps/support/</a><br>
                <br>
                <br>
                <br>
                FYI<br>
                <br>
                pveversion -v<br>
                pve-manager: 2.1-13 (pve-manager/2.1/bdd3663d)<br>
                running kernel: 2.6.32-12-pve<br>
                proxmox-ve-2.6.32: 2.1-72<br>
                pve-kernel-2.6.32-11-pve: 2.6.32-66<br>
                pve-kernel-2.6.32-13-pve: 2.6.32-72<br>
                pve-kernel-2.6.32-12-pve: 2.6.32-68<br>
                lvm2: 2.02.95-1pve2<br>
                clvm: 2.02.95-1pve2<br>
                corosync-pve: 1.4.3-1<br>
                openais-pve: 1.1.4-2<br>
                libqb: 0.10.1-2<br>
                redhat-cluster-pve: 3.1.92-2<br>
                resource-agents-pve: 3.9.2-3<br>
                fence-agents-pve: 3.1.8-1<br>
                pve-cluster: 1.0-27<br>
                qemu-server: 2.0-47<br>
                pve-firmware: 1.0-17<br>
                libpve-common-perl: 1.0-28<br>
                libpve-access-control: 1.0-24<br>
                libpve-storage-perl: 2.0-29<br>
                vncterm: 1.0-2<br>
                vzctl: 3.0.30-2pve5<br>
                vzprocps: 2.0.11-2<br>
                vzquota: 3.0.12-3<br>
                pve-qemu-kvm: 1.1-6<br>
                ksm-control-daemon: 1.1-1<br>
                <br>
                <br>
                <br>
                Do you have some information about pci passthrough about
                graphics cards please or something to help me ?<br>
                <br>
                <br>
                Regards,<br>
                <br>
                Charles Bijon<br>
                <br>
              </div>
              <br>
              _______________________________________________<br>
              pve-user mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
              <a moz-do-not-send="true"
                href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user"
                target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          Gilberto Nunes
          <div><br>
            <br>
            (47) 9676-7530</div>
          <div>
            <p
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">msn: <a
                moz-do-not-send="true"
                href="mailto:gilbertonunesferreira@hotmail.com"
                target="_blank">gilbertonunesferreira@hotmail.com</a></p>
            <p
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">msn:

              <a moz-do-not-send="true"
                href="mailto:konnectati@konnectati.com.br"
                target="_blank">konnectati@konnectati.com.br</a></p>
            <p
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Skype:

              gilberto.nunes36</p>
            <p
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Skype:

              konnectati</p>
            <p
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><font
                face="Arial, Helvetica, sans-serif"><span
                  style="font-size:14px"><br>
                </span></font></p>
            <font size="4"><b><a moz-do-not-send="true"
                  href="http://www.konnectati.com.br" target="_blank">www.konnectati.com.br</a></b></font><br>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
pve-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<a class="moz-txt-link-freetext" href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>