[pve-devel] [PATCH v2 qemu-server 0/1] Adapting cloudbase-init for windows
Austin Chan
sptrsca at gmail.com
Fri Apr 12 00:36:23 CEST 2019
based on
https://cloudbase-init.readthedocs.io/en/latest/plugins.html#setting-password-main
https://cloudbase.it/openstack-windows-admin-password/
Cloudbase-init with configuration drive (configdrive2) ask for clear text password.
Even it's unsafed. So, the best practice for now is that eject disk in the widnwos
after the cloudbase-init finished. This have to be done in windows. The detail will
be update on the pve-docs.
based on
https://github.com/openstack/cloudbase-init/blob/master/cloudbaseinit/utils/debiface.py
>DNSNS: re.compile(r"dns-nameservers\s+(?P<{}>.+)".format(DNSNS))
cloudbase-init read "dns-nameservers" on configdrive2 as nameserver configuration
ALSO, based on https://pve.proxmox.com/wiki/Manual:_qm.conf
>citype: <configdrive2 | nocloud>
>Specifies the cloud-init configuration format. The default depends on the configured
>operating system type (ostype. We use the nocloud format for Linux, and configdrive2
>for windows.
configdrive2 linked to windows type VM. So, I modified the nameserver configuration
name to "dns-nameserver" in "configdrive2".
based on
https://manpages.debian.org/jessie/genisoimage/genisoimage.1.en.html
"-iso-level 3" will make "genisoimage" igrone filenames restriction which only allow
uppercase letters, numbers and underscores (_), totally 31 characters filenames and
max 8 level paths.
This is a virtual ISO disc. Remove these restrictions to avoid some errors.
For example, META_DATA.json contains lowercase and dot.
Austin Chan (1):
Let PVE QEMU Cloud-Init adapt Cloudbase-init
PVE/API2/Qemu.pm | 8 ++++++--
PVE/QemuServer/Cloudinit.pm | 13 +++++++++----
2 files changed, 15 insertions(+), 6 deletions(-)
--
2.15.1
More information about the pve-devel
mailing list