Open jerryzhyliu opened 5 years ago
Env:
host: windows 10
VM: virtual box
I an wondering: why it will create a new adapter: VirtualBox Host-Only Ethernet Adapter #3 because it detected : Name: VirtualBox Host-Only Ethernet Adapter GUID: 668078c2-fad0-4663-9d02-c79eb406f894 DHCP: Disabled IPAddress: 192.168.137.1
is it because it disabled DHCP?
Checking vm logs: C:\Users\ZHIYONGLIU.minikube\machines\minikube\minikube\Logs\VBox.log
Waiting for an IP...
Getting to WaitForSSH function...
Using SSH client type: native
&{{{
Why it needs a docker?
C:\WINDOWS\system32>minikube start --v=10 Aliases: map[string]string{} Override: map[string]interface {}{"v":"10"} PFlags: map[string]viper.FlagValue{"hyperkit-vsock-ports":viper.pflagValue{flag:(pflag.Flag)(0xc0423e45a0)}, "keep-context":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb180)}, "cache-images":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4320)}, "cpus":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb5e0)}, "docker-opt":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbb80)}, "hyperv-virtual-switch":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb7c0)}, "kubernetes-version":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4140)}, "vm-driver":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb4a0)}, "bootstrapper":viper.pflagValue{flag:(pflag.Flag)(0xc0421ca820)}, "disk-size":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb680)}, "dns-domain":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbe00)}, "docker-env":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbae0)}, "extra-config":viper.pflagValue{flag:(pflag.Flag)(0xc0423e43c0)}, "hyperkit-vpnkit-sock":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4500)}, "iso-url":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb400)}, "nfs-shares-root":viper.pflagValue{flag:(pflag.Flag)(0xc0421cba40)}, "profile":viper.pflagValue{flag:(pflag.Flag)(0xc0421ca780)}, "apiserver-name":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbc20)}, "xhyve-disk-driver":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb900)}, "cri-socket":viper.pflagValue{flag:(pflag.Flag)(0xc0423e40a0)}, "memory":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb540)}, "mount-string":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb2c0)}, "uuid":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4460)}, "apiserver-names":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbcc0)}, "container-runtime":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4000)}, "gpu":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4640)}, "kvm-network":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb860)}, "network-plugin":viper.pflagValue{flag:(pflag.Flag)(0xc0423e41e0)}, "registry-mirror":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbf40)}, "apiserver-ips":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbd60)}, "disable-driver-mounts":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb360)}, "feature-gates":viper.pflagValue{flag:(pflag.Flag)(0xc0423e4280)}, "host-only-cidr":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb720)}, "insecure-registry":viper.pflagValue{flag:(pflag.Flag)(0xc0421cbea0)}, "mount":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb220)}, "nfs-share":viper.pflagValue{flag:(pflag.Flag)(0xc0421cb9a0)}} Env: map[string]string{} Key/Value Store: map[string]interface {}{} Config: map[string]interface {}{} Defaults: map[string]interface {}{"wantnonedriverwarning":true, "showdriverdeprecationnotification":true, "showbootstrapperdeprecationnotification":true, "alsologtostderr":"false", "wantupdatenotification":true, "reminderwaitperiodinhours":24, "wantreporterror":false, "wantkubectldownloadmsg":true, "wantreporterrorprompt":true, "v":"0", "log_dir":""} Starting local Kubernetes v1.10.0 cluster... Starting VM... Downloading Minikube ISO 178.87 MB / 178.87 MB [============================================] 100.00% 0s Creating CA: C:\Users\ZHIYONGLIU.minikube\certs\ca.pem Creating client certificate: C:\Users\ZHIYONGLIU.minikube\certs\cert.pem COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe --version STDOUT: { 5.2.22r126460 } STDERR: { } Hyper-V is not installed. %!(EXTRA *exec.Error=exec: "vmms.exe": executable file not found in %PATH%)COMMAND: wmic cpu get VirtualizationFirmwareEnabled STDOUT: { VirtualizationFirmwareEnabled TRUE
} COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list hostonlyifs STDOUT: { Name: VirtualBox Host-Only Ethernet Adapter GUID: 668078c2-fad0-4663-9d02-c79eb406f894 DHCP: Disabled IPAddress: 192.168.137.1 NetworkMask: 255.255.255.0 IPV6Address: fe80::d5e4:171a:b76:abd1 IPV6NetworkMaskPrefixLength: 64 HardwareAddress: 0a:00:27:00:00:0c MediumType: Ethernet Wireless: No Status: Up VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
} STDERR: { } Downloading C:\Users\ZHIYONGLIU.minikube\cache\boot2docker.iso from file://C:/Users/ZHIYONGLIU/.minikube/cache/iso/minikube-v0.31.0.iso... Creating VirtualBox VM... Creating SSH key... Creating disk image... Creating 20000 MB hard disk image... Writing magic tar header Writing SSH key tar header Calling inner createDiskImage &{C:\Program Files\Oracle\VirtualBox\VBoxManage.exe [C:\Program Files\Oracle\VirtualBox\VBoxManage.exe convertfromraw stdin C:\Users\ZHIYONGLIU.minikube\machines\minikube\disk.vmdk 20971520000 --format VMDK] [] [] false [] [] [] [] }
Starting command
Copying to stdin
Filling zeroes
Closing STDIN
Waiting on cmd
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe createvm --basefolder C:\Users\ZHIYONGLIU.minikube\machines\minikube --name minikube --register
STDOUT:
{
Virtual machine 'minikube' is created and registered.
UUID: 7e0df1c7-a350-4ae1-86c7-2482ede95d40
Settings file: 'C:\Users\ZHIYONGLIU.minikube\machines\minikube\minikube\minikube.vbox'
}
STDERR:
{
}
VM CPUS: 2
VM Memory: 2048
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm minikube --firmware bios --bioslogofadein off --bioslogofadeout off --bioslogodisplaytime 0 --biosbootmenu disabled --ostype Linux26_64 --cpus 2 --memory 2048 --acpi on --ioapic on --rtcuseutc on --natdnshostresolver1 off --natdnsproxy1 on --cpuhotplug off --pae on --hpet on --hwvirtex on --nestedpaging on --largepages on --vtxvpid on --accelerate3d off --boot1 dvd
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm minikube --nic1 nat --nictype1 virtio --cableconnected1 on
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storagectl minikube --name SATA --add sata --hostiocache on
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storageattach minikube --storagectl SATA --port 0 --device 0 --type dvddrive --medium C:\Users\ZHIYONGLIU.minikube\machines\minikube\boot2docker.iso
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storageattach minikube --storagectl SATA --port 1 --device 0 --type hdd --medium C:\Users\ZHIYONGLIU.minikube\machines\minikube\disk.vmdk
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestproperty set minikube /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestproperty set minikube /VirtualBox/GuestAdd/SharedFolders/MountDir /
STDOUT:
{
}
STDERR:
{
}
setting up shareDir '\?\c:\Users' -> 'c/Users'
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe sharedfolder add minikube --name c/Users --hostpath \?\c:\Users --automount
STDOUT:
{
}
STDERR:
{
}
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata minikube VBoxInternal2/SharedFoldersEnableSymlinksCreate/c/Users 1
STDOUT:
{
}
STDERR:
{
}
Starting the VM...
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo minikube --machinereadable
STDOUT:
{
name="minikube"
groups="/"
ostype="Linux 2.6 / 3.x / 4.x (64-bit)"
UUID="7e0df1c7-a350-4ae1-86c7-2482ede95d40"
CfgFile="C:\Users\ZHIYONGLIU\.minikube\machines\minikube\minikube\minikube.vbox"
SnapFldr="C:\Users\ZHIYONGLIU\.minikube\machines\minikube\minikube\Snapshots"
LogFldr="C:\Users\ZHIYONGLIU\.minikube\machines\minikube\minikube\Logs"
hardwareuuid="7e0df1c7-a350-4ae1-86c7-2482ede95d40"
memory=2048
pagefusion="off"
vram=8
cpuexecutioncap=100
hpet="on"
chipset="piix3"
firmware="BIOS"
cpus=2
pae="on"
longmode="on"
triplefaultreset="off"
apic="on"
x2apic="off"
cpuid-portability-level=0
bootmenu="disabled"
boot1="dvd"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biosapic="apic"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
paravirtprovider="default"
effparavirtprovider="kvm"
VMState="poweroff"
VMStateChangeTime="2018-12-13T03:21:04.036000000"
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="30"
storagecontrollerbootable0="on"
"SATA-0-0"="C:\Users\ZHIYONGLIU.minikube\machines\minikube\boot2docker.iso"
"SATA-ImageUUID-0-0"="2571a97d-0d11-41b6-8af2-8137a20a5393"
"SATA-tempeject"="off"
"SATA-IsEjected"="off"
"SATA-1-0"="C:\Users\ZHIYONGLIU.minikube\machines\minikube\disk.vmdk"
"SATA-ImageUUID-1-0"="5b0a318e-9e19-4a68-81a7-65cad3a23fe0"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
"SATA-5-0"="none"
"SATA-6-0"="none"
"SATA-7-0"="none"
"SATA-8-0"="none"
"SATA-9-0"="none"
"SATA-10-0"="none"
"SATA-11-0"="none"
"SATA-12-0"="none"
"SATA-13-0"="none"
"SATA-14-0"="none"
"SATA-15-0"="none"
"SATA-16-0"="none"
"SATA-17-0"="none"
"SATA-18-0"="none"
"SATA-19-0"="none"
"SATA-20-0"="none"
"SATA-21-0"="none"
"SATA-22-0"="none"
"SATA-23-0"="none"
"SATA-24-0"="none"
"SATA-25-0"="none"
"SATA-26-0"="none"
"SATA-27-0"="none"
"SATA-28-0"="none"
"SATA-29-0"="none"
natnet1="nat"
macaddress1="08002754BFCE"
cableconnected1="on"
nic1="nat"
nictype1="virtio"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
nic2="none"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
uart3="off"
uart4="off"
lpt1="off"
lpt2="off"
audio="dsound"
audio_in="false"
audio_out="false"
clipboard="disabled"
draganddrop="disabled"
vrde="off"
usb="off"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="c/Users"
SharedFolderPathMachineMapping1="\?\c:\Users"
videocap="off"
videocap_audio="off"
videocapscreens=0
videocapfile="C:\Users\ZHIYONGLIU.minikube\machines\minikube\minikube\minikube.webm"
videocapres=1024x768
videocaprate=512
videocapfps=25
videocapopts=
GuestMemoryBalloon=0
}
STDERR:
{
}
Check network to re-create if needed...
COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list hostonlyifs
STDOUT:
{
Name: VirtualBox Host-Only Ethernet Adapter
GUID: 668078c2-fad0-4663-9d02-c79eb406f894
DHCP: Disabled
IPAddress: 192.168.137.1
NetworkMask: 255.255.255.0
IPV6Address: fe80::d5e4:171a:b76:abd1
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:0c
MediumType: Ethernet
Wireless: No
Status: Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
} STDERR: { } Searching for hostonly interface for IPv4: 192.168.99.1 and Mask: ffffff00 Not found Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar. COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create STDOUT: { Interface 'VirtualBox Host-Only Ethernet Adapter #3' was successfully created } STDERR: { 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% } COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list hostonlyifs STDOUT: { Name: VirtualBox Host-Only Ethernet Adapter #3 GUID: 0b0fe951-17e6-4830-9bed-2e5cd696e45d DHCP: Disabled IPAddress: 192.168.129.1 NetworkMask: 255.255.255.0 IPV6Address: fe80::f095:33a3:9ef1:6c33 IPV6NetworkMaskPrefixLength: 64 HardwareAddress: 0a:00:27:00:00:21 MediumType: Ethernet Wireless: No Status: Up VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #3
Name: VirtualBox Host-Only Ethernet Adapter GUID: 668078c2-fad0-4663-9d02-c79eb406f894 DHCP: Disabled IPAddress: 192.168.137.1 NetworkMask: 255.255.255.0 IPV6Address: fe80::d5e4:171a:b76:abd1 IPV6NetworkMaskPrefixLength: 64 HardwareAddress: 0a:00:27:00:00:0c MediumType: Ethernet Wireless: No Status: Up VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
} STDERR: { } Found a new host-only adapter: "VirtualBox Host-Only Ethernet Adapter #3" Windows might ask for the permission to configure a network adapter. Sometimes, such confirmation window is minimized in the taskbar. COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif ipconfig VirtualBox Host-Only Ethernet Adapter #3 --ip 192.168.99.1 --netmask 255.255.255.0 STDOUT: { } STDERR: { } COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list dhcpservers STDOUT: { NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter IP: 192.168.137.2 NetworkMask: 255.255.255.0 lowerIPAddress: 192.168.137.100 upperIPAddress: 192.168.137.254 Enabled: Yes
} STDERR: { } Removing orphan DHCP servers... COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list hostonlyifs STDOUT: { Name: VirtualBox Host-Only Ethernet Adapter #3 GUID: 0b0fe951-17e6-4830-9bed-2e5cd696e45d DHCP: Disabled IPAddress: 192.168.99.1 NetworkMask: 255.255.255.0 IPV6Address: fe80::f095:33a3:9ef1:6c33 IPV6NetworkMaskPrefixLength: 64 HardwareAddress: 0a:00:27:00:00:21 MediumType: Ethernet Wireless: No Status: Up VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #3
Name: VirtualBox Host-Only Ethernet Adapter GUID: 668078c2-fad0-4663-9d02-c79eb406f894 DHCP: Disabled IPAddress: 192.168.137.1 NetworkMask: 255.255.255.0 IPV6Address: fe80::d5e4:171a:b76:abd1 IPV6NetworkMaskPrefixLength: 64 HardwareAddress: 0a:00:27:00:00:0c MediumType: Ethernet Wireless: No Status: Up VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
} STDERR: { } Adding/Modifying DHCP server "192.168.99.18" with address range "192.168.99.100" - "192.168.99.254"... COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list dhcpservers STDOUT: { NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter IP: 192.168.137.2 NetworkMask: 255.255.255.0 lowerIPAddress: 192.168.137.100 upperIPAddress: 192.168.137.254 Enabled: Yes
} STDERR: { } Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar. COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe dhcpserver add --netname HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #3 --ip 192.168.99.18 --netmask 255.255.255.0 --lowerip 192.168.99.100 --upperip 192.168.99.254 --enable STDOUT: { } STDERR: { } COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm minikube --nic2 hostonly --nictype2 virtio --nicpromisc2 deny --hostonlyadapter2 VirtualBox Host-Only Ethernet Adapter #3 --cableconnected2 on STDOUT: { } STDERR: { } COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm minikube --natpf1 delete ssh STDOUT: { } STDERR: { VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not available) VBoxManage.exe: error: Context: "RemoveRedirect(Bstr(ValueUnion.psz).raw())" at line 1872 of file VBoxManageModifyVM.cpp } COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm minikube --natpf1 ssh,tcp,127.0.0.1,56192,,22 STDOUT: { } STDERR: { } COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm minikube --type headless STDOUT: { Waiting for VM "minikube" to power on... VM "minikube" has been successfully started. } STDERR: { } Checking vm logs: C:\Users\ZHIYONGLIU.minikube\machines\minikube\minikube\Logs\VBox.log Waiting for an IP... Getting to WaitForSSH function... Using SSH client type: native &{{{ 0 [] [] []} docker [0x815100] 0x8150d0 [] 0s} 127.0.0.1 56192 }
About to run SSH command:
exit 0
Error dialing TCP: dial tcp 127.0.0.1:56192: connectex: No connection could be made because the target machine actively refused it.
Error dialing TCP: dial tcp 127.0.0.1:56192: connectex: No connection could be made because the target machine actively refused it.
Error dialing TCP: dial tcp 127.0.0.1:56192: connectex: No connection could be made because the target machine actively refused it.
C:\WINDOWS\system32>