Unable to bosh create-env on Ubuntu 16.04 on VirtualBox 5.1.26r117224

Atish Kathpal


When trying to execute bosh2 create-env, I am getting the following error. I was able to setup the bosh director on my Mac but its giving me following trouble when following the same steps on by Ubuntu machine. Steps that I followed: http://www.starkandwayne.com/blog/bosh-lite-on-virtualbox-with-bosh2/

Looking forward to your help.

$ bosh create-env bosh.yml --state ./state.json -o virtualbox/cpi.yml -o virtualbox/outbound-network.yml -o bosh-lite.yml -o bosh-lite-runc.yml -o jumpbox-user.yml --vars-store ./creds.yml -v director_name="Bosh Lite Director" -v internal_ip= -v internal_gw= -v internal_cidr= -v outbound_network_name=NatNetwork

Creating instance 'bosh/0':
Creating VM:
Creating vm with stemcell cid 'sc-c03d5f5c-8529-4329-6192-f57289daf395':
CPI 'create_vm' method responded with error: CmdError{"type":"Bosh::Clouds::CloudError","message":"Creating VM with agent ID '{{286d04ec-a153-4364-7545-ce8bb289f719}}': Enabling networks: Retried '30' times: Running command: 'VBoxManage hostonlyif create', stdout: '', stderr: '0%!.(MISSING).\nProgress state: NS_ERROR_FAILURE\nVBoxManage: error: Failed to create the host-only adapter\nVBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Inappropriate ioctl for devic\nVBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface\nVBoxManage: error: Context: \"RTEXITCODE handleCreate(HandlerArg*)\" at line 94 of file VBoxManageHostonly.cpp\n': exit status 1","ok_to_retry":false}

Exit code 1


Atish Kathpal

Was able to resolve this issue. Virtualbox 5.1 was having some issues with the Secure boot option on my Ubuntu machine. Reverting to VB5.0 version fixed the above error. I also ran into another issue, wherein I had to enable Intel Virtualization on my BIOS for Bosh to succeed in creating Virtualbox VMs. Stackoverflow has some useful posts on each of these issues.