Score:0

Can I create a OS iso image with current state on server ubuntu22.04?

us flag

I have been working on Ubuntu for a while and I was wondering if there is a way to create an image (ISO) of the current system with all its software and files, basically something very similar to what AWS or other cloud services offer where we can save the state of a machine. Now if I were to load this ISO on another machine, it would ideally be an exact copy of the software, files, etc on a new machine.

I tried this with the blog here. https://itslinuxfoss.com/how-to-create-an-iso-from-current-installation-in-ubuntu-22-04/

It didn't work and only backed up the files. I also tried to load the ISO on the VM directly that didn't work as well.

Any help is appreciated in achieving this! Thank you.

sudodus avatar
jp flag
If the target computers are rather similar, and/or Linux can use the built-in hardware drivers, you can clone the installed system and use it in another computer. It is a good idea to prepare the system for an OEM system installation in order to make it easy to give the target (cloned) copies unique identities. See [this link about OEM](https://help.ubuntu.com/community/Ubuntu_OEM_Installer_Overview) and [this link about a compressed image of Ubuntu Server](https://ubuntuforums.org/showthread.php?t=2474692).
Van Wilder avatar
us flag
What if the target computers have a different hardware? How do people make customized installation images of ubuntu for themselves with all the software etc?
sudodus avatar
jp flag
A fair amount of variations of hardware can be managed by the Linux built-in hardware drivers. Typical exceptions: [newer] nvidia graphics, broadcom wifi. - Special case: When installed from an Ubuntu Server iso file, the network will be hardcoded to the computer hardware, but when starting from a compressed image of Ubuntu Server, it will be portable (like the case when installed from an Ubuntu Desktop iso file). - Individual customization of software must be done in a similar way both when cloned via an OEM system and via installing from an iso file.
sudodus avatar
jp flag
After installing and testing a complete custom system (for example according to the methods described above followed by individual customization), an individual image can be made with [Clonezilla](https://askubuntu.com/questions/958242/fastest-way-to-copy-hdd/958248?r=SearchResults&s=4%7C12.9020#958248).
Van Wilder avatar
us flag
All I really want to do is install generic software such as nginx or docker and keep it in the ISO so that when my OS is installed, it has docker out of the box. Can I establish that?
sudodus avatar
jp flag
You can do that the way I describe in the previous comments. You can do it also by creating a custom iso file, but I think it is much more difficult to create a custom iso file. There are some tools available, the classical one is Remastersys, but I don't think it is maintained (will probably not work with current versions of Ubuntu). There are other (newer) tools, maybe forked from the classical one, for example Cubic, and there are tutorials, how to do it from scratch. I think Cubic is made for Ubuntu Desktop, I don't know how it works with Ubuntu Server.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.