Ubuntu 12.04 uses virsh to create lxc container. Problems and Solutions

Source: Internet
Author: User

I was frustrated by ubuntu. Previously, it was very smooth to create Linux container through libvirt on Ubuntu 12.04 server manually installed by ISO without 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 by Maas and those manually installed? 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 the absence of a power management package, which can be ignored or solved by installing a power management package.
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, when the rootfs path of the container specified in the container configuration file is in the directory of a symbolic link, this issue will be reported, which can be solved without symbolic links.

These problems did not occur on the Ubuntu 12.04 server I manually installed. This is so depressing!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.