LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-10-2022, 06:10 PM   #1
fuzzman
LQ Newbie
 
Registered: Nov 2022
Posts: 2

Rep: Reputation: 0
Unhappy "Could not access KVM kernel module" with QEMU on Ubuntu Virtual Machine


I am trying to run a program that uses QEMU on an Ubuntu VM in VirtualBox hosted on a Windows 10 computer with an AMD CPU. When I try to run the program it gives me this error:
Code:
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize kvm: No such file or directory
I've tried a lot of solutions posted online. This one appeared the most promising. However, when I run
Code:
sudo modprobe kvm_amd
it gives me this error:
Code:
modprobe: ERROR: could not insert 'kvm_amd': Operation not supported
Tried to fix that but couldn't find a way to do so. I ran virt-host-validate and got:
Code:
QEMU: Checking for hardware virtualization                                 : FAIL (Only emulated CPUs are available, performance will be significantly limited)

  QEMU: Checking if device /dev/vhost-net exists                             : PASS

  QEMU: Checking if device /dev/net/tun exists                               : PASS

  QEMU: Checking for cgroup 'cpu' controller support                         : PASS

  QEMU: Checking for cgroup 'cpuacct' controller support                     : PASS

  QEMU: Checking for cgroup 'cpuset' controller support                      : PASS

  QEMU: Checking for cgroup 'memory' controller support                      : PASS

  QEMU: Checking for cgroup 'devices' controller support                     : WARN (Enable 'devices' in kernel Kconfig file or mount/enable cgroup controller in your system)

  QEMU: Checking for cgroup 'blkio' controller support                       : PASS

  QEMU: Checking for device assignment IOMMU support                         : WARN (Unknown if this platform has IOMMU support)

  QEMU: Checking for secure guest support                                    : WARN (Unknown if this platform has Secure Guest support)
Other solutions have suggested messing around with VirtualBox settings, this is what I got from trying those:


This hasn't helped fix it. Other solutions mention going to the BIOS to fix it, but since this is a VM there doesn't seem to be a way to do that in VirtualBox.
 
Old 11-12-2022, 08:24 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
VirtualBox 6.1 supports nested virtualization. If you are not running version at least version 6.1 you will need to upgrade.

In vboxmanager settings for your guest select System->Processor and click on the nested VT-x checkbox. If it is greyed out try enabling from the command line as:

vboxmanage modifyvm "guest name" --nested-hw-virt on
 
Old 11-13-2022, 03:10 PM   #3
fuzzman
LQ Newbie
 
Registered: Nov 2022
Posts: 2

Original Poster
Rep: Reputation: 0
In my post I have included two images which show my current VBox settings. I have already checked that setting and also manually enabled it via the command line like you said. I also recently updated it to the newest version. It still does not work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to : Open Virtual Machine Manager to create a new virtual machine BKChicago Linux - Newbie 2 11-08-2016 09:48 PM
Looking For A Bootable OS + Virtual Machine Combo - Bootable Virtual Machine OS Help angelbabycry Linux - Newbie 7 05-08-2015 08:36 PM
Is base memory of virtual machine used when virtual machine is not running? ravisingh1 Linux - Virtualization and Cloud 3 04-09-2013 03:41 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration