Connect cable on virtualbox networking

fix #2798

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-12-05 16:03:47 -06:00
parent c7d9418500
commit 241e3a1bdb

View File

@ -200,6 +200,11 @@ func runVbox(args []string) {
log.Fatalf("modifyvm --nic error: %v\n%s", err, out)
}
_, out, err = manage(vboxmanage, "modifyvm", name, "--cableconnected1", "on")
if err != nil {
log.Fatalf("modifyvm --cableconnected error: %v\n%s", err, out)
}
// create socket
_ = os.Remove(consolePath)
ln, err := net.Listen("unix", consolePath)