Creating of VMs using docker-machine and using the VirtualBox driver

When i tried to create a vm using docker-machine, i’ve encountered an error due to its timing out.

docker-machine create --driver virtualbox myvm1

Error creating machine: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

I have checked the virtual machine itself and it was stuck on boot

Loading /boot/vmlinuz... ok
Loading /boot/initrd.img.. ok
early console in extract_kernel
input_data: 0x000000000250d3b4
input_len: 0x0000000000100
output_len: 0x0000000019ede6c
kernle_total_size: 0x000000000161f000
booted via startup_32()
Physical KASLR using RDBRAND RDTSC...
VIrtual KASLR using RDBRAND RDTSC

Decompressing Linux.. Parsing ELF.. Performing relocations... done.
Booting the kernel.

I’m using centos 7.4, VirtualBox-5.2-5.2.22_126460_el7-1.x86_64 and docker version is 17.05.0-ce

Thank you in advance

Reference: https://docs.docker.com/get-started/part4/#create-a-cluster