diff options
author | PengpengSun <40026211+PengpengSun@users.noreply.github.com> | 2021-07-21 00:49:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 11:49:37 -0500 |
commit | f0ab1e64852d50f4fe0de84e0bca0ee8bb516a9f (patch) | |
tree | dcda5287cdd9ae2b480c2957d23683a921557554 /doc/sources/ovf | |
parent | ec6afadbf0f0f77d5b58dccd70df77da89c2c91d (diff) | |
download | vyos-cloud-init-f0ab1e64852d50f4fe0de84e0bca0ee8bb516a9f.tar.gz vyos-cloud-init-f0ab1e64852d50f4fe0de84e0bca0ee8bb516a9f.zip |
VMware: add network-config support in ovf-env.xml (#947)
Details:
1. Support guest set network config through guestinfo.ovfEnv using OVF
2. 'network-config' Property is optional
3. 'network-config' Property's value has to be base64 encoded
Added unittests and updated ovf-env.xml example
Diffstat (limited to 'doc/sources/ovf')
-rw-r--r-- | doc/sources/ovf/example/ovf-env.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/sources/ovf/example/ovf-env.xml b/doc/sources/ovf/example/ovf-env.xml index 13e8f104..4ef4ee63 100644 --- a/doc/sources/ovf/example/ovf-env.xml +++ b/doc/sources/ovf/example/ovf-env.xml @@ -41,6 +41,14 @@ -->
<Property oe:key="user-data" oe:value="IyEvYmluL3NoCmVjaG8gImhpIHdvcmxkIgo="/>
<Property oe:key="password" oe:value="passw0rd"/>
+ <!--
+ network-config is optional, it can only be read from VMware guestinfo.ovfEnv
+ The value for network-config is to be base64 encoded.
+ It will be decoded, and then processed normally as network-config.
+ Set ovf-env.xml to VMware guestinfo.ovfEnv by below command:
+ 'vmware-rpctool "info-set guestinfo.ovfEnv `cat ./ovf-env.xml`"'
+ -->
+ <Property oe:key="network-config" oe:value="bmV0d29yazoKICB2ZXJzaW9uOiAyCiAgZXRoZXJuZXRzOgogICAgbmljczoKICAgICAgbWF0Y2g6CiAgICAgICAgbmFtZTogZXRoKgogICAgICBkaGNwNDogeWVz"/>
</PropertySection>
</Environment>
|