G'day,
I've reinstalled Proxmox on my server, and am having trouble adding my existing LVM storage to a container.
fdisk -l
vgsan
my current container config
the error I receive when I attempt to start the VM is as follows:
I have tried mounting from /dev/mapper /dev/Media.
I did notice that I get the error wrong fs type etc. Any help would be appreciated.
I've reinstalled Proxmox on my server, and am having trouble adding my existing LVM storage to a container.
fdisk -l
Code:
Disk /dev/mapper/Media-vm--100--disk--0: 7.6 TiB, 8311982260224 bytes, 16234340352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3969C18C-3C5A-C54E-8694-40C7C89F8E40
Device Start End Sectors Size Type
/dev/mapper/Media-vm--100--disk--0-part1 2048 16234338303 16234336256 7.6T Linux filesystem
vgsan
Code:
Reading all physical volumes. This may take a while...
Found volume group "cloud" using metadata type lvm2
Found volume group "Media" using metadata type lvm2
Found volume group "pve" using metadata type lvm2
Code:
root@pve:~# pvscan
PV /dev/sdb2 VG cloud lvm2 [932.25 GiB / 4.00 MiB free]
PV /dev/sdb1 VG Media lvm2 [<7.56 TiB / 12.00 MiB free]
PV /dev/sda3 VG pve lvm2 [<446.63 GiB / 15.99 GiB free]
Total: 3 [<8.91 TiB] / in use: 3 [<8.91 TiB] / in no VG: 0 [0 ]
my current container config
Code:
arch: amd64
hostname: Emby
memory: 16000
mp0: /dev/Media/vm-100-disk-0,mp=/srv
net0: name=eth0,bridge=vmbr0,firewall=1,gw=10.10.10.1,hwaddr=56:09:17:CD:9B:86,ip=10.10.10.3/27,tag=10,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-100-disk-0,size=20G
swap: 512
unprivileged: 1
the error I receive when I attempt to start the VM is as follows:
Code:
run_buffer: 314 Script exited with status 32
lxc_init: 798 Failed to run lxc.hook.pre-start for container "100"
__lxc_start: 1945 Failed to initialize container "100"
TASK ERROR: startup for container '100' failed
Code:
GNU nano 3.2 /var/log/lxc-100.log Modified
lxc-start 100 20210502022504.431 INFO confile - confile.c:set_config_idmaps:1985 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 100 20210502022504.431 INFO confile - confile.c:set_config_idmaps:1985 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 100 20210502022504.432 INFO lsm - lsm/lsm.c:lsm_init:40 - Initialized LSM security driver AppArmor
lxc-start 100 20210502022504.432 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "100", config section "lxc"
lxc-start 100 20210502022505.933 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: Use of uninitialized value in pattern ma$
lxc-start 100 20210502022505.966 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/m$
lxc-start 100 20210502022505.967 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: command 'mount /dev/media/vm-100-disk-0 $
lxc-start 100 20210502022505.106 ERROR conf - conf.c:run_buffer:314 - Script exited with status 32
lxc-start 100 20210502022505.106 ERROR start - start.c:lxc_init:798 - Failed to run lxc.hook.pre-start for container "100"
lxc-start 100 20210502022505.106 ERROR start - start.c:__lxc_start:1945 - Failed to initialize container "100"
lxc-start 100 20210502022505.106 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "100", config section "lxc"
lxc-start 100 20210502022505.702 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 100 lxc post-stop produced output: umount: /var/lib/lxc/.pve-staged-mounts/$
lxc-start 100 20210502022505.702 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 100 lxc post-stop produced output: command 'umount -- /var/lib/lxc/.pve-sta$
lxc-start 100 20210502022505.733 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "100", config section "lxc"
lxc-start 100 20210502022506.236 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start 100 20210502022506.236 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --logpriority options
lxc-start 100 20210502022538.429 INFO confile - confile.c:set_config_idmaps:1985 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 100 20210502022538.429 INFO confile - confile.c:set_config_idmaps:1985 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 100 20210502022538.430 INFO lsm - lsm/lsm.c:lsm_init:40 - Initialized LSM security driver AppArmor
lxc-start 100 20210502022538.430 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "100", config section "lxc"
lxc-start 100 20210502022539.154 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/m$
lxc-start 100 20210502022539.154 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: command 'mount /dev/Media/vm-100-disk-0 $
lxc-start 100 20210502022539.164 ERROR conf - conf.c:run_buffer:314 - Script exited with status 32
lxc-start 100 20210502022539.164 ERROR start - start.c:lxc_init:798 - Failed to run lxc.hook.pre-start for container "100"
lxc-start 100 20210502022539.164 ERROR start - start.c:__lxc_start:1945 - Failed to initialize container "100"
lxc-start 100 20210502022539.164 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "100", config section "lxc"
lxc-start 100 20210502022539.758 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 100 lxc post-stop produced output: umount: /var/lib/lxc/.pve-staged-mounts/$
lxc-start 100 20210502022539.758 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 100 lxc post-stop produced output: command 'umount -- /var/lib/lxc/.pve-sta$
lxc-start 100 20210502022539.789 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "100", config section "lxc"
lxc-start 100 20210502022540.292 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start 100 20210502022540.292 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --logpriority options
lxc-start 100 20210502022757.133 INFO confile - confile.c:set_config_idmaps:1985 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 100 20210502022757.133 INFO confile - confile.c:set_config_idmaps:1985 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 100 20210502022757.133 INFO lsm - lsm/lsm.c:lsm_init:40 - Initialized LSM security driver AppArmor
lxc-start 100 20210502022757.133 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "100", config section "lxc"
lxc-start 100 20210502022757.839 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/m$
lxc-start 100 20210502022757.839 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 100 lxc pre-start produced output: command 'mount /dev/Media/vm-100-disk-0 $
lxc-start 100 20210502022757.850 ERROR conf - conf.c:run_buffer:314 - Script exited with status 32
lxc-start 100 20210502022757.850 ERROR start - start.c:lxc_init:798 - Failed to run lxc.hook.pre-start for container "100"
I have tried mounting from /dev/mapper /dev/Media.
I did notice that I get the error wrong fs type etc. Any help would be appreciated.
Last edited: