LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2017, 11:40 PM   #1
poplinux
Member
 
Registered: May 2012
Posts: 111

Rep: Reputation: Disabled
How to create my own LXC rootfs?


Dear Sir.

Yesterday, I was started the LXC on ubuntu.

I was created lxc container on my pc. It is good.



Code:
$ > sudo lxc-create -t download -n u1 -- -d ubuntu -r zesty -a amd64
lxc-create command are automaticaly download the "zesty rootfs" to my pc.

But i want to create my OWN rootfs. that compiled by me.(Like Linux From Scarch)

How can craete eht own rootfs and register to lxc ???

please advise to me.

Thank you.

Last edited by poplinux; 05-17-2017 at 11:41 PM.
 
Old 06-04-2017, 05:04 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,993

Rep: Reputation: Disabled
Hello,

Quote:
Originally Posted by poplinux View Post
But i want to create my OWN rootfs. that compiled by me.(Like Linux From Scarch)

How can craete eht own rootfs and register to lxc???
if you want to create a new template (lets call it lxc-poplinux, as you have used lxc-ubuntu in your example), you could take inspiration from the existing ones. Then you could request to have it included in the next lxc release writing to the mailing list as indicated in this page. That is certainly not a simple thing to do and I assume that the developers will be picky about the quality of your template and I am not even sure that they would accept it.

But what you could do then is make it available yourself to interested people, e.g. to LFS users if this is an LFS template.

Good luck.

Last edited by Didier Spaier; 06-04-2017 at 05:26 PM.
 
Old 06-04-2017, 05:20 PM   #3
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,829

Rep: Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736Reputation: 1736
Or, you could search on the internet for how to build your own LOCAL ONLY templates. A duckduckgo search should turn up some interesting reads: https://wiki.pcprobleemloos.nl/using...chine_template for example.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
create mini rootfs current and old slackware sndwvs Slackware - ARM 9 03-02-2019 03:39 AM
[SOLVED] LXC rootfs upnort Linux - Containers 3 03-26-2017 06:49 PM
LXer: How to create and manage LXC containers on Ubuntu LXer Syndicated Linux News 0 10-29-2014 07:51 AM
Rootfs twice techux Linux - General 8 07-10-2013 07:40 PM
Using an ISO image as rootfs for a LXC alphy Linux - Virtualization and Cloud 0 07-22-2011 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:52 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