[lxc-users] lxc-users Digest, Vol 71, Issue 4

Narahari Lakshminarayana itsme.narahari at gmail.com
Sat May 2 16:49:54 UTC 2015


>
> Ok. finally I got some time to retry this and get this to progress.  But I
> have hit some roadblocks.  I have pasted the log here.  Please take a min
> and advise what is possibly wrong.


 small-adp-sec:~ # lxc-checkconfig

--- Namespaces ---

Namespaces: enabled

Utsname namespace: enabled

Ipc namespace: enabled

Pid namespace: enabled

User namespace: enabled

Network namespace: enabled

Multiple /dev/pts instances: enabled


--- Control groups ---

Cgroup: enabled

Cgroup clone_children flag: enabled

Cgroup device: enabled

Cgroup sched: enabled

Cgroup cpu account: enabled

Cgroup memory controller: enabled

Cgroup cpuset: enabled


--- Misc ---

Veth pair device: enabled

Macvlan: enabled

Vlan: enabled

File capabilities: disabled

you need to boot your kernel with file_caps parameter to enable File
capabilities (not required if using lxc under root user, as recommended).


Note : Before booting a new kernel, you can check its configuration

usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig


=========================================================================

small-adp-sec:~ # ls /usr/share/lxc/templates/

lxc-altlinux  lxc-archlinux  lxc-busybox  lxc-debian  lxc-fedora
lxc-lenny  lxc-opensuse  lxc-sles  lxc-sshd  lxc-ubuntu  lxc-ubuntu-cloud

small-adp-sec:~ # cat lxc_vps0.conf

lxc.utsname = vps0

lxc.network.type = veth

lxc.network.flags = up

lxc.network.link = br0

lxc.network.hwaddr = 00:30:6E:08:EC:80

lxc.network.ipv4 = 192.168.1.10

lxc.network.name = eth0

small-adp-sec:~ #

small-adp-sec:~ # rm -rf /var/cache/lxc

small-adp-sec:~ # lxc-create -t opensuse -f lxc_vps0.conf  -n vps0

/usr/share/lxc/templates/lxc-opensuse is
/usr/share/lxc/templates/lxc-opensuse

Checking cache download in /var/cache/lxc/opensuse/rootfs-x86_64 ...

Downloading opensuse minimal ...

Warning: Repository 'update' appears to be outdated. Consider using a
different mirror or server.


Loading repository data...

Warning: Repository 'update' appears to be outdated. Consider using a
different mirror or server.

Reading installed packages...

Resolving package dependencies...

initializing /var/cache/lxc/opensuse/partial-x86_64/.srcfiles.cache ...

/usr/lib/build/createrpmdeps
/var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/repo-oss/suse/x86_64

/usr/lib/build/createrpmdeps
/var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/repo-oss/suse/noarch

expanding package dependencies...

expansion error

  nothing provides aaa_base

  nothing provides bash

  nothing provides coreutils

  nothing provides libc.so.6()(64bit) needed by diffutils

  nothing provides libc.so.6(GLIBC_2.14)(64bit) needed by diffutils

  nothing provides libc.so.6(GL

…..

…..

….

…….

chroot: failed to run command `/usr/bin/zypper': No such file or directory

chroot: failed to run command `/usr/bin/zypper': No such file or directory

chroot: failed to run command `rpm': No such file or directory

umount: /var/cache/lxc/opensuse/partial-x86_64/proc: not mounted

ln: failed to create symbolic link
`/var/cache/lxc/opensuse/partial-x86_64/etc/mtab': No such file or directory

ln: failed to create symbolic link
`/var/cache/lxc/opensuse/partial-x86_64/var/run': No such file or directory

Failed to download the rootfs, aborting.

Failed to download 'opensuse base'

failed to install opensuse

lxc-create: failed to execute template 'opensuse'

Delete subvolume '/var/lib/lxc/vps0/rootfs'

lxc-create: aborted


========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150502/2beea9a8/attachment.html>


More information about the lxc-users mailing list