Qarik-Group / bucc

The fastest way to get a BUCC (BOSH, UAA Credhub and Concourse)
Apache License 2.0
134 stars 46 forks source link

Bucc up lite not working with virtualbox #221

Open dannystaple opened 2 years ago

dannystaple commented 2 years ago

Virtualbox attempt with:

bucc clean
bucc up --lite

Leads to


Cleaning up rendered CPI jobs... Finished (00:00:00)

Deploying:
  Creating instance 'bosh/0':
    Creating VM:
      Creating vm with stemcell cid 'sc-3fa3fc1f-5104-475b-7e87-e9e9ec3ede59':
        CPI 'create_vm' method responded with error: CmdError{"type":"Bosh::Clouds::CloudError","message":"Creating VM with agent ID '{{3060352c-03be-45db-6405-a76e9f74db63}}': Enabling networks: Retried '30' times: Running command: 'VBoxManage hostonlyif ipconfig vboxnet1 --ip 192.168.50.1 --netmask 255.255.255.0', stdout: '', stderr: 'VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)\nVBoxManage: error: Context: \"EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())\" at line 242 of file VBoxManageHostonly.cpp\n': exit status 1","ok_to_retry":false}

Exit code 1

Virtualbox 6.1.30 r148432 (Qt5.6.3) on MacOS 11.6.2 (20G314).

ramonskie commented 2 years ago

seems like a related issue https://github.com/kubernetes/minikube/issues/12765 https://discuss.hashicorp.com/t/vagrant-2-2-18-osx-11-6-cannot-create-private-network/30984/8

jppitout commented 1 year ago

@dannystaple

Below worked for me on Ubuntu 22.04.3 LTS:

sudo mkdir /etc/vbox
sudo vim /etc/vbox/networks.conf

and add whatever nework range to that file, for me it was:

* 192.168.50.0/24