Hello,
I have an LXC container that will not start, can anybody give me a hand with it ?
This is the error:
# pct start 120
lxc-start: tools/lxc_start.c: main: 365 The container failed to start.
lxc-start: tools/lxc_start.c: main: 367 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 369 Additional information can be obtained by setting the --logfile and --logpriority options.
command 'lxc-start -n 120' failed: exit code 1
Losetup shows the image:
# losetup
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
/dev/loop2 0 0 0 0 /mnt/pve/nfs-1tb/images/120/vm-120-disk-1.raw
Mounting the image manually works correctly:
# mount -o rw /dev/loop2 /mnt/tmp/
# df -hT
/dev/loop2 ext4 3.0G 1.5G 1.4G 53% /mnt/tmp
But I can not write anything on the disk. Reading files works correctly:
# touch /mnt/tmp/testing
touch: cannot touch ‘/mnt/tmp/testing’: No space left on device
Here is the config file:
# cat /etc/pve/lxc/120.conf
arch: amd64
cpulimit: 1
hostname: lxc120
memory: 1024
net0: bridge=vmbr0,gw=192.168.1.100,hwaddr=62:35:34:39:31:39,ip=192.168.1.120/24,name=eth0,type=veth
onboot: 1
ostype: debian
rootfs: nfs-1tb:120/vm-120-disk-1.raw,size=3G
swap: 0
Thanks.
I have an LXC container that will not start, can anybody give me a hand with it ?
This is the error:
# pct start 120
lxc-start: tools/lxc_start.c: main: 365 The container failed to start.
lxc-start: tools/lxc_start.c: main: 367 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 369 Additional information can be obtained by setting the --logfile and --logpriority options.
command 'lxc-start -n 120' failed: exit code 1
Losetup shows the image:
# losetup
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
/dev/loop2 0 0 0 0 /mnt/pve/nfs-1tb/images/120/vm-120-disk-1.raw
Mounting the image manually works correctly:
# mount -o rw /dev/loop2 /mnt/tmp/
# df -hT
/dev/loop2 ext4 3.0G 1.5G 1.4G 53% /mnt/tmp
But I can not write anything on the disk. Reading files works correctly:
# touch /mnt/tmp/testing
touch: cannot touch ‘/mnt/tmp/testing’: No space left on device
Here is the config file:
# cat /etc/pve/lxc/120.conf
arch: amd64
cpulimit: 1
hostname: lxc120
memory: 1024
net0: bridge=vmbr0,gw=192.168.1.100,hwaddr=62:35:34:39:31:39,ip=192.168.1.120/24,name=eth0,type=veth
onboot: 1
ostype: debian
rootfs: nfs-1tb:120/vm-120-disk-1.raw,size=3G
swap: 0
Thanks.