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

[Question]: How to enable nested virtualization #788

Open
1 of 2 tasks
mondox22 opened this issue Jul 29, 2024 · 1 comment
Open
1 of 2 tasks

[Question]: How to enable nested virtualization #788

mondox22 opened this issue Jul 29, 2024 · 1 comment
Labels
question Further information is requested

Comments

@mondox22
Copy link

mondox22 commented Jul 29, 2024

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

Hi,
I'm trying to install vDSM on Portainer which is installed on an Ubuntu server vm on ProxMox.
I checked with: sudo kvm-ok
and it tells me:

INFO: /dev/kvm exists
KVM acceleration can be used.

However, when I am installing vDSM on Portainer it always tells me: "ERROR: KVM acceleration not available (device file missing), this will cause a major loss of performance."
I checked and "nested virtualization " is enabled so i don't know why this happens.....

Thanks in advance!

@mondox22 mondox22 added the question Further information is requested label Jul 29, 2024
@Skyfay
Copy link

Skyfay commented Sep 17, 2024

Did you add /dev/kvm to the container?
I don't know if you are using Docker Compose in Portainer or just created a stand alone container but you have to pass the device /dev/kvm to the container to get kvm work inside the container.

docker-compose

    devices:
      - /dev/kvm

docker-cli
--device=/dev/kvm

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

No branches or pull requests

2 participants