VMWare Guestinfo Interface does not take effect #2041
Comments
@john Savanyo jsavanyo@vmware.com |
It looks like you are trying to adjust the configuration after the first provisioning, but I'm not sure if |
@lucab, Do you mean these configurations can only be ingested at the first boot after the vm is installed? In previous versions, we can customize the vm at any time, so long as it is powered off. |
It depends on how you are specifying the configuration. If you are using b Ignition settings will only be honored during the first boot. If you are using general vmtools commands, then they should always take effect. Can you be more specific with your reproduction steps? |
This issue could still be reproduced with CoreOS 1465.6.0 on ESX 6.5 GA with below steps: |
@Winnie81 I couldn't find any VMware documentation that claims that this should work. Network related information can be specified to the VM via DHCP, but I do not know if ESX will update that information internally when the vmx changes. You might need to update the vApp options via the vSphere APIs. |
@crawford, according to https://coreos.com/os/docs/latest/booting-on-vmware.html#container-linux-configs, I used the fourth method "You can manually modify the VMX and reload it on the VMware Workstation, ESXi host, or in vCenter." But sometimes it works, and sometimes it doesn't work. |
@Winnie81 Sorry for the delay, this slipped through the cracks. Can you share your Container Linux Config (or the resulting Ignition Config)? The Open VM Tools should run regardless, but I'm curious to see the config. |
@crawford, they are as below: |
Those settings are only read by coreos-cloudinit. Are you setting |
@crawford Sorry for the delay. Yes, I set guestinfo.coreos.config.data as this: |
This needs to be done before the first boot since Ignition only runs once. After setting these options in the VMX, can you run |
@crawford Install a new VM. |
@Winnie81 can you try to set the If so try disabling the vApp properties and then setting them via the vmx. |
@Winnie81 From your screenshots, Ignition is successfully reading your config, which means that it's preventing coreos-cloudinit from running, which means that your other guestinfo settings are not being read. |
@bgilbert: Isn't that just the base config for the vmware oem? |
@arithx The first one is. The second one corresponds to the base64 decode of |
Ah I missed that the user config was just a blank config. |
@bgilbert Thanks. I knew Ignition has run and I'm wondering how I could pass my network settings to vm through Ignition since this page https://coreos.com/os/docs/latest/booting-on-vmware.html#container-linux-configs said Ignition config could be defined in Guestinfo. |
@Winnie81 You can write networkd configs using Ignition. Just take the other options you tried to use ( |
@crawford Could I do it by modifying vmx file as mentioned above? Referring to your page of https://coreos.com/os/docs/latest/booting-on-vmware.html#container-linux-configs. I would be much appreciated if you could tell me where I was wrong. |
@Winnie81 you can indeed modify the vmx file. Ignition only uses the value of the The other More information about configuring networking in Ignition can be found here https://coreos.com/ignition/docs/latest/network-configuration.html |
@Winnie81 This is super basic so it doesn't have everything you need, just a password and a ip address and gateway. Use the below to generate an ignition file. Everything should be in the ignition file, don't add anything else. This only works at first boot, if you are trying to do this after the coreos has already booted it wont work. passwd:
|
@crawford @arithx I think the confusion is about ignition only running during first boot. While iginition is set to only run during first boot, the directions at https://coreos.com/os/docs/latest/booting-on-vmware.html seem to indicate that you can edit the vmx file, and then reboot and it will read the ignition config. In reality, you would have to shut down the machine, edit the vmx file, reboot, somehow trigger ignition to run at next boot, then reboot |
Thanks, everyone. In the past days, I worked on another task. Currently, Ignition could work in my testing. Thanks for your help. |
Issue Report
VMWare Guestinfo Interface does not take effect
Container Linux Version
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1409.2.0
VERSION_ID=1409.2.0
BUILD_ID=2017-06-19-2321
PRETTY_NAME="Container Linux by CoreOS 1409.2.0 (Ladybug)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"
Environment
ESXi 6.0 and ESXi 6.5.
Expected Behavior
Configuration items in vmx file added in vm can take effect.
Actual Behavior
Configuration items in vmx file added in vm do not take effect.
Reproduction Steps
The text was updated successfully, but these errors were encountered: