Skip to content

Commit

Permalink
debug network issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed Apr 28, 2020
1 parent 4a38589 commit ff5648f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vms/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff5648f

Please sign in to comment.