Closed dragoscirjan closed 1 year ago
I've made a little test of my own lxc & centos related.
It seems that CentOS is taking a lot of time until it actually detects the network configuration (ipv4). Is there anything we could do to wait for the network to init ?
lxc-create -t download -n centos -- --dist centos --release 7 --arch amd64 \
&& lxc-start -n centos \
&& lxc-attach -n centos -- ip -o addr \
&& (sleep 20; lxc-attach -n centos -- ip -o addr)
Using image from local cache
Unpacking the rootfs
---
You just created a CentOS container (release=7, arch=amd64, variant=default)
To enable sshd, run: yum install openssh-server
For security reason, container images ship without user accounts
and without a root password.
Use lxc-attach or chroot directly into the rootfs to set a root password
or create user accounts.
1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever
1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever
44: eth0 inet6 fe80::216:3eff:fefb:5fa6/64 scope link tentative \ valid_lft forever preferred_lft forever
1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever
1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever
44: eth0 inet 10.0.3.130/24 brd 10.0.3.255 scope global dynamic eth0\ valid_lft 3586sec preferred_lft 3586sec
44: eth0 inet6 fe80::216:3eff:fefb:5fa6/64 scope link \ valid_lft forever preferred_lft forever
Hey, sorry for the silence here but this project is looking for maintainers :sweat_smile:
As per https://github.com/fgrehm/vagrant-lxc/issues/499, I've added the ignored
label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue :wave:
Hi guys,
since I found the vagrant plugin for LXC I've taken a burden of my own to improve the lxc box creator that you've started, since I'm relying a huge amount of projects on LXC. You can find my work here: https://github.com/dragoscirjan/vagrant-lxc-base-boxes.
However, while playing with the centos7 box (which always managed to give me head aches (from network not starting right (or not letting me change the ssh key) to lxc-attach not performing right)) got me to the following. (too many parenthesis right?)
Please tell me you understand more than I do from this. I am in a desperate need to make centos7 work.