Hi Jordan,

I think guest os mappings may be missing for XCP-ng/XenServer 8.x for newer 
distros like Ubuntu 24.04 and you could either add them as an admin or request 
an improvement via https://github.com/apache/cloudstack/issues

If you're installing and creating the template using ISOs, you may need to 
refer to the docs to configure cloud-init yourself before you shutdown the 
installed instance (from an ISO): 
https://cloudinit.readthedocs.io/en/latest/reference/datasources/cloudstack.html


Regards.

 


________________________________
From: jordan j <yordan...@gmail.com>
Sent: Tuesday, June 25, 2024 14:09
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: cloud-init fails on newer ubuntu?

Hello Rohit!

Cloudstack is 4.19.0.1 and hypervisor is XenSever 8.2 latest.

Ubuntu 22 server works on my side too. What does not work is:
- Ubuntu 22 desktop
- Ubuntu 24 server and desktop

All 4 distributions are installed from ISOs by the official Ubuntu download
page.

Regards,
Jordan

On Tue, Jun 25, 2024 at 9:13 AM Rohit Yadav <rohit.ya...@shapeblue.com>
wrote:

> Hi Jordan,
>
> I've tested Ubuntu 22.04 server image with CloudStack 4.19.0.1 and KVM
> (Ubuntu 22.04) hosts (I registered this as Other ubuntu 64-bit template).
> It works for me using this cloud image from the distro vendor:
>
> https://cloud-images.ubuntu.com/releases/24.04/release-20240622/ubuntu-24.04-server-cloudimg-amd64.img
>
> What is your CloudStack version and hypervisors that you're using with it?
>
>
> Regards.
>
>
>
>
> ________________________________
> From: jordan j <yordan...@gmail.com>
> Sent: Monday, June 24, 2024 21:23
> To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> Subject: Re: cloud-init fails on newer ubuntu?
>
> After some more troubleshooting (Ubuntu desktop 22.04) it looks like the
> issue comes from cloud-init.service starting before the instance networking
> has assigned IP from the DHCP server.
>
> Cloud-init v. 24.1.3-0ubuntu1~22.04.5 running 'init-local' at Mon, 24 Jun
> 2024 13:31:07 +0000. Up 4.45 seconds.
> Cloud-init v. 24.1.3-0ubuntu1~22.04.5 running 'init' at Mon, 24 Jun 2024
> 13:31:22 +0000. Up 19.87 seconds.
> ci-info: +++++++++++++++++++++++++++Net device
> info++++++++++++++++++++++++++++
> ci-info:
> +--------+-------+-----------+-----------+-------+-------------------+
> ci-info: | Device |   Up  |  Address  |    Mask   | Scope |     Hw-Address
>    |
> ci-info:
> +--------+-------+-----------+-----------+-------+-------------------+
> ci-info: |  eth0  | False |     .     |     .     |   .   |
> 1e:00:1f:00:01:2e |
> ci-info: |   lo   |  True | 127.0.0.1 | 255.0.0.0 |  host |         .
>   |
> ci-info: |   lo   |  True |  ::1/128  |     .     |  host |         .
>   |
> ci-info:
> +--------+-------+-----------+-----------+-------+-------------------+
> ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
> ci-info: +-------+-------------+---------+-----------+-------+
> ci-info: | Route | Destination | Gateway | Interface | Flags |
> ci-info: +-------+-------------+---------+-----------+-------+
>
> I tried to change cloud-init.service:
> - removed:
> before=network-online.target
> - added:
> After=network-online.target
> Wants=network-online.target
>
> Unfortunately no change and the interface is still reported as False.
>
> Regards,
> Jordan
>
>
> On Thu, Jun 20, 2024 at 3:10 PM Jayanth Babu A
> <jayanth.b...@nxtgen.com.invalid> wrote:
>
> > Just remembered that Ubuntu 24.04 hasn't yet been added as a template.
> > Testing this out and will let you know.
> >
> > Thanks,
> > Jayanth
> >
> > Sent on the move
> >
> > Sent from Outlook for Android<https://aka.ms/AAb9ysg>
> > ________________________________
> > From: jordan j <yordan...@gmail.com>
> > Sent: Thursday, June 20, 2024 5:30:45 PM
> > To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> > Subject: cloud-init fails on newer ubuntu?
> >
> > Hi everyone,
> >
> > Currently I have a test setup where these 4 OSs are tested with
> cloud-init
> > and  Cloudstack 4.19.0.1 :
> > - Ubuntu 22 server - work!
> > - Ubuntu 24 server - does not work
> > - Ubuntu 22 desktop - does not work
> > - Ubuntu 24 desktop - does not work
> >
> > The config script is the same on all 4 instances.
> > All template instances are started in the same network with the same VR.
> > The error on the failed ones is:
> > 2024-06-20 09:07:18,172 - util.py[WARNING]: Getting data from <class
> > 'cloudinit.sources.DataSourceCloudStack.DataSourceCloudStack'> failed
> >
> > I can query successfully the metadata from the failed instances.
> > Do you have any suggestions why those 3 fail while the 22 server is
> running
> > properly? I have been looking at the ins and outs of that for a few days
> > now with no success.
> >
> > Regards,
> > Jordan
> > Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
> > INFORMATION intended solely for the use of the addressee(s). If you are
> not
> > the intended recipient, please notify the sender by e-mail and delete the
> > original message. Further, you are not authorised to copy, disclose, or
> > distribute this e-mail or its contents to any other person and any such
> > actions are unlawful and strictly prohibited. This e-mail may contain
> > viruses. NxtGen Datacenter & Cloud Technologies Private Ltd ("NxtGen")
> has
> > taken every reasonable precaution to minimize this risk but is not liable
> > for any damage you may sustain as a result of any virus in this e-mail.
> You
> > should carry out your own virus checks before opening the e-mail or
> > attachment. NxtGen reserves the right to monitor and review the content
> of
> > all messages sent to or from this e-mail address. Messages sent to or
> from
> > this e-mail address may be stored on the NxtGen e-mail system. *** End of
> > Disclaimer ***NXTGEN***
> >
>

Reply via email to