KVM Virtualization Configured, But Not Enabled

Shinalaxy

New Member
Dec 3, 2024
1
0
1
I'm a newbie to Linux and Linux commands, so if I'm getting things wrong please tell me. I have screenshots of my issue attached.

I'm doing a proxmox and OPNSense server for a cyber club, and I can't get KVM to work for my OPNSense VM.
  • I've enabled VTX and VTD in BIOS
  • I used this command to enable it in VirtualBox: cd 'C:\Program Files\Oracle\VirtualBox\' VBoxManage.exe modifyvm "<insert VM name>" --nested-hw-virt on
  • I can only use OPNSense with KVM off, otherwise if on, VM doesn't start
    • This is an issue, as it's obviously super slow and a pain to configure OPNSense now
  • I have enabled Nested Paging on in VirtualBox also, and left the Paravirtualization Interface on default
  • When I run the root@proxmox:~# cat /sys/module/kvm_intel/parameters/nested command, I get "No such file or directory", so I can't even check if KVM is enabled or not
  • My CPU is a 12 Gen Intel(R) Core (TM) i3-1215U
  • I tried to follow the Proxmox Wiki page "Nested Virtualization"
  • I use Virtual Box and Proxmox on my Acer Laptop, if that causes any problems? I haven't tried to move my config to desktop yet.
Any help would be greatly appreciated, I'm suffering right now trying to configure OPNSense, and I don't want to have to stay like this .·´¯`(>▂<)´¯`·.
 

Attachments

  • Cat_command_not_working.png
    Cat_command_not_working.png
    121.2 KB · Views: 4
  • KVM_Error_Proxmox.png
    KVM_Error_Proxmox.png
    140.7 KB · Views: 5
  • Proxmox Issues.png
    Proxmox Issues.png
    166.7 KB · Views: 5
  • Proxmox_Nested_Hardware.png
    Proxmox_Nested_Hardware.png
    48.9 KB · Views: 6
  • VirtualBox_KVM.png
    VirtualBox_KVM.png
    52.6 KB · Views: 6
You should try using journalctl to find any potential KVM errors. I remember having a similar issue (albeit on my Debian workstation with Proxmox installed directly on the host system) - KVM threw some errors related to the nested virtualization options. You can also use modprobe -r to reload any modules related to KVM (e.g. modprobe -r kvm_intel) once you have fixed any potential issues found in journalctl.

Edit: You will also need to update the initramfs and reboot to check if it works: update-initramfs -k all -u
 
Last edited:
  • Like
Reactions: Johannes S