Hello all
I tried to move a disk, which was originally used in a VM (ID210), to a CT (ID170). The disk is part of a LVM, the group name is data2.
Now the CT is not starting and Proxmox gives the following error message:
I have done the following steps:
Did I miss something?
I tried to move a disk, which was originally used in a VM (ID210), to a CT (ID170). The disk is part of a LVM, the group name is data2.
Now the CT is not starting and Proxmox gives the following error message:
Code:
run_buffer: 322 Script exited with status 32
lxc_init: 844 Failed to run lxc.hook.pre-start for container "170"
__lxc_start: 2027 Failed to initialize container "170"
TASK ERROR: startup for container '170' failed
- Detach the disk by deleting the line (
scsi1: local-lvm-data2:vm-210-disk-1,size=8G
) in the conf file of VM/etc/pve/qemu-server/210.conf
- Rename the disk:
lvrename data2/vm-210-disk-1 data2/vm-170-disk-0
- Add the disk to conf file of CT
/etc/pve/lxc/170.conf
by adding the following:mp0: local-lvm-data2:vm-170-disk-0,mp=/mnt/data,size=8G
- Update disk tag:
lvchange --deltag vm-210-disk-1 --addtag data2/vm-170-disk-0 data2/vm-170-disk-0
Did I miss something?
Last edited: