
この問題の解決策を探していましたが、どれもうまくいきませんでした。
LXC コンテナを起動したいのですが、その前に cgroup をマウントする必要があります。
[root@stag-devCentOs ~]# lxc-start -n debianLxc
lxc-start: cgroup is not mounted
lxc-start: failed to spawn '/sbin/init'
lxc-start: cgroup is not mounted
私は次の行を追加する必要があると読んだ/etc/fstab
cgroup /sys/fs/cgroup cgroup defaults 0 0
そして、またはを入力する必要がありましmount /sys/fs/cgroup
たmount -a
。
すべて実行しましたが、まだこのエラーが発生します:
mount: wrong fs type, bad option, bad superblock on cgroup,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
私は CentOS 5.10 と 3.2.60-1.el5.elrepo カーネルを使用しています。
dmesg | tail を使用すると、次のような結果が表示されます。
[root@stag-devCentOs ~]# dmesg | tail
Bluetooth: RFCOMM ver 1.11
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
br0: no IPv6 routers present
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
私のコンテンツをご覧になりたい方は/etc/fstab
、こちらをご覧ください:
LABEL=/ / ext3 defaults 1 1
/dev/vglxc/lvhome /home ext3 defaults 1 1
/dev/vglxc/lvopt /opt ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
cgroup /sys/fs/cgroup cgroup defaults 0 0
/home
私は LVM をこのように使い続ける必要があり/opt
、lxc バージョンを 0.6.4 に維持する必要があります。
これらの問題を解決する方法や、何が問題なのか説明できるアイデアはありますか?