Kubeadmin - Unable to setup VM's on Ubuntu

Dear Team,

can someone help to advise on below issue . I have already tried few workarounds suggested via stackoverflow but that didnt help.

My setup is below

  • I have a macbook pro ( MacOS Big Sur 11.7.5 )
  • Oracle VM - version ( 7.0.6 r155176 )
  • Ubuntu runs in the Oracle VM ( Ubuntu version - 22.04 / Jammy Jellyfish )
  • Vagrant ( version 2.2.19 )
  • Vbox running on Ubuntu ( version 6.1.38_Ubuntur153438 )

###########################################################################

I have cloned the git repository : certified-kubernetes-administrator-course
after running the command vagrant up , i keep getting below error
/kubeadm/certified-kubernetes-administrator-course$ vagrant up
Bringing machine ‘kubemaster’ up with ‘virtualbox’ provider…
Bringing machine ‘kubenode01’ up with ‘virtualbox’ provider…
Bringing machine ‘kubenode02’ up with ‘virtualbox’ provider…
==> kubemaster: Clearing any previously set forwarded ports…
==> kubemaster: Clearing any previously set network interfaces…
==> kubemaster: Preparing network interfaces based on configuration…
kubemaster: Adapter 1: nat
kubemaster: Adapter 2: hostonly
==> kubemaster: Forwarding ports…
kubemaster: 22 (guest) => 2711 (host) (adapter 1)
kubemaster: 22 (guest) => 2222 (host) (adapter 1)
==> kubemaster: Running ‘pre-boot’ VM customizations…
==> kubemaster: Booting VM…
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: [“startvm”, “00c745e8-0dc2-49f2-9554-cc6f15b6aa98”, “–type”,
“headless”]

Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005),
component ConsoleWrap, interface IConsole

These are the workarounds tried with no luck

  1. Already changed the processor setting on VM to enable Nested VT-x/AMD-v
  2. Also tried creating a /etc/vbox/networks.conf
  • 0.0.0.0/0 ::/0

###########################################################################