How to create your own data center-specific Linux image with Cubic

3 years ago 240

If you've ever wanted to make a customized Linux representation to beryllium utilized successful your information halfway deployments, Cubic is present to marque that occupation considerably easier.

IT Technician with a Laptop Computer and Black Male Engineer Colleague are Talking successful  Data Center portion    Walking Next to Server Racks. Running Diagnostics oregon  Doing Maintenance Work.

Image: Getty Images/iStockphoto

At this point, you astir apt usage Linux successful your information center. It's an inevitability that you cannot combat these days. And that's a precise bully happening due to the fact that Linux is incredibly powerful, flexible and (without question) powers truthful overmuch of what we beryllium on. 

SEE: 5 Linux server distributions you should beryllium using (TechRepublic Premium)

If you're deploying to a batch of servers successful your information center, the thought of installing a basal server organisation and past adding everything you need, 1 server astatine a time, tin beryllium a spot of a daunting task. That's understandable, particularly erstwhile those servers mightiness fig successful the hundreds. And if you're not utilizing virtual machines for those deployments, you're astir apt looking for a  mode to marque those rollouts a spot easier. 

Cubic mightiness beryllium the answer.

Cubic makes it casual to rotation up your ain Linux customized image, based connected a known distribution, and make a bootable ISO truthful you tin instal the nonstop mentation of Linux you need. Cubic is simply a precise casual to usage GUI instrumentality

I privation to show however this is done, truthful you tin make your ain representation to beryllium installed connected your information halfway servers. I'll show by creating an ISO representation based connected Ubuntu Server 21.10, but you tin usage immoderate representation you like.

What you'll need

The lone things you'll request for this are a moving lawsuit of a Debian-based Linux desktop, a downloaded ISO representation of a Linux organisation to basal your representation on, and a idiosyncratic with sudo privileges. 

How to instal Cubic

The archetypal happening we indispensable bash is instal Cubic. To bash this, log into a Debian-based desktop and adhd the indispensable repository with:

sudo add-apt-repository ppa:cubic-wizard/release

Next, update apt and past instal Cubic with:

sudo apt-get update sudo apt-get instal cubic -y

Once Cubic is installed, you'll find the launcher successful your desktop menu. Click to motorboat it, and you're acceptable to make your image.

How to make your customized representation

From the main Cubic model (Figure A), click the folder icon and then, from wrong your record manager, make and prime a caller directory to beryllium utilized by the exertion to make and location your customized images.

Figure A

cubica.jpg

Select a task directory for Cubic to use.

Click Next and then, successful the adjacent model (Figure B), you indispensable prime the ISO representation the customized mentation volition beryllium based on. After selecting the image, each fields volition beryllium auto-populated. You tin past customize those connected the close side.

Figure B

cubicb.jpg

Select the basal representation for Cubic to usage to physique your customized ISO.

Click Next and you volition yet extremity up astatine a chroot terminal punctual (Figure C).

Figure C

cubicc.jpg

Cubic dumps you into a terminal window, wherever you tin customize the image.

At this point, you tin commencement adding bundle and customize the representation to your nonstop specifications. Everything present is done from the terminal window. Say, for example, you privation the ISO to see a implicit LAMP server. First, contented the command:

apt-get update

Then instal the LAMP server with:

apt-get instal lamp-server^

You mightiness privation to instal a circumstantial mentation of PHP oregon instrumentality attraction of immoderate fig of different customizations for your image. One happening to enactment is that the chroot situation is not booted with systemd initialized, truthful you can't commencement oregon alteration services. Because of that, you can't bash immoderate enactment wrong databases. You can, however, resistance and driblet files from your record manager to the chroot situation and edit immoderate configuration files (with the nano editor).

Once you've completed this step, click Next and Cubic volition past contiguous you with a model that allows for the removal of packages for a minimal installation (Figure D).

Figure D

cubicd.jpg

Selecting packages for removal truthful Cubic tin besides make a minimal installation.

Once you've selected the packages to beryllium removed (if any), click Next and past prime which kernel volition beryllium utilized for the image. You'll past beryllium required to prime the compression utilized for the representation (Figure E).

Figure E

cubice.jpg

Choose your compression wisely.

I would suggest going with the default compression (gzip) to beryllium definite the unrecorded representation volition relation properly. Click Generate and Cubic volition make your customized ISO image. When the process completes, you'll beryllium presented with a model (Figure F) that details what Cubic has done and wherever you tin find your caller customized ISO image.

Figure F

cubicf.jpg

Your customized representation has been created by Cubic.

At this point, you tin either transcript that representation to a server to beryllium downloaded astatine will, oregon to a USB thrust and commencement deploying it to your information halfway servers.

Congratulations, you've conscionable made your Linux deployments a spot much efficient.

Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.

Open Source Weekly Newsletter

You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays

Sign up today

Also spot

Read Entire Article