virtualbox5.2.x版本host-only模式的添加方式有别于前一版本, 配置方法如下(转载自https://luppeng.wordpress.com/2017/07/17/enabling-virtualbox-host-only-adapter-on-mac-os-x/):
FOR VIRTUALBOX 5.2.X
- Launch VirtualBox and click on “File > Host Network Manager” on the Menu Bar (Or press “Command” + “W” )
- Click on the “Create” button in the Host Network Manager window
- This will create a host-only network called “vboxnet0”
- Select if you want this Host-only network to have DHCP Server enabled
- Close the Host Network Manager Windo