Skip to content

Ubuntu VM stuck at the select Language #3

@dumpap

Description

@dumpap

Hi Team,

Thanks for the code, I am trying to create the VM template for Ubuntu 24.04 some have the VM stuck at select language. Another problem I am facing is,

I do not have DHCP and I am trying to assign the static IP in user-data.pkrtpl.hcl file. But still it stuck at select language.

Below is my config.

`#cloud-config
autoinstall:
version: 1
early-commands:

Stop ssh for packer as it thinks it timed out (workaround)

  • sudo systemctl stop ssh
    locale: en_AU
    keyboard:
    layout: en
    variant: au
    network:
    network:
    version: 2
    renderer: networkd
    ethernets:
    ens33:
    dhcp4: false
    dhcp6: false
    addresses:
    - 10.1.0.25/24
    routes:
    - to: default
    via: 10.1.0.254
    nameservers:
    search:
    - mycompany.local
    addresses:
    - 10.1.7.100
    - 10.2.7.100
    storage:
    layout:
    name: lvm
    identity:
    hostname: ubuntu-24.04-v1
    username: ${guest_username}
    password: ${guest_password_encrypted}
    ssh:
    install-server: yes
    allow-pw: true
    user-data:
    disable_root: false
    late-commands:
    • echo '${guest_username} ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/${guest_username}
    • sudo lvm lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
    • sudo resize2fs -p /dev/mapper/ubuntu--vg-ubuntu--lv
      early-commands:
    • sudo systemctl stop ssh`

Regards,
Pradeep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions