Failed to create a new pct

pkking

New Member
Jun 3, 2023
4
1
3
Hi, im a newbie to PVE and love it so much!!

Im trying to start a container in PVE 7.4 using a image from https://us.lxd.images.canonical.com/images/openeuler/22.03/amd64/cloud/20230601_16:40/rootfs.tar.xz

But failed with:
Code:
 Wiping ext4 signature on /dev/pve/vm-101-disk-0.
  Logical volume "vm-101-disk-0" created.
Creating filesystem with 26214400 4k blocks and 6553600 inodes
Filesystem UUID: a8b96a8c-fae2-4478-8207-8bb5b14ce254
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872
extracting archive '/var/lib/vz/template/cache/openeuler.tar.xz'
Total bytes read: 769587200 (734MiB, 56MiB/s)
Detected container architecture: amd64
unknown ID 'openEuler' in /etc/os-release file, trying fallback detection
  Logical volume "vm-101-disk-0" successfully removed
TASK ERROR: unable to create CT 101 - unable to detect OS distribution

Seems PVE will try to detected the lxc distro, is there a way to skip this check or how can i add supported for openEuler?
 
Hi,
you should be able to set the OS type to unmanaged. Then the detection, but also OS-type-specific setup will be skipped.
 
Hi,
you should be able to set the OS type to unmanaged. Then the detection, but also OS-type-specific setup will be skipped.
@fiona Thanks for your reply! the unmanaged option is not available in webUI, right?
Seems i should use `pct` from command-line directly.
 
@fiona Thanks for your reply! the unmanaged option is not available in webUI, right?
Seems i should use `pct` from command-line directly.
Yes, I think because it's not an officially supported use-case by us. Note that you should be able to use
The special option syntax STORAGE_ID:SIZE_IN_GB for storage backedmount point volumes will automatically allocate a volume of the specified sizeon the specified storage. For example, calling -mp0 thin1:10,mp=/path/in/container will allocate a 10GB volume on the storage thin1 and replace the volume ID place holder 10 with the allocated volume ID, and setup the moutpoint in the container at /path/in/container
for mount points as well as rootfs to create new volumes on the fly. For all options see man pct.