I have a problem with migrating container from one node to another. I try to migrate container from pve 7.4-3 to pve 8.1.3
My steps:
1. Make a backup on old node
2. Transfer backup to new node
3. Restore backup on new node (local-zfs)
After that container start normally on new node.
But I have nfs storage on my new node.
I tried moving the container to nfs storage. And after that my containet won't start...
-----------------------------
pct start 101 --debug
run_buffer: 322 Script exited with status 255
lxc_init: 844 Failed to run lxc.hook.pre-start for container "101"
__lxc_start: 2027 Failed to initialize container "101"
0 hostid 100000 range 65536
INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "101", config section "lxc"
DEBUG conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 101 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
DEBUG conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 101 lxc pre-start produced output: command 'mount -o noacl /dev/loop0 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32
ERROR conf - ../src/lxc/conf.c:run_buffer:322 - Script exited with status 255
ERROR start - ../src/lxc/start.c:lxc_init:844 - Failed to run lxc.hook.pre-start for container "101"
ERROR start - ../src/lxc/start.c:__lxc_start:2027 - Failed to initialize container "101"
INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "101", config section "lxc"
startup for container '101' failed
--------------------------------
I also tried:
pct fsck 101
fsck from util-linux 2.38.1
/mnt/pve/pool2-ssd-sata-1808/images/101/vm-101-disk-0.raw: clean, 28460/1966080 files, 2511890/7864320 blocks
But container won't start
--------------------------------------------
If I move the container back to local-zfs, than container start normally.
I thought maybe problem with my nfs storage. I created new container on nfs storage and it start normal.
Also I tried restore from backup to nfs and got this:
mount: /var/lib/lxc/103/rootfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
pct config 101:
arch: amd64
cores: 8
features: nesting=1
hostname: unifi589n
memory: 2048
net0: name=eth0,bridge=vmbr0,gw=192.168.5.1,hwaddr=0E:49:26:94:61:9D,ip=192.168.5.89/24,tag=100,type=veth
ostype: ubuntu
rootfs: pool2-ssd-sata-1808:101/vm-101-disk-0.raw,acl=0,size=30G
swap: 2048
unprivileged: 1
Please help.
My steps:
1. Make a backup on old node
2. Transfer backup to new node
3. Restore backup on new node (local-zfs)
After that container start normally on new node.
But I have nfs storage on my new node.
I tried moving the container to nfs storage. And after that my containet won't start...
-----------------------------
pct start 101 --debug
run_buffer: 322 Script exited with status 255
lxc_init: 844 Failed to run lxc.hook.pre-start for container "101"
__lxc_start: 2027 Failed to initialize container "101"
0 hostid 100000 range 65536
INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "101", config section "lxc"
DEBUG conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 101 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
DEBUG conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 101 lxc pre-start produced output: command 'mount -o noacl /dev/loop0 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32
ERROR conf - ../src/lxc/conf.c:run_buffer:322 - Script exited with status 255
ERROR start - ../src/lxc/start.c:lxc_init:844 - Failed to run lxc.hook.pre-start for container "101"
ERROR start - ../src/lxc/start.c:__lxc_start:2027 - Failed to initialize container "101"
INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "101", config section "lxc"
startup for container '101' failed
--------------------------------
I also tried:
pct fsck 101
fsck from util-linux 2.38.1
/mnt/pve/pool2-ssd-sata-1808/images/101/vm-101-disk-0.raw: clean, 28460/1966080 files, 2511890/7864320 blocks
But container won't start
--------------------------------------------
If I move the container back to local-zfs, than container start normally.
I thought maybe problem with my nfs storage. I created new container on nfs storage and it start normal.
Also I tried restore from backup to nfs and got this:
mount: /var/lib/lxc/103/rootfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
pct config 101:
arch: amd64
cores: 8
features: nesting=1
hostname: unifi589n
memory: 2048
net0: name=eth0,bridge=vmbr0,gw=192.168.5.1,hwaddr=0E:49:26:94:61:9D,ip=192.168.5.89/24,tag=100,type=veth
ostype: ubuntu
rootfs: pool2-ssd-sata-1808:101/vm-101-disk-0.raw,acl=0,size=30G
swap: 2048
unprivileged: 1
Please help.