Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxc-centos on centos 7 #11

Open
hkdd opened this issue Sep 3, 2018 · 0 comments
Open

lxc-centos on centos 7 #11

hkdd opened this issue Sep 3, 2018 · 0 comments

Comments

@hkdd
Copy link

hkdd commented Sep 3, 2018

This is what I get from: lxc-create -n c10 -t /path/to/lxc-template
I'm also unable to login with the root password from /var/lib/lxc/c10/tmp_root_pass

Copy /var/cache/lxc/centos/x86_64/7/rootfs to /var/lib/lxc/c10/rootfs ...
Copying rootfs to /var/lib/lxc/c10/rootfs ...
sed: can't read /var/lib/lxc/c10/rootfs/etc/init/tty.conf: No such file or directory
Storing root password in '/var/lib/lxc/c10/tmp_root_pass'
chpasswd: cannot open /etc/passwd
Expiring password for user root.
passwd: Libuser error at line: 413 - Error replacing `/etc/passwd': Permission denied.
passwd: Error
sed: can't read /var/lib/lxc/c10/rootfs/etc/rc.sysinit: No such file or directory
sed: can't read /var/lib/lxc/c10/rootfs/etc/rc.d/rc.sysinit: No such file or directory

Container rootfs and config have been created.
Edit the config file to check/enable networking setup.

The temporary root password is stored in:

    '/var/lib/lxc/c10/tmp_root_pass'

The root password is set up as expired and will require it to be changed
at first login, which you should do as soon as possible. If you lose the
root password or wish to change it without starting the container, you
can change it from the host by running the following command (which will
also reset the expired flag):

    chroot /var/lib/lxc/c10/rootfs passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant