Great Stuart.

Thanks for sharing !

-Wei

On Mon, 6 Feb 2023 at 15:28, Stuart Whitman <swhit...@groupw.com.invalid>
wrote:

> I finally discovered the right google search terms to find this:
> https://bugs.launchpad.net/cloud-init/+bug/1998655
>
> Adding After=NetworkManager-wait-online.service​ to
> /etc/systemd/system/cloud-init.target.wants/cloud-init.service​ resolved
> the problem.
>
> -Stu
> ________________________________
> From: Stuart Whitman <swhit...@groupw.com.INVALID>
> Sent: Friday, February 3, 2023 1:26 PM
> To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> Subject: Re: Instance with SSH Key pair
>
> Hello Wei,
>
> I started a Rocky 8.7 minimum instance from an ISO file. I followed the
> instructions you provided for installing and configuring cloud-init and
> creating a template from an instance. However, when I boot the new
> instance, the SSH key is not installed. When I use the password to sign in,
> the cloud-init logs say it could not find the data-server. If I reboot from
> the command line, my SSH key works, and the cloud-init logs indicate it
> found the data-server IP address. If I stop and start the instance from
> CloudStack, the SSH key still works, but the cloud-init logs again say it
> cannot find the data-server.
>
> Any idea why cloud-init is able to find the IP for the data-server when
> the instance is rebooted but not when it is started from CloudStack?
>
> -Stu
>
> ________________________________
> From: Wei ZHOU <ustcweiz...@gmail.com>
> Sent: Thursday, February 2, 2023 3:34 AM
> To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> Subject: Re: Instance with SSH Key pair
>
> Hi Stuart,
>
> cloud-init does support Cloudstack . You  need to specify the datasource in
> cloud-init configuration.
> The datasource can be ConfigDrive (if you use config drive to save
> userdata) or CloudStack (if metadata/userdata server is CloudStack
> VirtualRouter)
>
> Please refer to
>
> https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Fdocs.cloudstack.apache.org%2Fen%2Flatest%2Fadminguide%2Ftemplates%2F_cloud_init.html&data=05%7C01%7Cswhitman%40groupw.com%7C886e783475554054037708db0614390d%7C5746ff41c91e439b81427cff90226280%7C0%7C0%7C638110456174147769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=mwaB%2BZ5gMto3qgp5Jg5dXP3cg8Zx%2FgAUmN2JKXgqbhY%3D&reserved=0
>
> -Wei
>
>
>
> -Wei
>
> On Wed, 1 Feb 2023 at 20:12, Stuart Whitman <swhit...@groupw.com.invalid>
> wrote:
>
> > 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 <ustcweiz...@gmail.com>
> > Sent: Tuesday, January 31, 2023 5:03 PM
> > To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> > 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%7C886e783475554054037708db0614390d%7C5746ff41c91e439b81427cff90226280%7C0%7C0%7C638110456174147769%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=IfkzP2PrDeMZeHEJl%2FODhc8ExLEiyh9pALYJbmc4OEs%3D&reserved=0
> >
> > -Wei
> >
> >
> > On Tuesday, 31 January 2023, Stuart Whitman <swhit...@groupw.com.invalid
> >
> > 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.
> >
> _____________________________________
> 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.
>

Reply via email to