Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use the pre compiled base from other sources. #57

Closed
mzs114 opened this issue Dec 17, 2015 · 5 comments
Assignees

Comments

@mzs114
Copy link

@mzs114 mzs114 commented Dec 17, 2015

Hi,

For using CBSD on a new machine you need to have internet, else you need to copy /usr/src to /path/src/<freebsd-version>/src, and compile.

Some users prefer to avoid compiling and use what is built.
Provide a provision like ezjail-admin where you can use the freebsd-dist directory from a location, which has doc.txz, kernel.txz, ports.txz, base.txz, games.txz, lib32.txz, src.txz.

With an optical disk it would be like following to create a base jail:

# mount_cd9660 /dev/cd0 /mnt/

# ezjail-admin install -h file:///mnt/usr/freebsd-dist/

To install the man pages we can use -m.

# ezjail-admin install -m -h file:///mnt/usr/freebsd-dist/

Now I can use this to create jails.
This will help people who don't have internet or a fast internet link(majority of the world falls into this category).

@olevole olevole self-assigned this Dec 17, 2015
@mzs114

This comment has been minimized.

Copy link
Author

@mzs114 mzs114 commented Dec 19, 2015

Ok, after reading the PS under #52(to use our own repo), I tried extracting the base.txz by creating a new directory /path/basejail/base_amd64_amd64_10.2/ on a new installation of CBSD.

# tar xJf /mnt/usr/freebsd-dist/base.txz -C /path/basejail/base_amd64_amd64_10.2/

This worked!
I could list the base and create new jails:

# cbsd basels
NAME  ARCH   TARGET_ARCH  VER
base  amd64  amd64        10.2

Please close the ticket if this is ok.

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Dec 19, 2015

Hi! Thanks for feedback.
This ticket is interesting because it is the second one: #52
I probably make possible to obtain a minimum base of working copy (ie, from / environment) in the next version of CBSD.

@mzs114

This comment has been minimized.

Copy link
Author

@mzs114 mzs114 commented Dec 20, 2015

Thanks!
Let us know if you would like some testing.
I also tried changing the repo value to file:///mnt/usr/freebsd-dist/ but it did not work.

Btw, I am proposing CBSD as a container management system where people are inclining towards Docker/CoreOS/Kubernetes, etc.

In my opinion CBSD does not introduce new layers of management, it makes use of the good old tools(rsync, zfs, etc).

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jan 21, 2016

Stage1/2 done (within 79c51fe ): Implement populate base from current system. No source tree or object file needed. This work only if the version of container == base system version

Stage2/2: implement local repo, documentation on site: work in progress.

olevole added a commit that referenced this issue Apr 23, 2016
… specify path to archve ( #57 ); bhyve fixes: soft shutdown
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Apr 23, 2016

Hello.

Summarily: implement in two ways:

  1. Populate base directory from existing master-host environment (only if version of master-host and jail is equal. No internet connection required).
  2. Add user's input on get_base stage to be able to specify path for archive ( somewhere within this commit: 3ca1c87 ).

Will be included in CBSD 10.3.2.
Thanks for contribution's and any ideas/comments.

@olevole olevole closed this Apr 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.