Witam, mam problem z wystartowaniem kontenera lxc sshd z gotowej templatki. Wpierw instaluję:
root@vm1:/usr/share/lxc/templates# lxc-create --template sshd --name sshd --bdev loop
Generating public/private rsa key pair.
Your identification has been saved in /usr/lib/x86_64-linux-gnu/lxc/etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /usr/lib/x86_64-linux-gnu/lxc/etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
46:7a:c9:25:29:12:41:75:ef:bc:9a:59:2b:16:d6:4f root@vm1
The key's randomart image is:
+--[ RSA 2048]----+
| .+o. . |
| . . o |
| . . + o |
| . = * |
| . S.o |
| oo ..E |
| . .oo |
| o= .. |
| .+.. |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /usr/lib/x86_64-linux-gnu/lxc/etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /usr/lib/x86_64-linux-gnu/lxc/etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
53:47:43:bc:80:2d:05:33:5b:4d:fc:d1:c7:ee:e7:cc root@vm1
The key's randomart image is:
+--[ DSA 1024]----+
| +=o*= o |
| o=o.+.. +|
| .....o o.|
| . .. . .|
| S . |
| . o|
| +.|
| E|
| |
+-----------------+
root@vm1:/usr/share/lxc/templates#
Następnie próbuję wystartować kontener:
root@vm1:/usr/share/lxc/templates# lxc-start -n sshd
lxc-start: No such file or directory - failed to change apparmor profile to lxc-container-default
lxc-start: invalid sequence number 1. expected 4
lxc-start: failed to spawn 'sshd'
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing hugetlb:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing perf_event:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing blkio:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing freezer:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing devices:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing memory:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing cpuacct:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing cpu:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing name=systemd:lxc/sshd
lxc-start: call to cgmanager_remove_sync failed: invalid request
lxc-start: Error removing cpuset:lxc/sshd
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --log-priority options.
root@vm1:/usr/share/lxc/templates#
W jaki sposób mogę naprawić ten problem?