運行 vargant up命令啟動homestead 出無法啟動的問題,卡在了Which interface should the network bridge to無法進入下一步
Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Clearing any previously set forwarded ports... ==> homestead-7: Clearing any previously set network interfaces... ==> homestead-7: Available bridged network interfaces: ==> homestead-7: When choosing an interface, it is usually the one that is ==> homestead-7: being used to connect to the internet. homestead-7: Which interface should the network bridge to?
最后測試發現是網絡配置問題,進入文件:scripts\homestead.rb 注釋配置 config.vm.network ,能正常啟動,但是外網無法訪問
config.vm.network :public_network, ip: settings["ip"] ||= "192.168.0.60"
啟動后IP可能出現10.0.2.15 ,無法ping通的問題。經查找相關資料,需要做以下配置,設置VirtualBox 為橋接
如果界面名稱顯示未指定,需要安裝虛擬網卡驅動VirtualBox 網絡驅動
安裝方法:
驅動位置:Oracle\VirtualBox\drivers\network\netlwf.inf
安裝驅動成功后即可在橋接網卡顯示界面名稱。