Ubuntu 12.04 used virsh to create lxc container. When it encountered problems and solutions, it was frustrated by ubuntu. It was very smooth to create linux container through libvirt on the ubuntu 12.04 server manually installed by iso, you have not encountered any problems. Recently, we have deployed the ubuntu OS Deployment Tool MAAS, which is also a ubuntu 12.04 server, but a series of problems have occurred! What are the differences between the OS deployed on www.2cto.com and the OS manually installed on MAAS? These things disappoint developers! Libvirt version: 0.9.8-2ubuntu17. 4 Ubuntu kernel version: Linux compute-63-30 3.2.0-35-generic # 55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Question 1: warning: lxcCapsInit: 77: Failed to get host power management capabilities this error is caused by a lack of power management packages, which can be ignored or solved by installing power management packages.
Sudo apt-get-y install pm-utils problem 2: error: lxcContainerMountDevFS: 519: Failed to mount/dev/pts in container: no such file or directory. This problem is caused by symbol link, that is, if the rootfs path of the container specified in the container configuration file is in the directory of a symbolic link, this problem is reported, and the problem can be solved without symbolic links. Www.2cto.com