what would be preventing me from using systemd start/stop in my container?

lacrosse1991

New Member
Feb 27, 2016
1
0
1
33
Hello,
I recently configured a suse container using the "suse-13-.1-x86_64-minimal.tar.gz" template. I'm able to get the container itself running to the point where I can go in and use suse as I normally would, but I am not able to start/stop services using systemd. Whenever I attempt to do this, systemd will just sit there and not do anything, no output on screen, no error messages, etc.

Is there something that I would need to configure to allow me to use systemd to start/stop services? (sshd for example, or networking).

I'm seeing a lot of logs similar to what is below in my host's syslog file, not sure if I would need to change something in apparmor?

Feb 27 12:13:52 proxmox kernel: [ 868.642681] audit: type=1400 audit(1456593232.964:60672): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/dev/pts/" pid=6749 comm="mount" flags="rw, remount"

Feb 27 12:13:52 proxmox kernel: [ 868.642825] audit: type=1400 audit(1456593232.964:60673): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/proc/" pid=6748 comm="mount" flags="rw, remount"

Feb 27 12:13:53 proxmox kernel: [ 868.884305] audit: type=1400 audit(1456593233.208:60674): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/var/run/" pid=6782 comm="mount" srcname="/run/" flags="rw, bind"

Feb 27 12:13:53 proxmox kernel: [ 868.884363] audit: type=1400 audit(1456593233.208:60675): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/var/run/" pid=6782 comm="mount" srcname="/run/" flags="rw, bind"

Feb 27 12:13:53 proxmox kernel: [ 868.904517] audit: type=1400 audit(1456593233.228:60676): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/var/lock/" pid=6798 comm="mount" srcname="/run/lock/" flags="rw, bind"

Feb 27 12:13:53 proxmox kernel: [ 868.904594] audit: type=1400 audit(1456593233.228:60677): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/var/lock/" pid=6798 comm="mount" srcname="/run/lock/" flags="rw, bind"

Feb 27 12:13:53 proxmox kernel: [ 868.971621] audit: type=1400 audit(1456593233.292:60678): apparmor="DENIED" operation="mount" info="failed type match" error=-13 profile="lxc-container-default" name="/var/lock
 
Any system with a reasonable new version of systemd should work (try ubuntu 15.04 for example).
 

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!