Nested virtualisation problem

mercury131

Active Member
Aug 7, 2018
24
5
43
33
Hello everyone!

I try to run virtual box inside VM, but when I run vm inside virtual box it freezes.

How it looks:
https://gyazo.com/d837355d90eef7f8715b5a8914c61712

I still see virtual box start screen, F12 button not working.

But I can reset /poweroff this VM and virtualbox GIU working, I dont understand what hapening.

I check my PVE, nested virtualization enabled, my CPU support it, inside guest VM (centos 7, where installed Virtual box ) I run:

Code:
[root@localhost ~]# virt-host-validate
  QEMU: Checking for hardware virtualization                                 : PASS
  QEMU: Checking if device /dev/kvm exists                                   : PASS
  QEMU: Checking if device /dev/kvm is accessible                            : PASS
  QEMU: Checking if device /dev/vhost-net exists                             : PASS
  QEMU: Checking if device /dev/net/tun exists                               : PASS
  QEMU: Checking for cgroup 'memory' controller support                      : PASS
  QEMU: Checking for cgroup 'memory' controller mount-point                  : PASS
  QEMU: Checking for cgroup 'cpu' controller support                         : PASS
  QEMU: Checking for cgroup 'cpu' controller mount-point                     : PASS
  QEMU: Checking for cgroup 'cpuacct' controller support                     : PASS
  QEMU: Checking for cgroup 'cpuacct' controller mount-point                 : PASS
  QEMU: Checking for cgroup 'cpuset' controller support                      : PASS
  QEMU: Checking for cgroup 'cpuset' controller mount-point                  : PASS
  QEMU: Checking for cgroup 'devices' controller support                     : PASS
  QEMU: Checking for cgroup 'devices' controller mount-point                 : PASS
  QEMU: Checking for cgroup 'blkio' controller support                       : PASS
  QEMU: Checking for cgroup 'blkio' controller mount-point                   : PASS
  QEMU: Checking for device assignment IOMMU support                         : WARN (No ACPI IVRS table found, IOMMU either disabled in BIOS or not supported by this hardware platform)
   LXC: Checking for Linux >= 2.6.26                                         : PASS
   LXC: Checking for namespace ipc                                           : PASS
   LXC: Checking for namespace mnt                                           : PASS
   LXC: Checking for namespace pid                                           : PASS
   LXC: Checking for namespace uts                                           : PASS
   LXC: Checking for namespace net                                           : PASS
   LXC: Checking for namespace user                                          : PASS
   LXC: Checking for cgroup 'memory' controller support                      : PASS
   LXC: Checking for cgroup 'memory' controller mount-point                  : PASS
   LXC: Checking for cgroup 'cpu' controller support                         : PASS
   LXC: Checking for cgroup 'cpu' controller mount-point                     : PASS
   LXC: Checking for cgroup 'cpuacct' controller support                     : PASS
   LXC: Checking for cgroup 'cpuacct' controller mount-point                 : PASS
   LXC: Checking for cgroup 'cpuset' controller support                      : PASS
   LXC: Checking for cgroup 'cpuset' controller mount-point                  : PASS
   LXC: Checking for cgroup 'devices' controller support                     : PASS
   LXC: Checking for cgroup 'devices' controller mount-point                 : PASS
   LXC: Checking for cgroup 'blkio' controller support                       : PASS
   LXC: Checking for cgroup 'blkio' controller mount-point                   : PASS
   LXC: Checking if device /sys/fs/fuse/connections exists                   : PASS
Code:

and see virtualisation is activated.

I check another VM with same qemu settings, with windows guest and Hyper V in it.
Everything is working I can run 64bit VM, also I try VMware ESXI, it also works.

I dont understand why Virtual box not run VM.

My proxmox VM config:
Code:
args: -cpu host,+svm
balloon: 0
boot: cdn
bootdisk: sata0
cores: 8
cpu: host
efidisk0: SSD:vm-111-disk-1,size=128K
freeze: 1
ide2: local:iso/CentOS-7-x86_64-DVD-1908.iso,media=cdrom
machine: pc-i440fx-2.11
memory: 8192
name: VM3
net0: e1000=1E:5E:45:F0:1F:86,bridge=vmbr0,firewall=1
numa: 0
ostype: other
sata0: SSD:vm-111-disk-0,cache=directsync,size=200G
serial0: socket
smbios1: uuid=795d6338-6e51-400f-88c0-116c09845fee
sockets: 1
vmgenid: 7226a854-6037-4b75-902e-073320ca12fe

My PVE version pve-manager/6.0-9/508dcee0 (running kernel: 5.0.21-3-pve)

My CPU:
AMD FX(tm)-8320 Eight-Core

Virtual box VM settings:
https://gyazo.com/1e8889bd340e5416875128d4ac5871f6
https://gyazo.com/c85944dee0c20be9f8610e29855d4228
https://gyazo.com/479130ba31bc1385db0df047d43106b6

Also I try to run vm via terminal command, no errors in output:
Code:
[root@localhost ~]# VBoxManage startvm 4
Waiting for VM "4" to power on...
VM "4" has been successfully started.

I try to Enable/Disable CPU acceleration, PAE, Nested Paging, add vCPU/RAM - nothing helps.

Vitrual Box guest vm log - https://ufile.io/e47sznsn

Please help me run Virtual box correctly =)

I need it for internal testing (vbox + vagrant tests)
 

Attachments

  • 4-2019-10-31-23-16-08.log
    119.7 KB · Views: 1
Last edited:
Hey.
I have exactly the same problem.
All attempts to correct, did not lead to a result.
My CPU:
Ryzen 2400
Virtual Environment 6.0-11
At the same time, Vmvare works
 
Both or you seem to have AMD cpu. I have Intel Xeon and Virtualbox works nested for me. Could it be a vbox bug with AMD?
Maybe..
I write another article on Virtual Box forum, they say it's unsupported configuration.
Nested Virtual Box works only inside another Virtual box.

Maybe wa can emulate Intel CPU in proxmox VM?
But I don't understand how to emulate Intel vmx anstead AMD smv..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!