VM tools are not getting installed when we try install through GO SDK #3273
Unanswered
venkathangella
asked this question in
Q&A
Replies: 1 comment 6 replies
-
This looks to be relevant: I've not tried to upgrade VMware Tools using govmomi, but it looks like you'll need to use |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I am using golang SDK of VMWare ("github.com/vmware/govmomi") latest version for VM tasks automation. When I tried VM tools installation using below code, it does not work as expected. Is this correct? am I missing something? When it is beyond mounting why the function name says mount installer? do we need user intervention after this?
running, err := vm.IsToolsRunning(ctx)
if err != nil {
return err
}
if running {
return nil
}
err = vm.MountToolsInstaller(ctx)
if err != nil {
return err
}
// todo, wait for some time
running, err := vm.IsToolsRunning(ctx)
if err != nil {
return err
}
Beta Was this translation helpful? Give feedback.
All reactions