SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to run slackware64-15 as an LXC container in a gentoo host. It always fails with:
Code:
# lxc-create --name slack02 --template=slackware
/usr/share/lxc/templates/lxc-slackware: line 717: type: slackpkg: not found
'slackpkg' command is missing.
which makes sense, since i don't have slackpkg installed in gentoo. (I know it'll pull down debootstrap if i install Debian templates.)
So can i just grab slackpkg from the mirrors? I have no container's rootfs yet, so where do i put it?
[In another incarnation i installed slackware as a kvm/qemu vm, loopmounted the file-based .img, copied it to rootfs/ and gave it a go but it's using the host's init (OpenRC) instead of the container's (sysv).]
displays a colon separated list of directories where your system looks for executable programs. Putting slackpkg in one of those directories will allow it to be found when executed by the lxc script... If slackpkg needs something that is located in a different path on gentoo than where it would be on slackware, you might have to create some symbolic links to help slackpkg find the gentoo resource.
Last edited by slac-in-the-box; 11-23-2022 at 03:20 PM.
I'm trying to run slackware64-15 as an LXC container in a gentoo host. It always fails with:
Code:
# lxc-create --name slack02 --template=slackware
/usr/share/lxc/templates/lxc-slackware: line 717: type: slackpkg: not found
'slackpkg' command is missing.
which makes sense, since i don't have slackpkg installed in gentoo. (I know it'll pull down debootstrap if i install Debian templates.)
So can i just grab slackpkg from the mirrors? I have no container's rootfs yet, so where do i put it?
[In another incarnation i installed slackware as a kvm/qemu vm, loopmounted the file-based .img, copied it to rootfs/ and gave it a go but it's using the host's init (OpenRC) instead of the container's (sysv).]
I do not think that /usr/share/lxc/templates/lxc-slackware is supposed to be used in a Gentoo Linux operating system.
Because it uses the Slackware package tools, slackpkg or installpkg, etc. So, I believe that's supposed to be used in a Slackware host.
Anyway, I will never understand why people refuses to understand that the LXC containers aren't virtual machines and why they insists to run CentOS under Slackware or Slackware under Gentoo, as LXC containers...
Last edited by LuckyCyborg; 11-23-2022 at 03:59 PM.
displays a colon separated list of directories where your system looks for executable programs. Putting slackpkg in one of those directories will allow it to be found when executed by the lxc script... If slackpkg needs something that is located in a different path on gentoo than where it would be on slackware, you might have to create some symbolic links to help slackpkg find the gentoo resource.
I do not think that /usr/share/lxc/templates/lxc-slackware is supposed to be used in a Gentoo Linux operating system.
Because it uses the Slackware package tools, slackpkg or installpkg, etc. So, I believe that's supposed to be used in a Slackware host.
Anyway, I will never understand why people refuses to understand that the LXC containers aren't virtual machines and why they insists to run CentOS under Slackware or Slackware under Gentoo, as LXC containers...
You can create other OS images, especially Debian-based, just fine. It's a bit akward that the slackware template distributed by gentoo was created to run on a slackware host (but i'll look into that).
Trying the same ina Devuan host yields the same result, so it may be packaging related.
I'd explain why i want a different host OS but it's besides the point.
Care to suggest reading material as to how to create a slackware template?
with /mnt/slack being the loopmounted .img file from the vm i had previously created. But then i got
Code:
cat: /etc/slackware-version: No such file or directory
so i guess there's more to it, like LuckyCyborg implied.
well, presuming that you did not chroot into /mnt/slac, your "cat /etc/slackware-version" was looking in gentoo's /etc: root (/) is gentoo host, + etc, takes you to gentoo's /etc. to get to slackware's the way you have it mounted you would have to try
Code:
cat /mnt/slac/etc/slackware-version
To install onto gentoo host, slackware packages, you can use Pat's installpkg script at /sbin/installpkg (on a slackware system, so at /mnt/slac/sbin/installpkg the way you have it setup)... you could download slackpkg from nearby mirror and install it with that installpkg script.
You have to install slackpkg on gentoo since the template is using it.
Or you can manually download your slackware directory tree on the gentoo host, and then modify the slackware-lxc template to use the installpkg script to install the same packages in the template's list of packages...
I have only used lxc to mirror an all slackware bare-metal network stack comprised of a dozen servers, for sandbox and study without having to have separate machines in sandbox for every bare metal machine in the stack... exeperiment in lxc, and then put into bare metal production, but all is slackware, and not mixed os host/client lxc setup, so LuckyCyborg is right in caution, and it might not be stable... But linux is linux, and its amazing, and you'll probably get it going with a few tweaks to gentoo.
Last edited by slac-in-the-box; 11-24-2022 at 05:19 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.