Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script run on proxmox 7 #84

Open
wordain opened this issue Nov 19, 2021 · 25 comments
Open

script run on proxmox 7 #84

wordain opened this issue Nov 19, 2021 · 25 comments

Comments

@wordain
Copy link

wordain commented Nov 19, 2021

Hi,

after trying the scipt on a fresh proxmox install, the first dkms install fails. I followed the guide found in https://wvthoog.nl/proxmox-7-vgpu/. In the attached log seems something tottaly breaks when the 5.12 patch is applied. Any chance for an insight what I might doing wrong?

driver version : NVIDIA-Linux-x86_64-460.32.04-vgpu-kvm
gpu : NVIDIA Corporation GM206GL [Quadro M2000] (yea not like the mostly tested 1050,1650,1600,2060, but theoritaclly, the card should be in the supported ranges)

make.log

@wordain wordain changed the title script run of proxmox 7 script run on proxmox 7 Nov 19, 2021
@DualCoder
Copy link
Owner

/var/lib/dkms/nvidia/460.32.04/build/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c:162:25: error: initialization of 'int (*)(struct mdev_device *)' from incompatible pointer type 'int (*)(struct kobject *, struct mdev_device *)' [-Werror=incompatible-pointer-types]
  162 |     .create           = nv_vgpu_vfio_create,
      |                         ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/460.32.04/build/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c:162:25: note: (near initialization for 'vgpu_fops.create')

This error is caused by this change to the linux kernel: torvalds/linux@c2ef2f5 so you need a kernel version prior to that or you will need more patches.

@mlinton
Copy link

mlinton commented Nov 28, 2021

Additionally, with a fully updated proxmox installation as of Nov 28th, 2021, the kernel is updated to 5.13.10-1-pve. Following instructions in this repo and here fail, and I believe an update to the code will be required to get it working on the latest installation of proxmox 7.1

@wordain
Copy link
Author

wordain commented Nov 28, 2021

I did manage to succeed on the first install of the drivers due to - as DualCoder pointed - the latest kernel changes break the install (the 7.0 proxmox is 5.11, and 7.1 is 5.13). On the 7.0, in order to avoid the upgrade of the pve-headder, you just have to skip the installation of any header upgrade when updating or skip any update calls.

Despite that though, for my try, I have not managed to make the magical phrase "vgpu unlock patch applied" be shown in dmesg in either gpu I tried: a K620, a K2200 and a m2000. The first 2 are maxwell1.0, the second is maxwell 2.0. One is not a high-end model, but the other 2 were kinda the "gtx 1060" of their time.

I haven't managed to find any time to test it on a 6.5 proxmox installation on the m2000 - i did try with the k620,k2200 and again no magic phrase. But it would be problematic as the iso is upgraded to the latest headers (5.10 I believe) which still needs to have patches applied. Downgrading an iso's header looks wrong to me. And the other option would be to try a centos-like installation and see if it could work there.

@justynbell
Copy link

justynbell commented Nov 29, 2021

It looks like if you use the newest version of the NVIDIA drivers from the trial website, 470.82, it works on Proxmox 7.1.

One small thing that took me too long to realize is that the dmesg output for vgpu unlock is turned off by default, so you'll never see the "vGPU unlock patch applied" message, even if it's working. That kind of threw me for a loop for a while.

(you can turn it on and rebuild your patched drivers here):

@Dardrai
Copy link

Dardrai commented Dec 1, 2021

you can also run mdevctl types - if you have output there it should be working and if you do not have output something is not right/correctly done

@mcdull
Copy link

mcdull commented Dec 4, 2021

It looks like if you use the newest version of the NVIDIA drivers from the trial website, 470.82, it works on Proxmox 7.1.

One small thing that took me too long to realize is that the dmesg output for vgpu unlock is turned off by default, so you'll never see the "vGPU unlock patch applied" message, even if it's working. That kind of threw me for a loop for a while.

(you can turn it on and rebuild your patched drivers here):

The same 5.12 patch required for the 470.82 to work under Proxmox 7.1?

@Dardrai
Copy link

Dardrai commented Dec 4, 2021

Dont think that this is working with 470 I would use the same version as the linked one in the wiki - know that the newer driver like 470 have additional checks in it - one checks the vram of the spoofed gpu and the real amount from the gpu and if not matching error out.
Also 5.12 kernels can be patched
Vgpu was broken in 5.13 and again in 5.14, these kernels are not working yet (I heard a patch is incomimg next week for 5.14/5.15)

@pete1019
Copy link

pete1019 commented Dec 26, 2021

Any news on this? Patch available?

Should this work from 5.12 and later?
https://github.com/rupansh/vgpu_unlock_5.12

Thank you.

@VGPU-Community-Drivers
Copy link

VGPU-Community-Drivers commented Dec 26, 2021

https://transfer.sh/AyU4xv/fourteen.patch

Works on some newer 5.14.x and 5.15+ - some earlier 5.14 are not working with that.

@mcdull
Copy link

mcdull commented Dec 26, 2021

https://transfer.sh/AyU4xv/fourteen.patch

Works on some newer 5.14.x and 5.15+ - some earlier 5.14 are not working with that.

file not found.

And is it safe to update to 5.15 under proxmox?

@VGPU-Community-Drivers
Copy link

Saw that :/ - otherwise use this patch - https://github.com/VGPU-Community-Drivers/Merged-Rust-Drivers/tree/main/NVIDIA-Linux-x86_64-460.73.01-grid-vgpu-kvm/kernel/patches - it should be usable with just the kvm driver too and this patches - some work needs to be done bc if you are not using merged, it will try to patch to much / not existing things - also users in the discord have it running ;) so I would say its save

@pete1019
Copy link

@VGPU-Community-Drivers can you please give a link to the Discord-Channel? Thx

@VGPU-Community-Drivers
Copy link

In the google doc https://docs.google.com/document/d/1pzrWJ9h-zANCtyqRgS7Vzla0Y8Ea2-5z2HEi4X75d2Q/edit?usp=sharing first pagejoin our discord :)

@mcdull
Copy link

mcdull commented Dec 26, 2021

Due to my server setting, I do not want to use the merge driver. And I tried the kvm driver KVM-460.73.02, the fourteen.patch did not complete. And it seems to apply to only merge driver?

@actionhenkt
Copy link

Is there a working version for kernel 5.15+ yet ?

@mcdull
Copy link

mcdull commented Jan 5, 2022 via email

@mcdull
Copy link

mcdull commented Jan 20, 2022

in general 460 driver now works with 5.15.
470 still pending.

@Dardrai
Copy link

Dardrai commented Jan 20, 2022

Patch 5.16 is out and is running - just some imports fixed to get 5.16 working -> a patch for 5.13 is also comming for the sad ubuntu users but not yet implemented on git drivers

@mcdull
Copy link

mcdull commented Jan 20, 2022

do you mean patch for 460 or 470 driver?

@mcdull
Copy link

mcdull commented Jan 20, 2022

i always dont understand how these patches work.. do I have to apply all for 5.16?
or just apply sixteen for 5.16?

@Dardrai
Copy link

Dardrai commented Jan 20, 2022

The simplest way is to add them on dkms and let it do it for you, as you can see above link if you go one folder up to the dkms conf.
But yes for 5.16 you need the patches for 5.12+5.14 too
It only applies patches that are req for the kernel you have and are needed, also it does not make sense to have a complete merged 5.16 patch with all prior patch merged to one file. Bc of the duplication/maintainability of the patches/applying them

@mcdull
Copy link

mcdull commented Jan 20, 2022

problem is there is no fifteen patch around. And prormox 7.1 can opt into 5.15 only.
Anyway, I can confirm the merge driver works in 5.15 kernel under promox with 460 driver.

@Dardrai
Copy link

Dardrai commented Jan 20, 2022

5.15 is enabled with fourteen patch - there are no changes between 5.14.x to 5.15 that would have req a patch

@zaixia108
Copy link

I've seen the vGPU unlock patch applied, but my 1070ti still shows up as a 1070ti, not p4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants