-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add support for setting guestinfo variables #174
Conversation
477dc07
to
bf84188
Compare
Cleaned up some RuboCop issues reported by the Travis runs, but there are still style failures that don't appear to be related to my changes. |
This would be good to have. It needs unit tests though. Take a look at |
bf84188
to
b2f41a1
Compare
@rylarson Good call. Some tests were failing because |
b2f41a1
to
f0eca6a
Compare
This patch adds an `extra_config` section to the provider configuration which can be set to a hash. This hash is used to populate the `extraConfig` section of the `VirtualMachineConfigSpec` used to clone new VMs. The keys of the hash must start with `guestinfo.` and the values are available to guest VMs with VMware tools installed via the `vmtoolsd` command.
f0eca6a
to
226ff96
Compare
Hi @Sharpie, While testing your changes on our vSphere host, I haven't been able to get the
However, if I remove the
Do you know if there's some vSphere setting that we need to change for the guestinfo variables to be set when creating the VM? I've also filed a ticket with our SysAdmins to see if they can be of any help. Naturally, I'd like to be able to see your changes work before merging them in 😄 - Michael |
It looks like you are getting a permission denied error. You probably just don't have the required |
I have a couple follow-up questions from our SAs: Are the vagrant-vsphere provides support for Custom Attributes, which are stored in vSphere, and can be viewed in the vSphere Web Client. How do guestinfo variables differ from Custom Attributes? I'm having trouble finding info comparing the two in web searches. |
Add support for setting guestinfo variables
This patch adds an
extra_config
section to the provider configuration whichcan be set to a hash. This hash is used to populate the
extraConfig
sectionof the
VirtualMachineConfigSpec
used to clone new VMs. The keys of the hashmust start with
guestinfo.
and the values are available to guest VMs withVMware tools installed via the
vmtoolsd
command.