https://github.com/tritondatacenter/centos-lx-brand-image-builder
Scripts used for creating an lx-brand CentOS image
https://github.com/tritondatacenter/centos-lx-brand-image-builder
centos joyent lx-brand smartos triton
Last synced: 2 months ago
JSON representation
Scripts used for creating an lx-brand CentOS image
- Host: GitHub
- URL: https://github.com/tritondatacenter/centos-lx-brand-image-builder
- Owner: TritonDataCenter
- License: mpl-2.0
- Created: 2015-03-09T21:04:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-05T00:24:48.000Z (over 4 years ago)
- Last Synced: 2025-03-22T02:41:32.388Z (3 months ago)
- Topics: centos, joyent, lx-brand, smartos, triton
- Language: Shell
- Homepage: https://docs.joyent.com/images/container-native-linux
- Size: 112 KB
- Stars: 12
- Watchers: 13
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CentOS lx-brand Image Builder
[](https://travis-ci.org/joyent/centos-lx-brand-image-builder) (shellcheck)
This is a collection of scripts used for creating an LX-brand CentOS image.
## Requirements
In order to use these scripts you'll need:
- A CentOS running in a KVM virtual machine or bare metal (required for the `install` script) with git installed. Running `install` in a CentOs lx-brand zone is not supported. The major version of the CentOS machine you use to run the `install` script must be the same as the version you intend to install in the chroot directory (e.g., if you want to install CentOS 6, your host machine should also be CentOS 6)
- A SmartOS (or SDC headnode) install (required for the `create-lx-image` script)## Usage
### Create a CentOS install tarball via the `install` script
On a CentOS 6.x machine, do the following:
1. Clone this repo to your CentOS machine: `git clone https://github.com/joyent/centos-lx-brand-image-builder`
2. Change to the repo directoru: `cd centos-lx-brand-image-builder`
3. Run `./install -d -m -i -p -u ` to install CentOS 6.X in a given directory. This will create a tarball of the installation in your working directory (named `-$YYMMDD.tar.gz`). See ./install -h for detailed usage.### Create an lx brand image with the `create-lx-image` script
On a SmartOS in the global zone.
1. Clone this repo (if you have git installed) or download and upack it
2. Copy the tarball you created above to your SmartOS machine or SDC headnode and run `./create-lx-image -t /full/path/to/-.tar.gz` (substituting the name of your tar file). This will create the image file and manifest.