mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
Connect cable on virtualbox networking
fix #2798 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
c7d9418500
commit
241e3a1bdb
@ -200,6 +200,11 @@ func runVbox(args []string) {
|
|||||||
log.Fatalf("modifyvm --nic error: %v\n%s", err, out)
|
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
|
// create socket
|
||||||
_ = os.Remove(consolePath)
|
_ = os.Remove(consolePath)
|
||||||
ln, err := net.Listen("unix", consolePath)
|
ln, err := net.Listen("unix", consolePath)
|
||||||
|
Loading…
Reference in New Issue
Block a user