[lxc-devel] ignore hidden container directories?
Harald Dunkel
harald.dunkel at aixigo.de
Tue Apr 14 11:42:23 UTC 2015
On 04/13/15 14:54, Serge Hallyn wrote:
> Can you give us an example?
>
Sure, here is a sample session:
# lxc-create -P /data1/lxc -n sample42 -t debian -- -r jessie
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/debian/rootfs-jessie-amd64 ...
Copying rootfs to /data1/lxc/sample42/rootfs...Generating locales (this might take a while)...
Generation complete.
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' overrides LSB defaults (empty).
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S).
update-rc.d: error: umountfs Default-Start contains no runlevels, aborting.
insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' overrides LSB defaults (0 6).
update-rc.d: error: cannot find a LSB script for hwclockfirst.sh
Creating SSH2 RSA key; this may take some time ...
2048 c8:93:d2:92:46:43:eb:c3:bc:e7:63:cb:76:3a:ef:24 /etc/ssh/ssh_host_rsa_key.pub (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 ed:3c:f9:fd:2e:5c:00:92:04:f0:ca:f6:77:79:ed:2d /etc/ssh/ssh_host_dsa_key.pub (DSA)
Creating SSH2 ECDSA key; this may take some time ...
256 d9:02:9b:3c:b5:a6:83:d1:3f:3b:72:05:80:1c:1a:eb /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)
Creating SSH2 ED25519 key; this may take some time ...
256 51:4c:e7:ba:18:5b:5f:07:4b:fd:56:6f:d8:e3:4d:18 /etc/ssh/ssh_host_ed25519_key.pub (ED25519)
Failed to read /proc/cmdline. Ignoring: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
Current default time zone: 'Europe/Paris'
Local time is now: Tue Apr 14 13:32:18 CEST 2015.
Universal Time is now: Tue Apr 14 11:32:18 UTC 2015.
Root password is 'root', please change !
# ls -l /data1/lxc
total 52
drwxrwx--- 3 root root 4096 Mar 20 13:35 ldap0
drwxr-xr-x 3 root root 4096 Mar 12 16:07 ldap2
:
:
-rw-r--r-- 1 root root 15682 Apr 14 10:53 lxc-monitord.log
-rwxr-xr-x 1 root root 2894 Sep 17 2014 new_container
drwxrwx--- 3 root root 4096 Apr 14 13:32 sample42
# mv sample42 .sample42.template
# lxc-ls -P /data1/lxc --fancy
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
-------------------------------------------------------------------
.sample42.template STOPPED - - - NO
ldap0 RUNNING 172.19.96.100 - auto BY-GROUP
ldap2 STOPPED - - auto NO
# ls -l /data1/lxc
total 48
drwxrwx--- 3 root root 4096 Mar 20 13:35 ldap0
drwxr-xr-x 3 root root 4096 Mar 12 16:07 ldap2
:
:
-rw-r--r-- 1 root root 15682 Apr 14 10:53 lxc-monitord.log
-rwxr-xr-x 1 root root 2894 Sep 17 2014 new_container
ls -l doesn't show .sample42.template, lxc-ls does.
Regards
Harri
More information about the lxc-devel
mailing list