Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmrun getGuestIPAddress not working on headless mode #718

Open
eszense opened this issue Apr 21, 2024 · 1 comment
Open

vmrun getGuestIPAddress not working on headless mode #718

eszense opened this issue Apr 21, 2024 · 1 comment
Labels

Comments

@eszense
Copy link

eszense commented Apr 21, 2024

Describe the bug

The vmrun getGuestIPAddress command does not work when VM is started in headless mode as previously reported.

Reproduction steps

  1. vmrun -T fusion start "path/to/MyVMs.vmx" nogui
  2. vmrun -T fusion getGuestIPAddress "path/to/MyVMs.vmx"
    Error: The VMware Tools are not running in the virtual machine
  3. vmrun -T fusion checkToolsState "path/to/MyVMs.vmx"
    installed

Expected behavior

Return IP address regardless of gui/nogui mode

Additional context

Workaround with vmrun getGuestIPAddress -wait has been suggested.

@zhoumgh
Copy link

zhoumgh commented Apr 22, 2024

VMware Tools has to be running in the virtual machine for the command to work.

After VM power on, it takes some time for GOS and VMware Tools daemon to start. After tools daemon starts, it may take another 30 seconds to report guest IP address.

If the problem persists, we need to check vmware.log to see if the tools is running or GOS has hung or else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants