Vagrant ã§ä½æããVMã«IPã¢ãã¬ã¹ãå²ãå½ã¦ã¦ãã¹ãOSããã¢ã¯ã»ã¹ããã¨ãã®æé ã¡ã¢
æ¤è¨¼ç°å¢
Windows10 Home Edition VirtualBox 6.0.10 Vagrant 2.2.5
Vagrantfile ã«è¨å®è¿½å
Vagrantfile ã«ä¸è¨ã追å ãã¾ãã( ip
ã®å¤ã¯ä»»æ)
config.vm.network "private_network", ip: "192.168.33.10"
åä½ç¢ºèª
vagrant up
ã§VMèµ·åå¾ã 192.168.33.10
ã« ssh
ã§ãã°ã¤ã³å¯è½ã確èªãã¾ãã
D:\vagrant\centos7>vagrant up D:\vagrant\centos7>ssh -i D:\vagrant\centos7\.vagrant\machines\default\virtualbox\private_key [email protected]
ãã©ãã«ã·ã¥ã¼ãã£ã³ã°
Vagrantfile ã«è¨å®è¿½å å¾ã vagrant up
㧠VM ãèµ·åããªã
vagrant up
ã®ã¨ãã«ä¸è¨ã®ãããªã¨ã©ã¼ãçºçã㦠VM ãèµ·åããªãå ´åãããã¾ãã
Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #3' (VERR_INTNET_FLT_IF_NOT_FOUND)
æ¬æ¥ãªããã³ã¹ããªã³ãªã¼ã¢ããã¿ã¼ãæå¹ã«ãªãã¹ãã¨ãããå®è¡æ¨©éãªã©ã®çç±ã§æå¹ã«ãªããªããã¨ãåå ã§ãã
解決æ¹æ³
VirtualBox ããã¼ã¸ã£ã¼ãã è¨å® > ãããã¯ã¼ã¯
ãé¸æãããã¹ããªã³ãªã¼ã¢ããã¿ã¼ã® ãããã¯ã¼ã¯ã¢ããã¿ã¼æå¹å
ã®ãã§ãã¯ããªã³ã«ãã¾ãã
(èªåã®ç°å¢ã§ã¯ããã§æ£å¸¸ã«åä½ãã¾ãã)