Hello Wei, Using your template, I can sign into an instance using ssh keys.
As the instance boots, I notice error messages about failing to mount /mnt/configdrive. Sorry, but I cannot find those messages in the log file to copy into this email. Should I try to fix this error? I noticed that the image has custom scripts in /etc/init.d to request passwords and SSH keys. Another user, Vivek Kumar, provided links discussing a script called cloud-init. I tried to use a Rocky Linux 8 cloud image but failed to sign in using SSH keys. I believe I read that Rocky cloud images have cloud-init installed. Is cloud-init compatible with CloudStack's SSH key config, or are the scripts in your image required? I also tried to provide user data to create another account. It did not work. Does your image support user data? Thanks for the help, -Stu ________________________________ From: Wei ZHOU <[email protected]> Sent: Tuesday, January 31, 2023 5:03 PM To: [email protected] <[email protected]> Subject: Re: Instance with SSH Key pair Hi, The built-in centos 5.5 template does not support sshkey in configdrive iso. You can use my template for testing , which is also used by component test test_configdrive.py. You can register the template with url https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Fpeople.apache.org%2F~weizhou%2Fcentos55-sshkey-configdrive.qcow2.bz2&data=05%7C01%7Cswhitman%40groupw.com%7Ce007bfaff47a451919a008db03d7177f%7C5746ff41c91e439b81427cff90226280%7C0%7C0%7C638108540418592203%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4urmRF%2FlZSKoz2WrX%2BIwkeUfJUD%2BTx%2BQpzpIPiktO7E%3D&reserved=0 -Wei On Tuesday, 31 January 2023, Stuart Whitman <[email protected]> wrote: > Hello, > > When I launch an instance with an SSH key pair selected using the CentOS > 5.5(64-bit) no GUI (KVM) template that comes with CloudStack, I cannot sign > in using the SSH key. I configured the zone with basic networking and > enabled the ConfigDrive network service provider. > > The instance runs, and I can use SSH to sign in to the root account using > the default password. > > Any help would be appreciated; thanks, > -Stu > _____________________________________ > The information contained in this e-mail and any attachments from Group W > may contain confidential and/or proprietary information and is intended > only for the named recipient to whom it was originally addressed. If you > are not the intended recipient, be aware that any disclosure, distribution, > or copying of this e-mail or its attachments is strictly prohibited. If you > have received this e-mail in error, please notify the sender immediately of > that fact by return e-mail and permanently delete the e-mail and any > attachments to it. > _____________________________________ The information contained in this e-mail and any attachments from Group W may contain confidential and/or proprietary information and is intended only for the named recipient to whom it was originally addressed. If you are not the intended recipient, be aware that any disclosure, distribution, or copying of this e-mail or its attachments is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately of that fact by return e-mail and permanently delete the e-mail and any attachments to it.
