Vm deployment on Mac with vagrant

Hi all, I am doing the CKA course and trying to install kubeadm on MacAirbook M5. I tried using the vagrant file from the github and tried installing the vms as per the instructions. The installation fails with below error.

The image in the vagrant file is config.vm.box = “ubuntu/jammy64”

Can anyone suggest a suitable image for arm to deploy vms and install kubernetes cluster.

ERROR:
There was an error while executing VBoxManage, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.

Command: [“startvm”, “8e77a531-06ea-420e-82f4-a5035ea99cb3”, “–type”, “headless”]

Stderr: VBoxManage: error: Cannot run the machine because its platform architecture x86 is not supported on ARM

VBoxManage: error: Details: code VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED (0x80bb0012), component MachineWrap, interface IMachine, callee nsISupports

VBoxManage: error: Context: “LaunchVMProcess(a->session, sessionType.raw(), ComSafeArrayAsInParam(aBstrEnv), progress.asOutParam())” at line 921 of file VBoxManageMisc.cpp

Did you try referring to our guide on creating a Kubeadm-based cluster on Apple Silicon?

It uses Multipass instead of VirtualBox.

No. I didnt. I was trying to follow the kubeadm installation video. let me try that and see. Thanks.

Installed Multipass and tried to launch an instance and it fails wit this error

Unexpected error in Object_propety_find_er() at …/…/…/qom/object.c.1330:qemu-system-aarch64:Property ‘host-arm-cpu.sme’ not found

There’s a known bug with multipass 1.16.2 that creates problems with some of the newer AppleSilicon processors like yours. If you install 1.16.1 (or even 1.16.3 RC )from the releases page on their github, I believe it will work for you.

Perfect!! Thank you rob_kodekloud. I had to use 1.16.1 as 1.16.3 is a pre-release version, the OS did not allow it. The vm instance launched successfully.