Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu2404 LXC containers running on Ubuntu2404 LXC nodes do not start succesfully #6936

Open
3 tasks
dann1 opened this issue Feb 20, 2025 · 0 comments
Open
3 tasks

Comments

@dann1
Copy link
Contributor

dann1 commented Feb 20, 2025

Description
An ubuntu2404 LXC container from the LinuxContainers marketplace running on an Ubuntu 2404 host will fail to start when issued lxc-start one-<vm_id> by the LXC driver. The container is seemingly created successfully, as the lxc-start doesn't fail as far as CLI goes. However, the container is always STOPPED and the LXC log doesn't provide anything useful.

To Reproduce

root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# oneimage show 1
IMAGE 1 INFORMATION
ID             : 1
NAME           : ubuntu2404
USER           : oneadmin
GROUP          : oneadmin
LOCK           : None
DATASTORE      : default
TYPE           : OS
REGISTER TIME  : 02/20 03:30:01
PERSISTENT     : No
SOURCE         : /var/lib/one//datastores/1/2787cdf7b63dc9e9e09dcce554e2bd7a
PATH           : lxd://https://images.linuxcontainers.org/images/ubuntu/noble/amd64/default/20250218_07:42/rootfs.tar.xz?size=2048&filesystem=ext4&format=raw
FORMAT         : qcow2
SIZE           : 2G
STATE          : used
RUNNING_VMS    : 1

PERMISSIONS
OWNER          : um-
GROUP          : ---
OTHER          : ---

IMAGE TEMPLATE
DEV_PREFIX="sd"
FROM_APP="155"
FROM_APP_MD5="95b16ca788c456247360b971f7b7fb29"
FROM_APP_NAME="ubuntu_noble - LXC"

VIRTUAL MACHINES

  ID USER     GROUP    NAME                                                                        STAT  CPU     MEM HOST                                                     TIME
   1 oneadmin oneadmin base-1                                                                      epil  0.1    768M ubuntu2404-lxc-marketplace-6-10-8bce-0.test          0d 00h14
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# onetemplate show base
TEMPLATE 0 INFORMATION
ID             : 0
NAME           : base
USER           : oneadmin
GROUP          : oneadmin
LOCK           : None
REGISTER TIME  : 01/27 15:37:07

PERMISSIONS
OWNER          : um-
GROUP          : ---
OTHER          : ---

TEMPLATE CONTENTS
ARCH="x86_64"
CONTEXT=[
  NETWORK="YES",
  SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]
CPU="0.1"
GRAPHICS=[
  LISTEN="0.0.0.0",
  TYPE="vnc" ]
LXD_SECURITY_PRIVILEGED="true"
MEMORY="768"
NIC=[
  NETWORK="public" ]
NIC_DEFAULT=[
  MODEL="virtio" ]
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# onetemplate instantiate base --disk ubuntu2404
VM ID: 2
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# onevm list
  ID USER     GROUP    NAME                                                                        STAT  CPU     MEM HOST                                                     TIME
   2 oneadmin oneadmin base-2                                                                      boot  0.1    768M ubuntu2404-lxc-marketplace-6-10-8bce-0.test          0d 00h00
   1 oneadmin oneadmin base-1                                                                      epil  0.1    768M ubuntu2404-lxc-marketplace-6-10-8bce-0.test          0d 00h14
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# onevm list
  ID USER     GROUP    NAME                                                                        STAT  CPU     MEM HOST                                                     TIME
   2 oneadmin oneadmin base-2                                                                      runn  0.1    768M ubuntu2404-lxc-marketplace-6-10-8bce-0.test          0d 00h00
   1 oneadmin oneadmin base-1                                                                      epil  0.1    768M ubuntu2404-lxc-marketplace-6-10-8bce-0.test          0d 00h14
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# lxc-ls -f
NAME  STATE   AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED
one-2 STOPPED 0         -      -    -    true
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# lxc-start one-2 -l DEBUG
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# cat /var/log/lxc/one-2.log
lxc-start one-2 20250220034826.813 INFO     confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type u nsid 0 hostid 600100001 range 65536
lxc-start one-2 20250220034826.813 INFO     confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type g nsid 0 hostid 600100001 range 65536
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# cat /var/log/one/2.log
Thu Feb 20 03:48:04 2025 [Z0][VM][I]: New state is ACTIVE
Thu Feb 20 03:48:04 2025 [Z0][VM][I]: New LCM state is PROLOG
Thu Feb 20 03:48:08 2025 [Z0][VM][I]: New LCM state is BOOT
Thu Feb 20 03:48:08 2025 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/2/deployment.0
Thu Feb 20 03:48:09 2025 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: ExitCode: 0
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: ExitCode: 0
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/mkdir -p.
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: ExitCode: 0
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/2/vm.xml.
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: ExitCode: 0
Thu Feb 20 03:48:10 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one//datastores/0/2/ds.xml.
Thu Feb 20 03:48:12 2025 [Z0][VMM][I]: deploy: No block device on /var/lib/one/datastores/0/2/mapper/disk.0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: deploy: No block device on /var/lib/one/datastores/0/2/mapper/disk.1
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo lxc-ls
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n qemu-nbd --fork -c /dev/nbd0 /var/lib/one/datastores/0/2/disk.0.snap/0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: lsblk -o NAME,FSTYPE
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: lsblk -o NAME,FSTYPE
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n e2fsck -y -f /dev/nbd0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n resize2fs /dev/nbd0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n mount /dev/nbd0 /var/lib/one/datastores/0/2/mapper/disk.0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n  bindfs --uid-offset=600100001 --gid-offset=600100001 -o suid /var/lib/one/datastores/0/2/mapper/disk.0 /var/lib/lxc-one/2/disk.0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n losetup --find --show /var/lib/one/datastores/0/2/disk.1
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: lsblk -o NAME,FSTYPE
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n mount /dev/loop0 /var/lib/one/datastores/0/2/mapper/disk.1
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo -n  bindfs --uid-offset=600090132 --gid-offset=600090132 -o suid /var/lib/one/datastores/0/2/mapper/disk.1 /var/lib/lxc-one/2/disk.1
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: WARNING: deploy: swap limiting via cgroups not supported
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo lxc-create -n 'one-2' --config /var/lib/one/datastores/0/2/deployment.file --template none
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo lxc-start -n 'one-2'
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo lxc-info -n 'one-2' -s
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: sudo lxc-info -n 'one-2' -s
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: ExitCode: 0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: ExitCode: 0
Thu Feb 20 03:48:13 2025 [Z0][VMM][I]: Successfully execute network driver operation: post.
Thu Feb 20 03:48:13 2025 [Z0][VM][I]: New LCM state is RUNNING
Thu Feb 20 03:48:44 2025 [Z0][LCM][I]: VM running but monitor state is POWEROFF
Thu Feb 20 03:48:44 2025 [Z0][VM][I]: New LCM state is SHUTDOWN_POWEROFF
Thu Feb 20 03:48:44 2025 [Z0][VM][I]: New state is POWEROFF
Thu Feb 20 03:48:44 2025 [Z0][VM][I]: New LCM state is LCM_INIT
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# lxc-start one-2 -l DEBUG
root@ubuntu2404-lxc-marketplace-6-10-8bce-0:~# echo $?
0

Expected behavior
The container should start or fail correctly with some kind of error.

Details

  • Version: 6.10

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant