LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-12-2021, 06:44 PM   #46
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239

First time I tried containers as well ;-)
Looks I got as far you, but using dhcp='yes' and lxc-4.0.11 etc. of current (as of Thursday).
Code:
bash-5.1$ sudo lxc-ls --fancy
NAME STATE   AUTOSTART GROUPS IPV4       IPV6 UNPRIVILEGED 
s6   RUNNING 0         -      10.0.3.125 -    false
Did you try ping (as suggested in https://docs.slackware.com/howtos:misc:lxc)? That worked at my end:
From inside the container:
Code:
rob@s6:~$ ping www.aileenbannatyne.co.uk
PING aileenbannatyne.co.uk (5.77.32.213) 56(84) bytes of data.
..
13 packets transmitted, 13 received, 0% packet loss, time 12014ms
from a terminal outside to the container:
Code:
bash-5.1$ ping 10.0.3.125
..
6 packets transmitted, 6 received, 0% packet loss, time 5100ms
not much more in there to go on-line with due to the minimal install...

Last edited by brobr; 11-12-2021 at 06:46 PM.
 
Old 11-13-2021, 11:29 AM   #47
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
went about redoing everything as there is lxc-4.0.11, seems to working now

looks like I'm where you're at, time to try "slackpkg install slackware64"
 
Old 11-13-2021, 11:55 AM   #48
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
not sure how to continue, from slackdocs doing "slackpkg install slackware64"

Quote:
slackpkg install slackware64

The package list is missing.
Before you install|upgrade|reinstall anything you need to run:

# slackpkg update
Quote:
slackpkg update
ERROR: Verification of the gpg signature on CHECKSUMS.md5
failed!
Quote:
slackpkg update gpg

Getting key from https://www.slackware.com/infra/keys/GPG-KEY
using mirror from lxc-create
Quote:
slackpkg update
ERROR: Verification of the gpg signature on CHECKSUMS.md5
failed!
Quote:
PRETTY_NAME="Slackware 15.0 x86_64"
 
Old 11-13-2021, 07:20 PM   #49
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
slackpkg issue solved, seems NOT use mirror from lxc-create but use this one http://ftp.slackware.com/pub/slackwa...are64-current/ which isn't in my slackware64-current mirrors?

Quote:
slackpkg install slackware64
running now, will post back after dust settles

EDIT:dust has settled, now have a 13.5 GiB slackware64-current container.

Last edited by glorsplitz; 11-13-2021 at 08:39 PM.
 
Old 11-20-2021, 04:03 PM   #50
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
aaa_elflibs still in lxc-slackware

Howdy LXC Slackers:

FWIW:

Code:
root@darkstar:~# date && uname -r && ls /var/lib/pkgtools/packages/lxc*
Sat Nov 20 13:53:25 PST 2021
5.15.3
/var/lib/pkgtools/packages/lxc-4.0.11-x86_64-3
Code:
root@darkstar:~# grep elflibs /usr/share/lxc/templates/lxc-slackware
aaa_elflibs

root@darkstar:~# slackpkg file-search aaa_elflibs

Looking for aaa_elflibs in package list. Please wait... DONE

No packages contains "aaa_elflibs" file.
Conclusion: safe to remove aaa_elflibs from lxc-slackware
 
Old 11-20-2021, 04:37 PM   #51
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Hmm, trying to run a gui acc. to howtos:misc:lxc but it ends with:

Code:
rob@s6:~$ ssh -Y rob@10.0.3.44 gimp
(rob@10.0.3.44) Password: 
Warning: No xauth data; using fake authentication data for X11 forwarding.
connect /tmp/.X11-unix/X0: No such file or directory
Cannot open display:
/tmp/.X11-unix/ exists, but X0 doesn't

an attempt with another, Qt-based program began with the same error:
Code:
connect /tmp/.X11-unix/X0: No such file or directory
qt.qpa.xcb: could not connect to display localhost:10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
error: XDG_RUNTIME_DIR not set in the environment.
What have I missed setting up?

(PS, s6 is the container from which the gui is run)

EDIT

found this advice on https://bbs.archlinux.org/viewtopic.php?id=200704 :
mount /tmp/.X11-unix as read-only
Code:
lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,ro,optional,create=dir
but still gives "Cannot open display: "; /tmp/.X11-unix/ is still empty

Last edited by brobr; 11-20-2021 at 04:56 PM.
 
Old 11-21-2021, 02:24 AM   #52
avian
Member
 
Registered: Aug 2014
Posts: 184

Rep: Reputation: Disabled
Quote:
Originally Posted by brobr View Post
but still gives "Cannot open display: "; /tmp/.X11-unix/ is still empty
This might be very off track (apologies if so), but in your /etc/ssh/sshd_config (within the container) have you enabled X11 forwarding? For example changing these two lines to be similar to the following?

Code:
X11Forwarding yes   
X11DisplayOffset 10

Last edited by avian; 11-21-2021 at 02:42 AM.
 
1 members found this post helpful.
Old 11-21-2021, 09:48 AM   #53
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
same here

brobr, that's funny, I decided to do the same, tried glxgears, kcalc, couple simple things and they worked.

Saw your post, tried gimp, didn't work, then tried glxgears, kcalc again and they didn't work, not sure what happened.

Thanks avian, we did what was said from the link brobr last posted, where it says "Running GUI Applications", didn't try "X11DisplayOffset 10".
 
Old 11-21-2021, 01:58 PM   #54
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
Originally Posted by avian View Post
This might be very off track (apologies if so), but in your /etc/ssh/sshd_config (within the container) have you enabled X11 forwarding? For example changing these two lines to be similar to the following?

Code:
X11Forwarding yes   
X11DisplayOffset 10
Thanks, avian; like glorsplitz said the `X11DisplayOffset 10` was not set. Anyway, enabling that did not help me. Had to restart X to test it (got temporarily /tmp/.X11/X0, but that has gone again).


EDIT: found another blog, GUI-From-an-LXC-Container-on-the-Host that seemed relevant; it also mentions the 'ro' addition to the `lxc.mount.entry = /tmp/.X11-unix` line in the config file, needed to keep the /tmp/.X11-unix/X0.
Then, when following the sequence sketched out in that blog, the display is found for the container and for the host via:
Code:
#env | grep -i display 
env | grep DISPLAY
This works at my end only on the host (gives: 'DISPLAY=:0.0'); on the container nothing (while 'env' gives a lot of output)

Last edited by brobr; 11-21-2021 at 05:24 PM.
 
Old 11-21-2021, 05:53 PM   #55
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Hmm, found on this bug report https://github.com/lxc/lxc/issues/1859 another way to start a gui:

This worked from host with xeyes, glxgears, gimp and jamulus -s as gui-app;-):
Code:
ssh user@containerIP
<passw>
DISPLAY=:0 <gui-app>
or from host,
Code:
ssh -Y user@containerIP DISPLAY=:0 <gui-app>
<passw>

From within the container the command 'DISPLAY=:0 <gui-app>' was enough.

For jamulus not to throw a "libGL error: MESA-LOADER: failed to retrieve device information" the following lines (from blog in previous post; control values via 'ls -l /dev/dri' ) needed to be in the lxc.config:
Quote:
lxc.cgroup.devices.allow = c 226:* rwm
lxc.mount.entry = /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
lxc.mount.entry = /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file

Last edited by brobr; 11-21-2021 at 06:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] new rc.* scripts added to -current in LXC container linuxtinker Slackware 1 06-16-2018 10:24 AM
[SOLVED] "lxc list" vs "lxc-ls" yknivag Linux - Virtualization and Cloud 1 03-09-2017 05:53 AM
Creating a CentoS 7 LXC container in an EC2 instance PeterSteele Linux - Virtualization and Cloud 2 08-12-2015 08:25 AM
script to get a lxc-container like iso of current. cod_liver_0il Slackware 1 09-10-2012 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration