From ff5648f09e6387ef7f8ba88ef126fc7e62e72f3e Mon Sep 17 00:00:00 2001 From: Muhammad Hewedy Date: Wed, 29 Apr 2020 02:16:22 +0300 Subject: [PATCH] debug network issue on windows --- vms/create.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vms/create.go b/vms/create.go index 906e59f..c8a096f 100644 --- a/vms/create.go +++ b/vms/create.go @@ -68,8 +68,11 @@ func SetNetworkAdapter(vmName string) error { if _, err = cmd.Execute("vboxmanage", "modifyvm", vmName, "--nic1", "bridged"); err != nil { return nil } - if _, err = cmd.Execute("vboxmanage", "modifyvm", vmName, "--bridgeadapter1", adapter); err != nil { + fmt.Println("adapter:", adapter) + if o, err := cmd.Execute("vboxmanage", "modifyvm", vmName, "--bridgeadapter1", adapter); err != nil { return nil + } else { + fmt.Println(o) } return nil