[Lxc-users] Installing Centos6 lxc guests under CentOS6 hosts

Fajar A. Nugraha list at fajar.net
Sat Mar 10 23:03:27 UTC 2012


On Sun, Mar 11, 2012 at 6:02 AM, Fajar A. Nugraha <list at fajar.net> wrote:
> On Sat, Mar 10, 2012 at 10:11 PM, carlopmart <carlopmart at gmail.com> wrote:
>> Many thanks Fajar. I am trying to build a new CentOS 6 image, but when I
>> try to launch my lxc guest via virt-manager stops in "Enabling
>> /etc/swaps:     [OK]" ... and no go.
>>
>> My lxc guest fstab is:
>>
>> rootfs          /               tmpfs   defaults                0 0
>> devpts          /dev/pts        devpts  gid=5,mode=620          0 0
>> sysfs           /sys            sysfs   defaults                0 0
>> proc            /proc           proc    nodev,noexec,nosuid     0 0
>> tmpfs           /dev/shm        tmpfs   defaults                0 0
>
> Try:
> - creating /etc/init/console.conf, which is bascially tty.conf but
> with device hardcoded to "console"
> - creating /etc/init/container-init.conf, which contains:
>
> start on startup
> pre-start script
>       init 2 && init 3
>       exit 0;
> end script
>
>
> It's a big hack, but if it works we can create a proper one


This is on the container's filesystem, in case it's not obvious already :)




More information about the lxc-users mailing list