[SOLVED] LXC not boot after create mount point

eneesgur

New Member
Jan 21, 2020
2
0
1
27
Hi everyone,

I use Proxmox 6.1. I have an Alpine LXC Container it's id 103. I wanted to create a mount point to mount the container. And i followed the steps;

Code:
# pvesh create /nodes/proxmox1/storage/local/content --filename vm-103-disk-1.raw --size 1G --vmid 103
Formatting '/var/lib/vz/images/103/vm-103-disk-1.raw', fmt=raw size=1073741824
local:103/vm-103-disk-1.raw
# pct set 103 --mp0 local:103/vm-103-disk-1.raw,mp=/app,size=1G
# pct status 103
status: stopped
# pct start 103
Job for pve-container@103.service failed because the control process exited with error code.
See "systemctl status pve-container@103.service" and "journalctl -xe" for details.
command 'systemctl start pve-container@103' failed: exit code 1
# pct config 103
arch: amd64
cores: 2
cpulimit: 0
description: API-Test
hostname: API-Test
memory: 512
mp0: local:103/vm-103-disk-1.raw,mp=/app,size=1G
net0: name=eth0,bridge=vmbr0,firewall=1,gw=10.10.10.1,hwaddr=D6:F4:DA:66:06:CC,ip=10.10.10.128/24,type=veth
ostype: alpine
rootfs: local:103/vm-103-disk-0.raw,size=1G
swap: 512

and i have removed the "mp0" then starting the container boot successfully.

journalctl -xe output;
Code:
-- The job identifier is 22287.
Jan 21 15:56:12 proxmox1 kernel: EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
Jan 21 15:56:12 proxmox1 kernel: lxc-start[57134]: segfault at 50 ip 00007f1e640c5f8b sp 00007fffd3ecd130 error 4 in liblxc.so.1.6.0[7f1e6406c000+8a000]
Jan 21 15:56:12 proxmox1 kernel: Code: 9b c0 ff ff 4d 85 ff 0f 85 82 02 00 00 66 90 48 8b 73 50 48 8b bb f8 00 00 00 e8 80 78 fa ff 4c 8b 74 24 10 48 89 de 4c 89 f7 <41> ff 56 50 4c 89 f7 48 89 de 41 ff 56 58 48 8b 83 f8 00 00 00 8b
Jan 21 15:56:12 proxmox1 lxc-start[57122]: lxc-start: 103: lxccontainer.c: wait_on_daemonized_start: 865 No such file or directory - Failed to receive the container state
Jan 21 15:56:12 proxmox1 lxc-start[57122]: lxc-start: 103: tools/lxc_start.c: main: 329 The container failed to start
Jan 21 15:56:12 proxmox1 lxc-start[57122]: lxc-start: 103: tools/lxc_start.c: main: 332 To get more details, run the container in foreground mode
Jan 21 15:56:12 proxmox1 lxc-start[57122]: lxc-start: 103: tools/lxc_start.c: main: 335 Additional information can be obtained by setting the --logfile and --logpriority options
Jan 21 15:56:12 proxmox1 systemd[1]: pve-container@103.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit pve-container@103.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jan 21 15:56:12 proxmox1 systemd[1]: pve-container@103.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit pve-container@103.service has entered the 'failed' state with result 'exit-code'.
Jan 21 15:56:12 proxmox1 systemd[1]: Failed to start PVE LXC Container: 103.
-- Subject: A start job for unit pve-container@103.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support


I want to create automatically container via API but mount point didn't work. i have tried via web ui, it's working.
 
hi,

your syntax with pct set is wrong.

try like this: pct set CTID --mp0 STORAGENAME:SIZE,mp=/path/you/want
 
  • Like
Reactions: eneesgur
the STORAGENAME:SIZE is a special syntax for creating a new volume and then mounting it (it replaces the volume parameter)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!