Hi all,
first of all, thanks for this awesome product and the real real straight forward way of upgrading from version 3 to 4. I took the whole weekend off to do the upgrade but was done on saturday afternoon
My setup:
I installed Debian Jessie ~1 year ago and added proxmox afterwards (using this wiki page: https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Jessie) Most of my vms were running with Openvz, one with bind mounts:
Host /mnt/foo/bar => Guest /mnt/bar
After the upgrade (https://pve.proxmox.com/wiki/Upgrade_from_3.x_to_4.0) I performed an import of my backups (https://pve.proxmox.com/wiki/Convert_OpenVZ_to_LXC) and started all vms. This works fine.
But as soon as I added the bind mount (https://pve.proxmox.com/wiki/LXC_Bind_Mounts) I got error from app armor:
Some search brought up this page, which helped to remove this error:
But nevertheless my vm does not start:
I double checked if /mnt/foo or /mnt/foo/bar is a symlink, but no, it's not.
Is there anything I'm missing or any required configuration I didn't do?
Thanks for your help!
first of all, thanks for this awesome product and the real real straight forward way of upgrading from version 3 to 4. I took the whole weekend off to do the upgrade but was done on saturday afternoon
My setup:
I installed Debian Jessie ~1 year ago and added proxmox afterwards (using this wiki page: https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Jessie) Most of my vms were running with Openvz, one with bind mounts:
Host /mnt/foo/bar => Guest /mnt/bar
After the upgrade (https://pve.proxmox.com/wiki/Upgrade_from_3.x_to_4.0) I performed an import of my backups (https://pve.proxmox.com/wiki/Convert_OpenVZ_to_LXC) and started all vms. This works fine.
But as soon as I added the bind mount (https://pve.proxmox.com/wiki/LXC_Bind_Mounts) I got error from app armor:
Code:
apparmor="DENIED" operation="mount"
Code:
https://gist.github.com/gionn/7585324
Code:
root@proxmox:/home/deveth0# pct start 113
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
command 'lxc-start -n 113' failed: exit code 1
root@proxmox:/home/deveth0# lxc-start -n 113 -F --logfile=/tmp/113.log
Use of uninitialized value $real in string ne at /usr/share/perl5/PVE/LXC.pm line 953.
Use of uninitialized value $real in concatenation (.) or string at /usr/share/perl5/PVE/LXC.pm line 954.
mount path modified by symlink: /var/lib/lxc/113/rootfs/mnt/foo/bar != at /usr/share/perl5/PVE/LXC.pm line 954.
lxc-start: conf.c: run_buffer: 342 Script exited with status 2
lxc-start: start.c: lxc_init: 436 failed to run pre-start hooks for container '113'.
lxc-start: start.c: __lxc_start: 1170 failed to initialize the container
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
Code:
root@proxmox:/home/deveth0# cat /tmp/113.log
lxc-start 1459589398.104 ERROR lxc_conf - conf.c:run_buffer:342 - Script exited with status 2
lxc-start 1459589398.104 ERROR lxc_start - start.c:lxc_init:436 - failed to run pre-start hooks for container '113'.
lxc-start 1459589398.104 ERROR lxc_start - start.c:__lxc_start:1170 - failed to initialize the container
lxc-start 1459589398.104 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
Code:
root@proxmox:/home/deveth0# cat /etc/pve/lxc/113.conf
...
mp0: /mnt/bar,mp=/mnt/foo/bar
Is there anything I'm missing or any required configuration I didn't do?
Thanks for your help!