Closed deiveehan closed 2 years ago
There is an issue in macOS Monterey which prevents headless start.
https://www.vagrantup.com/docs/providers/virtualbox/configuration#gui-vs-headless
Added the following in vagranttt file and could see that tit is starting.
48 config.vm.provider "virtualbox" do |vb| 49 # Customize the amount of memory on the VM: 50 vb.gui = true 51 # vb.memory = "1024" 52 end
➜ vagrant git:(master) vagrant up git:(master|) 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: Importing base box 'ubuntu/bionic64'... ==> master-1: Matching MAC address for NAT networking... ==> master-1: Setting the name of the VM: kubernetes-ha-master-1 ==> master-1: Clearing any previously set network interfaces... There was an error while executing
VBoxManage
, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.Command: ["hostonlyif", "create"]
Stderr: 0%... Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to create the host-only adapter VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp