how to run amd based virtual machine in m2?

I am trying to create 5/6 amdX64-based VM on my Mac chip using Vagrant, but it is not working.


govinda at Govindas-MacBook-Pro-2 in ~/Documents/programming/kubernetes/kubernetes-hardway/kubernetes-the-hard-way/vagrant (master)
$ vagrant up
Bringing machine 'master-1' up with 'virtualbox' provider...
Bringing machine 'master-2' up with 'virtualbox' provider...
Bringing machine 'loadbalancer' up with 'virtualbox' provider...
Bringing machine 'worker-1' up with 'virtualbox' provider...
Bringing machine 'worker-2' up with 'virtualbox' provider...
==> master-1: Box 'ubuntu/jammy64' could not be found. Attempting to find and install...
    master-1: Box Provider: virtualbox
    master-1: Box Version: >= 0
==> master-1: Loading metadata for box 'ubuntu/jammy64'
    master-1: URL: https://vagrantcloud.com/ubuntu/jammy64
==> master-1: Adding box 'ubuntu/jammy64' (v20230712.0.0) for provider: virtualbox
    master-1: Downloading: https://vagrantcloud.com/ubuntu/boxes/jammy64/versions/20230712.0.0/providers/virtualbox.box
Download redirected to host: cloud-images.ubuntu.com
==> master-1: Successfully added box 'ubuntu/jammy64' (v20230712.0.0) for 'virtualbox'!
==> master-1: Importing base box 'ubuntu/jammy64'...
==> master-1: Matching MAC address for NAT networking...
==> master-1: Setting the name of the VM: kubernetes-ha-master-1
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:

  https://www.virtualbox.org/manual/ch04.html#sharedfolders

This option can be disabled globally with an environment variable:

  VAGRANT_DISABLE_VBOXSYMLINKCREATE=1

or on a per folder basis within the Vagrantfile:

  config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> master-1: Clearing any previously set network interfaces...
==> master-1: Preparing network interfaces based on configuration...
    master-1: Adapter 1: nat
    master-1: Adapter 2: hostonly
==> master-1: Forwarding ports...
    master-1: 22 (guest) => 2711 (host) (adapter 1)
    master-1: 22 (guest) => 2222 (host) (adapter 1)
==> master-1: Running 'pre-boot' VM customizations...
==> master-1: Booting VM...
==> master-1: Waiting for machine to boot. This may take a few minutes...
    master-1: SSH address: 127.0.0.1:2222
    master-1: SSH username: vagrant
    master-1: SSH auth method: private key
    master-1: Warning: Connection reset. Retrying...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'aborted' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue. 

MacBook Pro (M2 Pro, 2023)

Posted on Jul 16, 2023 6:40 AM

Reply
7 replies

Jul 16, 2023 7:28 AM in response to gkdangal

VirtualBox is not ready for ARM64 based systems. And it does not have X86-64 emulation.


As far as I know, the only option for X86-64 emulation is a package that uses QEMU under the covers, such as UTM (https://mac.getutm.app). I have seen reports at work that UTM has been setup running X86-64 code (not fast, but functional).


I am not familiar with Vagrant, but Google says Vagrant can use QEMU, so it may be possible via Vagrant.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to run amd based virtual machine in m2?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.