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 08-30-2021, 04:27 PM   #1
petejc
Member
 
Registered: Apr 2019
Distribution: Slackware
Posts: 134

Rep: Reputation: Disabled
Slackware-current, migration from LXC 2 to LXC 4


Any ideas on the least painful way to migrate from LXC2 to LXC4? On updating my machine today I, unusually, found a number of issues. The main one was that LXC had been updated to LXC 4 and it barfed on the config files and would not start and of the containers.

Googling did show a lxc utility to update the config files, but I had no luck with that - perhaps I was not using it correctly? I also had some issue with library dependencies, I suspect unrelated. Given that I needed to get stuff done I rolled back to a pre-update snapshot (I'm using btrfs for root).

Any thoughts on the least painful way to update my lxc configuration? Googling seemed to show very little on the topic which I found strange. Unfortunately it does not look like I could run lxc 2 and lxc 4 side by side to ease the transition.

My thoughts are holding off updates and basically waiting for Slackware 15 to be formally released and dual booting to a fresh install? Or perhaps blacklisting lxc in slackpkg - assuming that I can fix the other library problems.

Any better ideas?

Pete
 
Old 08-30-2021, 04:59 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I'm not using LXC 4.x yet but this recent thread has some insights:

https://www.linuxquestions.org/quest...nt-4175697576/
 
1 members found this post helpful.
Old 08-31-2021, 05:05 AM   #3
oily
Member
 
Registered: Jun 2021
Location: UK
Distribution: Slackware64 14.2, 15.0 & -current, CentOS 7, NetBSD 9.2
Posts: 41

Rep: Reputation: 44
There have been quite a few syntax changes between LXC 2 and 4, some of them really minor, for example:
Code:
lxc.utsname
becomes
Code:
lxc.uts.name
while
Code:
lxc.mount
becomes
Code:
lxc.mount.fstab
and
Quote:
lxc.tty
becomes
Code:
lxc.tty.max
The man pages are quite helpful so you should be able to identify most if not all of the changes with them. It's also useful to start containers in foreground mode, you'll get more info on errors that way. You may need to iterate a few times.
 
1 members found this post helpful.
Old 08-31-2021, 01:52 PM   #4
petejc
Member
 
Registered: Apr 2019
Distribution: Slackware
Posts: 134

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Chuck56 View Post
I'm not using LXC 4.x yet but this recent thread has some insights:

https://www.linuxquestions.org/quest...nt-4175697576/
Thanks, I spotted that but it looked like a discussion regarding patching slackware lxc for systemd and its impact on elogind - which is not my pressing issue.
 
Old 08-31-2021, 01:54 PM   #5
petejc
Member
 
Registered: Apr 2019
Distribution: Slackware
Posts: 134

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by oily View Post
There have been quite a few syntax changes between LXC 2 and 4, some of them really minor, for example:
Code:
lxc.utsname
becomes
Code:
lxc.uts.name
while
Code:
lxc.mount
becomes
Code:
lxc.mount.fstab
and becomes
Code:
lxc.tty.max
The man pages are quite helpful so you should be able to identify most if not all of the changes with them. It's also useful to start containers in foreground mode, you'll get more info on errors that way. You may need to iterate a few times.
Thanks. I thought someone would have written a quick start at some point. But looking at the manpages combined with the errors, as you suggest, seems to be a plan.

Pity I could not run 2 and 4 alongside - but that is an odd use case that only is useful for migration.
 
  


Reply

Tags
lxc, slackware



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] File lxc-slackware in package lxc needs updated drumz Slackware 7 11-13-2021 02:13 PM
LXC 4.0.x and libcgroups for Slackware-current oily Slackware 25 08-31-2021 03:37 AM
[SOLVED] "lxc list" vs "lxc-ls" yknivag Linux - Virtualization and Cloud 1 03-09-2017 05:53 AM
IMAP Mailbox Migration utility for Gmail/iCloud and Calendar Migration tips TB0ne LinuxQuestions.org Member Success Stories 0 03-10-2013 12:33 PM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 05:15 AM

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

All times are GMT -5. The time now is 02:01 PM.

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