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

Virtualbox Headless Mode #44

Open
jimbo8098 opened this issue Oct 21, 2021 · 2 comments
Open

Virtualbox Headless Mode #44

jimbo8098 opened this issue Oct 21, 2021 · 2 comments

Comments

@jimbo8098
Copy link

While working on #43 , I opened up VRDE so that I could see the box as it comes up. The change effectively resulted in adding

    <VRDEProperties>
      <Property name="TCP/Address" value="{{ virtualbox.vrde_host }}"/>
      <Property name="TCP/Ports" value="{{ virtualbox.vrde_port }}"/>
    </VRDEProperties>

The node was added between the </StorageControllers> and </Machine> elements within the roles/setup/VirtualBox.vbox.tmpl file.

I then added inventory parameters for the above two variables, in my case vrde_host was 0.0.0.0 and vrde_port was 3389 (although my extensions actually meant that it was using VNC 😂 ).

If it's something you think would be beneficial, I'll raise a PR for it.

@jborean93
Copy link
Owner

What's the benefit of this mechanism compared to just the headless and non-headless mode in VirtualBox? I'm just trying to understand the purpose of such a change and why someone would want to use this.

@jimbo8098
Copy link
Author

In my use case, I was running on a system without a GUI. The changes were cumbersome to make manually on an as and when basis. I believe it could have it's uses when it comes to troubleshooting an issue prior to the rest of the Ansible being able to run.

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

No branches or pull requests

2 participants