Closed chrishiestand closed 9 years ago
The installation now succeeds if I do not try to migrate the boot2docker VM. The only thing I can think of that might be different about my environment is that I increased the disk space of my boot2docker VM to 100GB.
@chrishiestand The issue seems to be with Docker Machine. If you clicked migrated, and waited - what error message do you get?
Same issue here with VirtualBox 5.0.0. Is it passing some command line flag is no longer supported for it to output the usage like that in the logs?
@mchiang0610 I deleted my old b2d and docker-machine VMs, reinstalled docker toolbox, and now I'm unable to reproduce the problem (I can reinstall docker toolbox now with no issue). I can just repull/rebuild any images I need so it's not a big problem for me. I recall the error message being very general like "migration failed" or "could not migrate". Maybe @robertoandrade can help with the error messages it outputs?
So... odd behaviour of the installer for me. I have VirtualBox 5.0.2 on OS X 10.9.5
STDERR:
Creating VirtualBox VM...
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage controlvm boot2docker-vm poweroff
STDOUT:
STDERR: VBoxManage: error: Machine 'boot2docker-vm' is not currently running
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage showvminfo boot2docker-vm --machinereadable
STDOUT: name="boot2docker-vm"
groups="/"
ostype="Linux 2.6 / 3.x / 4.x (64-bit)"
UUID="7975c780-6c30-40e5-8b51-fd066a86131d"
CfgFile="/Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox"
SnapFldr="/Users/paul/VirtualBox VMs/boot2docker-vm/Snapshots"
LogFldr="/Users/paul/VirtualBox VMs/boot2docker-vm/Logs"
hardwareuuid="7975c780-6c30-40e5-8b51-fd066a86131d"
memory=2048
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=4
pae="on"
longmode="on"
cpuid-portability-level=0
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="off"
paravirtprovider="legacy"
VMState="aborted"
VMStateChangeTime="2015-08-16T12:00:07.000000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="4"
storagecontrollerbootable0="on"
"SATA-0-0"="/Users/paul/.boot2docker/boot2docker.iso"
"SATA-ImageUUID-0-0"="46a11487-20f1-48ab-b17a-ad26e569c78a"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="/Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk"
"SATA-ImageUUID-1-0"="bb7326b6-ecee-4d50-a0c7-4f11acccdf2d"
"SATA-2-0"="none"
"SATA-3-0"="none"
natnet1="nat"
macaddress1="080027139315"
cableconnected1="on"
nic1="nat"
nictype1="virtio"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,2022,,22"
hostonlyadapter2="vboxnet3"
macaddress2="0800276424E6"
cableconnected2="on"
nic2="hostonly"
nictype2="virtio"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="0x03f8,4"
uartmode1="server,/Users/paul/.boot2docker/boot2docker-vm.sock"
uart2="off"
lpt1="off"
lpt2="off"
audio="none"
clipboard="disabled"
draganddrop="disabled"
vrde="off"
usb="off"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="Users"
SharedFolderPathMachineMapping1="/Users"
vcpenabled="off"
vcpscreens=0
vcpfile="/Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
STDERR:
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage clonehd /Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk /Users/paul/.docker/machine/machines/default/disk.vmdk
STDOUT: Clone medium created in format 'VMDK'. UUID: 1ee23096-3507-400d-a97b-b381407a5032
STDERR: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Importing VM settings...
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage showvminfo boot2docker-vm --machinereadable
STDOUT: name="boot2docker-vm"
groups="/"
ostype="Linux 2.6 / 3.x / 4.x (64-bit)"
UUID="7975c780-6c30-40e5-8b51-fd066a86131d"
CfgFile="/Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox"
SnapFldr="/Users/paul/VirtualBox VMs/boot2docker-vm/Snapshots"
LogFldr="/Users/paul/VirtualBox VMs/boot2docker-vm/Logs"
hardwareuuid="7975c780-6c30-40e5-8b51-fd066a86131d"
memory=2048
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=4
pae="on"
longmode="on"
cpuid-portability-level=0
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="off"
paravirtprovider="legacy"
VMState="aborted"
VMStateChangeTime="2015-08-16T12:00:07.000000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="SATA"
storagecontrollertype0="IntelAhci"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="30"
storagecontrollerportcount0="4"
storagecontrollerbootable0="on"
"SATA-0-0"="/Users/paul/.boot2docker/boot2docker.iso"
"SATA-ImageUUID-0-0"="46a11487-20f1-48ab-b17a-ad26e569c78a"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="/Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk"
"SATA-ImageUUID-1-0"="bb7326b6-ecee-4d50-a0c7-4f11acccdf2d"
"SATA-2-0"="none"
"SATA-3-0"="none"
natnet1="nat"
macaddress1="080027139315"
cableconnected1="on"
nic1="nat"
nictype1="virtio"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="ssh,tcp,127.0.0.1,2022,,22"
hostonlyadapter2="vboxnet3"
macaddress2="0800276424E6"
cableconnected2="on"
nic2="hostonly"
nictype2="virtio"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="0x03f8,4"
uartmode1="server,/Users/paul/.boot2docker/boot2docker-vm.sock"
uart2="off"
lpt1="off"
lpt2="off"
audio="none"
clipboard="disabled"
draganddrop="disabled"
vrde="off"
usb="off"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="Users"
SharedFolderPathMachineMapping1="/Users"
vcpenabled="off"
vcpscreens=0
vcpfile="/Users/paul/VirtualBox VMs/boot2docker-vm/boot2docker-vm.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
STDERR:
Importing SSH key...
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage createvm --basefolder /Users/paul/.docker/machine/machines/default --name default --register
STDOUT: Virtual machine 'default' is created and registered.
UUID: 8d867b45-2634-41d7-91af-dee4fd4469fc
Settings file: '/Users/paul/.docker/machine/machines/default/default/default.vbox'
STDERR:
VM CPUS: 4
VM Memory: 2048
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage modifyvm default --firmware bios --bioslogofadein off --bioslogofadeout off --bioslogodisplaytime 0 --biosbootmenu disabled --ostype Linux26_64 --cpus 4 --memory 2048 --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: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage modifyvm default --nic1 nat --nictype1 82540EM --cableconnected1 on
STDOUT:
STDERR:
using 192.168.99.1 for dhcp address
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage list hostonlyifs
STDOUT:
STDERR:
executing: /Applications/VirtualBox.app/Contents/MacOS//VBoxManage hostonlyif create
STDOUT:
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 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.
...and now I need help sorting out the situation since my boot2docker no longer works
also:
$ docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm dev
Creating VirtualBox VM...
Error creating machine: exit status 1
You will want to check the provider to make sure the machine and associated resources were properly removed.
docker-machine version 0.4.1 (e2c88d6)
Same error as @anentropic. I can't use Docker now.
uninstalling VirtualBox, rebooting and reinstalling VirtualBox fixed it for me
@anentropic did you upgrade Virtualbox when installing toolbox?
no I'd upgraded VirtualBox a few days earlier... seems like the upgrade had a problem, though it all seemed to work at the time
Uninstalled Virtualbox and installed using toolbox installer. Same error..
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 70 of file VBoxManageHostonly.cpp
I did:
docker-machine create --driver virtualbox dev
now worksI had a tip-off on Twitter from Docker devs that some others had had success by reinstalling VB... I then checked and found I was unable to launch a new Vagrant VM either, so looked like VB was at fault
Tried same thing but wasn't so lucky. Re-installing boot2docker
and using it delivers same result.
OK, so I have it working now. Removed Virtualbox (no need to reboot) and installed 5.0.0. Do not upgrade to 5.0.2. When installing toolbox, select Customize installation and deselect Virtualbox 5.0.2 upgrade.
Confirmed @pires 's solution by installing VirtualBox 5.0.0 on a completely fresh install of MacOS 10.10.5
I've removed boot2docker, VirtualBox, Kitematic & docker. Tried to install docker-tools-1.8.1c.pkg and it always gets stuck on VM Migration. Also tried installing VB 5.0.0 from the vb downloads on their site. Still the same result.
Seems like this is the same migration error that others are seeing as well. Moving to #153 for discussion!
Thanks and sorry for all the trouble.
On OS X 10.10.4. I already had both (older) boot2docker installed and a separate docker-machine virtualbox env. Both VMs were powered off.
The GUI reports that both migration from boot2docker and installation of docker toolbox failed.