cat << 'EOF' > /etc/cloud/cloud.cfg.d/99_cloudstack.cfg
disable_root: false
system_info:
   default_user:
     name: root
ssh_pwauth: true
datasource_list: ['CloudStack']
cloud_config_modules:
 - [ set-passwords, always ]
 - disable-ec2-metadata
EOF

(obviously, if you are not interested in direct root access replace to whichever user you want and set disable_root to "true")

HTH

On 2023-01-31 14:53, m...@swen.io wrote:
Hey Sven,

we create our image for Ubuntu 22.04 with some added parameters and we got password feature working. IF you interested I can share our settings.

Regards,
Swen

-----Ursprüngliche Nachricht-----
Von: Sven Barczyk <s.barc...@bringe.com.INVALID>
Gesendet: Dienstag, 31. Januar 2023 15:09
An: users@cloudstack.apache.org
Betreff: AW: AW: VNC Console Problems with Ubuntu 22.04

SSH-Key works, password not really with Ubuntu 22.04.
The only Image which works for us with Password is a Debian Cloudimage.

K,R,
Sven Barczyk

-----Ursprüngliche Nachricht-----
Von: Nux <n...@li.nux.ro>
Gesendet: Dienstag, 31. Januar 2023 14:54
An: users@cloudstack.apache.org
Cc: Sven Barczyk <s.barc...@bringe.com.invalid>
Betreff: Re: AW: VNC Console Problems with Ubuntu 22.04

Can you use the password and ssh keys Cloudstack feature with that image?


On 2023-01-31 12:50, Sven Barczyk wrote:
It turned out as an Layer8 problem.

There a 2 kind of Images on
https://cloud-images.ubuntu.com/jammy/current/
jammy-server-cloudimg-amd64-disk-kvm.img
jammy-server-cloudimg-amd64.img
without any context to it.

My thoughts on this where like ... im using kvm , than disk-kvm should
be the right one.
But this one has no Console.

jammy-server-cloudimg-amd64.img is the one with functioning VNC.

Closing()

Kind regards
Sven Barczyk



-----Ursprüngliche Nachricht-----
Von: Nux <n...@li.nux.ro>
Gesendet: Dienstag, 31. Januar 2023 13:32
An: users@cloudstack.apache.org
Cc: Sven Barczyk <s.barc...@bringe.com.invalid>
Betreff: Re: VNC Console Problems with Ubuntu 22.04

I believe I know why. That image is really made more for
Openstack/EC2, if you check the kernel parameters (cat /proc/cmdline)
you will probably notice they redirect the output to the serial console.
Something like "console=ttyS0,115200n8", if you remove that you should
get all output to your regulat tty console.

HTH

On 2023-01-31 09:47, Sven Barczyk wrote:
Hi there,

has anybody encountered this phenomenon, with the official
Cloud-Images from Ubuntu 22.04?

After booting, the VNC Console from ConsoleProxy is frozen with bios
post information.
The instance from this Ubuntu 22.04 cloud-image, when configured with
proper network, is bootable and is accessible via SSH.

K,R
Sven Barczyk

Reply via email to