Requirements for cloning Option in vmware node-template


I’m using vsphere based clusters, which works (more or less) well with rancher-os.
Now I’m trying to use the method “Clone an existing virtual machine”.

The machine I’m cloning is a centos 8 minimal installation with cloudinit and sshd preinstalled.
The process gets to the point “Waiting for SSH” and then times out, but ssh access ist possible at this point.

So I guess I need to meet some requirements like e.g. a special username and/or password or ssh-key must be present?
I can’t seem to find the “vmware clone requirements” anywhere in the documentation.

Can you please provide them or point me to the page where they are provided?

Finally got it to work:

  • I had to change a cloud-init config like so:
diff -Naur /root/99-DataSourceVMwareGuestInfo.cfg /etc/cloud/cloud.cfg.d/99-DataSourceVMwareGuestInfo.cfg
--- /root/99-DataSourceVMwareGuestInfo.cfg    2020-06-05 13:20:12.048172694 +0200
+++ /etc/cloud/cloud.cfg.d/99-DataSourceVMwareGuestInfo.cfg    2020-06-05 13:54:06.875930704 +0200
@@ -10,4 +10,4 @@
 # terms and conditions of the subcomponent's license, as noted in the LICENSE
 # file.
-datasource_list: [ "VMwareGuestInfo" ]
+datasource_list: [ "NoCloud", "VMwareGuestInfo" ]
yum-config-manager --add-repo
yum -y install
yum install docker-ce
systemctl enable --now docker

Since this will install some centos7 packages, I’m not sure if I really want to do this on production machines.
Any suggestions for improvement?

  • another requirement seems to be growpart, to not run into disk space issues while provisioning
yum install cloud-utils-growpart
    mode: growpart
    devices: ["/"]
    ignore_growroot_disabled: false

-> the latter actually doesn’t seem to work