unable to detect OS disribution after pct restore

max2france

Renowned Member
Feb 10, 2016
15
0
66
46
Hello,

I have a server in proxmox and I gradually migrate my openvz vm in lxc and I have an issue with this vm indicating that it can not detect bone

"Unable to detect OS disribution"

I wanted to add in the restore command -ostype centos but it does not work.

This is a centos 6.7 yet, have you had problems?

Thank you in advance for your help.

root:/var/lib/vz/dump/dump# pct restore 105 /var/lib/vz/dump/dump/vzdump-108.tar --rootfs 80 Formatting '/var/lib/vz/images/105/vm-105-disk-1.raw', fmt=raw size=85899345920
mke2fs 1.42.12 (29-Aug-2014)
Discarding device blocks: done
Creating filesystem with 20971520 4k blocks and 5242880 inodes
Filesystem UUID: 50c7b777-0887-46d8-b02c-80a540c0d02d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done

extracting archive '/var/lib/vz/dump/dump/vzdump-108.tar'
Total bytes read: 40110141440 (38GiB, 62MiB/s)
Detected container architecture: amd64
###########################################################
Converting OpenVZ configuration to LXC.
Please check the configuration and reconfigure the network.
###########################################################
unable to detect OS disribution
 
We parse /etc/redhat-release to detect the OS type. Does the backup contains such file, and what is the content of that file?
 
Thank you for your reply.

The file exists in the original container openvz and the file contains:

[root@]# cat /etc/redhat-release
CentOS release 6.7 (Final)
 
root@srv23:~# pveversion -v
proxmox-ve: 4.1-26 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-1 (running version: 4.1-1/2f9650d4)
pve-kernel-4.2.6-1-pve: 4.2.6-26
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-41
pve-firmware: 1.1-7
libpve-common-perl: 4.0-41
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-17
pve-container: 1.0-32
pve-firewall: 2.0-14
pve-ha-manager: 1.0-14
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve1
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie