Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Cannot create host-only adapter with VBox 5 on Windows 10 (using administrative shell) #1521

@hheimbuerger

Description

@hheimbuerger

Environment:

  • Windows 10 build 10162 (basically the RC1)
  • VirtualBox 5.0 (final)
  • docker-machine latest as of 2015-07-13 (downloaded from the nightly builds, because VBox 5 needs this fix)

In an administrative command prompt (Win-X -> Command Prompt (Admin)), trying to create a VirtualBox boot2docker vm fails when attempting to create a host-only adapter:

C:\Users\myuser\Downloads>docker-machine_windows_amd64.exe create --driver virtualbox dev -D
Creating CA: C:\Users\myuser\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\myuser\.docker\machine\certs\cert.pem
executing: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe
STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.0
(C) 2005-2015 Oracle Corporation
All rights reserved.

Usage:

  VBoxManage [<general option>] <command>

[... snip entire VBoxManage syntax help ...]

STDERR:
Image cache does not exist, creating it at C:\Users\myuser\.docker\machine\cache...
No default boot2docker iso found locally, downloading the latest release...
Downloading https://github.com/boot2docker/boot2docker/releases/download/v1.7.0/boot2docker.iso to C:\Users\myuser\.docker\machine\cache\boot2docker.iso...
Creating VirtualBox VM...
Creating SSH key...
Creating disk image...
Creating 20000 MB hard disk image...
Converting from raw image file="stdin" to file="C:\Users\myuser\.docker\machine\machines\dev\disk.vmdk"...
Creating dynamic image with size 20971520000 bytes (20000MB)...
executing: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe createvm --basefolder C:\Users\myuser\.docker\machine\machines\dev --name dev --register
STDOUT: Virtual machine 'dev' is created and registered.
UUID: 8b4e1083-2ad1-4a75-bc64-ce6b20ad440c
Settings file: 'C:\Users\myuser\.docker\machine\machines\dev\dev\dev.vbox'

STDERR:
VM CPUS: 1
VM Memory: 1024
executing: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm dev --firmware bios --bioslogofadein off --bioslogofadeout off --bioslogodisplaytime 0 --biosbootmenu disabled --ostype Linux26_64 --cpus 1 --memory 1024 --acpi on --ioapic on --rtcuseutc on --natdnshostresolver1 off --natdnsproxy1 off --cpuhotplug off --pae on --hpet on --hwvirtex on --nestedpaging on --largepages on --vtxvpid on --accelerate3d off --boot1 dvd
STDOUT:
STDERR:
executing: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm dev --nic1 nat --nictype1 82540EM --cableconnected1 on
STDOUT:
STDERR:
using 192.168.99.1 for dhcp address
executing: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe list hostonlyifs
STDOUT: Name:            VirtualBox Host-Only Ethernet Adapter #11
GUID:            c1389c26-1670-4cb8-97c6-974c8f039d00
DHCP:            Disabled
IPAddress:       192.168.59.99
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:f540:67b5:0465:b90d
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:00
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #11


STDERR:
executing: c:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create
STDOUT:
STDERR: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 70 of file VBoxManageHostonly.cpp

Error creating machine: exit status 1
You will want to check the provider to make sure the machine and associated resources were properly removed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions