<div dir="ltr"><div class="gmail_extra">







<p class="">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.</p><p class="">I am trying to setup LXC container on a SLES  11SP3 host.<br></p><p class="">Since there is no template for SLES I have to use the openSuse template that comes with the install.</p>
<p class="">Here are the steps I have taken.  But I am seeing failure.</p><p class="">small-adp-sec:~ # lxc-checkconfig<br></p>
<p class="">--- Namespaces ---</p>
<p class="">Namespaces: enabled</p>
<p class="">Utsname namespace: enabled</p>
<p class="">Ipc namespace: enabled</p>
<p class="">Pid namespace: enabled</p>
<p class="">User namespace: enabled</p>
<p class="">Network namespace: enabled</p>
<p class="">Multiple /dev/pts instances: enabled</p>
<p class=""><br></p>
<p class="">--- Control groups ---</p>
<p class="">Cgroup: enabled</p>
<p class="">Cgroup clone_children flag: enabled</p>
<p class="">Cgroup device: enabled</p>
<p class="">Cgroup sched: enabled</p>
<p class="">Cgroup cpu account: enabled</p>
<p class="">Cgroup memory controller: enabled</p>
<p class="">Cgroup cpuset: enabled</p>
<p class=""><br></p>
<p class="">--- Misc ---</p>
<p class="">Veth pair device: enabled</p>
<p class="">Macvlan: enabled</p>
<p class="">Vlan: enabled</p>
<p class="">File capabilities: disabled</p>
<p class="">you need to boot your kernel with file_caps parameter to enable File capabilities (not required if using lxc under root user, as recommended).</p>
<p class=""><br></p>
<p class="">Note : Before booting a new kernel, you can check its configuration</p>
<p class="">usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig</p>
<p class=""><br></p>
<p class="">=========================================================================</p>
<p class="">small-adp-sec:~ # ls /usr/share/lxc/templates/</p>
<p class="">lxc-altlinux  lxc-archlinux  lxc-busybox  lxc-debian  lxc-fedora  lxc-lenny  lxc-opensuse  lxc-sles  lxc-sshd  lxc-ubuntu  lxc-ubuntu-cloud</p>
<p class="">small-adp-sec:~ # cat lxc_vps0.conf</p>
<p class="">lxc.utsname = vps0</p>
<p class="">lxc.network.type = veth</p>
<p class="">lxc.network.flags = up</p>
<p class="">lxc.network.link = br0</p>
<p class="">lxc.network.hwaddr = 00:30:6E:08:EC:80</p>
<p class="">lxc.network.ipv4 = 192.168.1.10</p>
<p class=""><span class=""><a href="http://lxc.network.name/">lxc.network.name</a></span><span class=""> = eth0</span></p>
<p class="">small-adp-sec:~ #</p>
<p class="">small-adp-sec:~ # rm -rf /var/cache/lxc</p>
<p class="">small-adp-sec:~ # lxc-create -t opensuse -f lxc_vps0.conf  -n vps0</p>
<p class="">/usr/share/lxc/templates/lxc-opensuse is /usr/share/lxc/templates/lxc-opensuse</p>
<p class="">Checking cache download in /var/cache/lxc/opensuse/rootfs-x86_64 ...</p>
<p class="">Downloading opensuse minimal ...</p>
<p class="">Warning: Repository 'update' appears to be outdated. Consider using a different mirror or server.</p>
<p class=""><br></p>
<p class="">Loading repository data...</p>
<p class="">Warning: Repository 'update' appears to be outdated. Consider using a different mirror or server.</p>
<p class="">Reading installed packages...</p>
<p class="">Resolving package dependencies...</p>
<p class="">initializing /var/cache/lxc/opensuse/partial-x86_64/.srcfiles.cache ...</p>
<p class="">/usr/lib/build/createrpmdeps /var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/repo-oss/suse/x86_64</p>
<p class="">/usr/lib/build/createrpmdeps /var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/repo-oss/suse/noarch</p>
<p class="">expanding package dependencies...</p>
<p class="">expansion error</p>
<p class="">  nothing provides aaa_base</p>
<p class="">  nothing provides bash</p>
<p class="">  nothing provides coreutils</p>
<p class="">  nothing provides libc.so.6()(64bit) needed by diffutils</p>
<p class="">  nothing provides libc.so.6(GLIBC_2.14)(64bit) needed by diffutils</p>
<p class="">  nothing provides libc.so.6(GL</p>
<p class="">…..</p>
<p class="">…..</p>
<p class="">….</p>
<p class="">…….</p>
<p class="">chroot: failed to run command `/usr/bin/zypper': No such file or directory</p>
<p class="">chroot: failed to run command `/usr/bin/zypper': No such file or directory</p>
<p class="">chroot: failed to run command `rpm': No such file or directory</p>
<p class="">umount: /var/cache/lxc/opensuse/partial-x86_64/proc: not mounted</p>
<p class="">ln: failed to create symbolic link `/var/cache/lxc/opensuse/partial-x86_64/etc/mtab': No such file or directory</p>
<p class="">ln: failed to create symbolic link `/var/cache/lxc/opensuse/partial-x86_64/var/run': No such file or directory</p>
<p class="">Failed to download the rootfs, aborting.</p>
<p class="">Failed to download 'opensuse base'</p>
<p class="">failed to install opensuse</p>
<p class="">lxc-create: failed to execute template 'opensuse'</p>
<p class="">Delete subvolume '/var/lib/lxc/vps0/rootfs'</p>
<p class="">lxc-create: aborted</p>
<p class=""><br></p>
<p class="">========================================================</p></div></div>