LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2021, 03:46 AM   #1
jayjayjay
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Rep: Reputation: Disabled
Deployment on a bare metal hardware


Hello All,

Sorry this might be a newbie question, would anyone be able to point me out to resources on how I can deploy an image on a bare metal hardware? The image would contain a linux distro, some additional installed applications. I am looking at being able to deploy without using kvm, esxi, or any other virtualization. would that be possible? or do i have to install manually using some scripts?
 
Old 04-12-2021, 04:40 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Most people here run their Linux on bare hardware! They tend to use virtualisation mainly for a Windows guest to play games on. To install Linux, all you need to do is download an image, burn it onto an optical disc (most modern images need a DVD rather than a CD) or copy it onto a memory stick, and then boot from it. You'll be guided through the process of installation. How much guidance you get depends on the distro. A newbie-oriented distro like Ubuntu or Mint will practically do it all for you.

If you mean running Linux without installing it, again most installation images will run "live" in this way.

Last edited by hazel; 04-12-2021 at 04:41 AM.
 
Old 04-12-2021, 04:56 AM   #3
jayjayjay
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for your response. What I'm particularly looking for is be able to reuse an updated installation image (e.g. ubuntu, plus new os configurations, plus new installed applications) and use the image on multiple bare metal hardware instead of installing the os and adding the os configs and new app installations manually or thru a script. I'm thinking of clonezilla but not sure if this is the appropriate use-case for it. TIA
 
Old 04-12-2021, 05:08 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
What about installing it onto a memory stick then? You'd need a fairly large one for a complete installation with lots of applications, but the thing would be updateable just like a hard drive installation. You could carry it about in your pocket and use it on any machine, even a Windows one.
 
Old 04-12-2021, 05:58 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,421
Blog Entries: 7

Rep: Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535
Deployment on a bare metal hardware

man dd
 
Old 04-12-2021, 06:38 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Quote:
Originally Posted by jayjayjay View Post
Thank you for your response. What I'm particularly looking for is be able to reuse an updated installation image (e.g. ubuntu, plus new os configurations, plus new installed applications) and use the image on multiple bare metal hardware instead of installing the os and adding the os configs and new app installations manually or thru a script. I'm thinking of clonezilla but not sure if this is the appropriate use-case for it. TIA
clonezilla is absolutely a good possibility - depending on situation. dd is almost always the wrong tool except in forensics, which isn't you.

Where things get wrinkly is that you need to consider what scenario you will be deploying this image.
- disaster recovery; tick.
- concurrent deployment to several different machines ?. Nope.

Do you really want several machines with all the same IP addresses and hostnames ?. Same passwords and encryption keys ?. You getting the picture ?. This is why deployment tools were invented. I don't have a need for them but things like cobbler might be worth looking into. Depending on scope (i.e. how many machines), you might be better of just re-installing and have a script to install/config needed apps.
 
Old 04-12-2021, 01:37 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,327

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
Quote:
Originally Posted by jayjayjay View Post
Thank you for your response. What I'm particularly looking for is be able to reuse an updated installation image (e.g. ubuntu, plus new os configurations, plus new installed applications) and use the image on multiple bare metal hardware instead of installing the os and adding the os configs and new app installations manually or thru a script. I'm thinking of clonezilla but not sure if this is the appropriate use-case for it. TIA
You don't give any info about the source or destination hardware, drive sizes, etc.
This may be a good use for clonezilla dependent upon what the final goal is and hardware compatibility. Using dd may also be an option if you plan to be able to adjust partition location and sizes after the copy is complete.
 
Old 04-12-2021, 01:55 PM   #8
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,172

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
There used to be a nice tool for Ubuntu to take your installed OS and turn it into an .iso image that you could then easily install.
But now to customize the fuse filesystem takes doing it the hard way last I looked.

Depending on how many systems you are looking to install it on, you could look into setting up a PXE server to install from. Ubuntu will use RedHat kickstart options, but not all of them to install with last time I tried it. There is also the option to kickstart off USB without a server, then you just boot off the USB and let it read the kickstart file for all the install options and to run the post-install scrips.

But all of these may be overkill for you as making a backup image and restoring it can also work if the hardware is all similar.
 
Old 04-12-2021, 07:01 PM   #9
jayjayjay
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for all your responses. My goal is to be able to have a template image that I can use to distribute to customers. They will have the same hardware specifications. Ideally, it is in a usb file that will be bootable and it will deploy the image(linux distro, some os configs, additional apps). Would I be better off installing the linux os and applying scripts afterwards?
 
Old 04-12-2021, 08:10 PM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,327

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
Now that you have stated the intent to distribute the image to customers it definitely is not a task for dd or clonezilla. Each install will need tailored to the individual host and customer so one of the items mentioned in post #6 would be better for that. Installing it before distribution of the machine is one thing, providing the customer an image with install instructions is a different ballpark and one of the deployment tools would be a better choice. In fact a quick search for tools of that nature would be of benefit.

You definitely do not want to distribute a machine or image with user or site information already configured.

OTOH, doing a clean new install from a live iso followed by some configuration tweaking and package installs by script seems readily do-able.
 
1 members found this post helpful.
Old 04-12-2021, 08:20 PM   #11
jayjayjay
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for your very helpful response. You are right, after searching for resources, it seems a live iso and post install script would be the quickest and most ideal way to do it. I quickly looked into the deployment tools(foreman, cobbler, FIA), please correct me if i am wrong, it seems to need a deployment server or is targeting to deploy over the network. Our customer machine ideally should not be connected to outside network and we are planning to do deployment only thru dvd or flash drive. are there deployment tools for this kind of use cases?
 
Old 04-13-2021, 03:57 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
I know that AntiX has software for making master iso images for installation from your current system. See for example https://antix-skidoo.github.io/archi...iso-t7072.html. Maybe other distros have something similar.
 
Old 04-13-2021, 06:46 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
You apparently want to remaster an instaslled system. The software mentioned in one of the posts above for Ubuntu (derivatives) was called 'remasterwys'. This was a one man project, he asked for help, didn't get it so was smart enough to quit. There is similar software such as Systemback which is also limited also to the Ubuntu derivatives.

You can always use the squashfs tools though it is a bit more complicated.
 
  


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
LXer: Renewed Interest in OpenStack Bare Metal Project Ironic, as Software Moves Closer to Hardware LXer Syndicated Linux News 0 08-07-2020 07:33 AM
LXer: Methods of Linux Bare Metal Restore and Disaster Recovery LXer Syndicated Linux News 0 08-06-2006 08:21 PM
PXE bare metal provisioning kd93088 Red Hat 1 08-07-2005 08:58 AM
Can I do a Bare Metal Restore? bob151 Linux - Software 1 04-14-2005 06:41 PM
Bare-metal restore problems with Redhat ES 3.0 robthky Linux - General 0 08-12-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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