Bug 1608335

Summary: lxc templates' problem ? - initial passwords not set up
Product: [Fedora] Fedora EPEL Reporter: lejeczek <peljasz>
Component: lxcAssignee: Thomas Moschny <thomas.moschny>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: admiller, karlthered, sagarun, silas, thomas.moschny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lejeczek 2018-07-25 10:33:33 UTC
Description of problem:

On Centos 7.5 + lxc 1.0.11 I do this:

$ lxc-create -t centos --dir /__.aLocalStorages/0/X-OS/lxc/rhel-work1-lxc -n rhel-work1-lxc
...
...
0 package files removed
Update finished
Copy /var/cache/lxc/centos/x86_64/7/rootfs to /__.aLocalStorages/0/X-OS/lxc/rhel-work1-lxc ... 
Copying rootfs to /__.aLocalStorages/0/X-OS/lxc/rhel-work1-lxc ...
sed: can't read /__.aLocalStorages/0/X-OS/lxc/rhel-work1-lxc/etc/init/tty.conf: No such file or directory
Storing root password in '/var/lib/lxc/rhel-work1-lxc/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 /__.aLocalStorages/0/X-OS/lxc/rhel-work1-lxc/etc/rc.sysinit: No such file or directory
sed: can't read /__.aLocalStorages/0/X-OS/lxc/rhel-work1-lxc/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.
...

many thanks.
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info: