Hi,
I would like to create an ISO to transfer a custom debian installation to other computers/VMs.
process description
creation:
- create tar.gz from filesystem
- create bootable ISO incl. all tools (scripts) and the filesystem tar.gz
installation:
- boot ISO
- after selecting the GRUB entry an install script will start automatically
- question to confirm the installation
- partitioning of sda
- formating the partitions
- unpack the tar.gz for each file system to the corresponding partition
- install GRUB on target
I already tried "respin", "linux live kit" and "ReAR", but they are not exactly what I want.
Does anybody know a process/script how to do this?
cheers,
half
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Create custom image installation ISO
-
- Posts: 431
- Joined: 2018-11-05 21:30
Re: Create custom image installation ISO
"transfer a custom debian installation to other computers/VMs."
Maybe you can join me in my claim that "debian is hard to backup". I created a thread about but no one agreed.
http://forums.debian.net/viewtopic.php?f=10&t=139113
Here are a few tools for backup.
https://wiki.debian.org/BackupAndRecovery
Know that when moving partitions around, you need to reconfigure the UUIDs with grubs. And other similar things. As I said, it is hard.
If you don't just want to back up but you want to maintain a Linux distribution on your own, and build it, you should use Yocto that is the reference.
Maybe you can join me in my claim that "debian is hard to backup". I created a thread about but no one agreed.
http://forums.debian.net/viewtopic.php?f=10&t=139113
Here are a few tools for backup.
https://wiki.debian.org/BackupAndRecovery
Know that when moving partitions around, you need to reconfigure the UUIDs with grubs. And other similar things. As I said, it is hard.
If you don't just want to back up but you want to maintain a Linux distribution on your own, and build it, you should use Yocto that is the reference.
Re: Create custom image installation ISO
if you are looking to make VM client images the easy way
well easy once you have to process firgured out so it works....
look at vmbootstrap to see if it fits your needs.
well easy once you have to process firgured out so it works....
look at vmbootstrap to see if it fits your needs.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
-
- Global Moderator
- Posts: 2639
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 192 times
Re: Create custom image installation ISO
It seems this is a combobulated subject.
The question about the tool chain required to essentially create your own installable 'spin', then look into 'simple-cdd' and 'live-image-*?' stuff and learn preseeding and enjoy customizing your iso. I've done that, but don't remember, and prefer to forget!
So, half, you're not asking to back up and then restore, but install to anywhere as is. A great goal and a major PIA to maintain. I doubt you want your image to be frozen in time, so anything you make will need to be remade before you use it again, after that first success. If you geared up for nightlies or weeklies, maybe worth it, but ask yourself how often you will use this and weigh it against the time involved. I say ISO is obsolete. Of course you can use the same toolchain to create an IMG for usb...
The advantage of installable media is you have the chance to run setup and vary the install to be tailored to a machine, its hard disk size, partition layouts, naming, etc. Decide how important these factors are. Backup methods, and refracta limit these choices, and are not equivelant to making a customized installable image.
An alternative tool chain is to maintain your favored image using a vm and imaging tools. If you keep the image small, use compression, and create a separate multi-purpose recovery image as a bootable usb you can accomplish similar results. Such a usb can today be sized to hold multiple imageable images, so from the command line you dd or qemu-image the image file from the usb to the new systems internal disk = boot sectors, grub, the partition layout, the system(s), all in one shot - and reboot. done. There are lots of variables to discuss, but imho the ability to move a tweaked system from box to box is becoming trivial.
The disadvantages of using a *non-installable* image can be overcome with that vm step. The image can be tweaked with anticipated needs before you image, ie names, users, uuic, custom xorg or other hardware specifics, etc. Then after imaging and booted into the new system, you grow partitions and do other minor tweaks you missed in the vm phase. Just one caveat, avoid mounting an image directly in the same running image, encrypted lvm and the same disk uuic's will conflict and error. You can look at the image in a vm or with guestmount, not mount.
If you happen to pass the image around various hardware the image 'learns', and you can incorporate the specifics in the image. Eventually your image is essential a 'live-image with persistence'.
The question about the tool chain required to essentially create your own installable 'spin', then look into 'simple-cdd' and 'live-image-*?' stuff and learn preseeding and enjoy customizing your iso. I've done that, but don't remember, and prefer to forget!
So, half, you're not asking to back up and then restore, but install to anywhere as is. A great goal and a major PIA to maintain. I doubt you want your image to be frozen in time, so anything you make will need to be remade before you use it again, after that first success. If you geared up for nightlies or weeklies, maybe worth it, but ask yourself how often you will use this and weigh it against the time involved. I say ISO is obsolete. Of course you can use the same toolchain to create an IMG for usb...
The advantage of installable media is you have the chance to run setup and vary the install to be tailored to a machine, its hard disk size, partition layouts, naming, etc. Decide how important these factors are. Backup methods, and refracta limit these choices, and are not equivelant to making a customized installable image.
An alternative tool chain is to maintain your favored image using a vm and imaging tools. If you keep the image small, use compression, and create a separate multi-purpose recovery image as a bootable usb you can accomplish similar results. Such a usb can today be sized to hold multiple imageable images, so from the command line you dd or qemu-image the image file from the usb to the new systems internal disk = boot sectors, grub, the partition layout, the system(s), all in one shot - and reboot. done. There are lots of variables to discuss, but imho the ability to move a tweaked system from box to box is becoming trivial.
The disadvantages of using a *non-installable* image can be overcome with that vm step. The image can be tweaked with anticipated needs before you image, ie names, users, uuic, custom xorg or other hardware specifics, etc. Then after imaging and booted into the new system, you grow partitions and do other minor tweaks you missed in the vm phase. Just one caveat, avoid mounting an image directly in the same running image, encrypted lvm and the same disk uuic's will conflict and error. You can look at the image in a vm or with guestmount, not mount.
If you happen to pass the image around various hardware the image 'learns', and you can incorporate the specifics in the image. Eventually your image is essential a 'live-image with persistence'.
Re: Create custom image installation ISO
I agree with CwF; this can be a pain. However, look at this: How can I clone my entire OS to a bootable USB stick?
Re: Create custom image installation ISO
debootstrap
to build && extract a full system tarball that it built. (feature included customize the package list of each tarball using a few options with a list of packages either added to, subtracted from or both adding and subtracting packages to/from the default list of packages.)
a new tool in buster named
vmdb2
xorriso to burn .iso to optical
debootstick to move .img to usb
almost everything except installing images to another machines VM
theres got to be an easier way huh!
to build && extract a full system tarball that it built. (feature included customize the package list of each tarball using a few options with a list of packages either added to, subtracted from or both adding and subtracting packages to/from the default list of packages.)
a new tool in buster named
vmdb2
Does that include most of the use case requirments?vmdb2 will be a successor of vmdebootstrap. It will create disk images for virtual machines and real hardware, with partitioning, and a boot loader, and a Debian installation.
xorriso to burn .iso to optical
debootstick to move .img to usb
almost everything except installing images to another machines VM
theres got to be an easier way huh!
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 132 times
Re: Create custom image installation ISO
been a while, but to me refractasnapshot creates an installable iso from a running system much more comfortable than doing it with live-build (which could do the exact same thing as refractasnapshot does, but i think not anymore, and for quite a while).
before that we created an iso with live-build, loop-mounted the iso, unpacked the iso, chrooted in it and startx from it, configured the gui, exit the chroot and pack the iso back together .... oh my .
iirc refractasnapshot mainly automates all of that.
before that we created an iso with live-build, loop-mounted the iso, unpacked the iso, chrooted in it and startx from it, configured the gui, exit the chroot and pack the iso back together .... oh my .
iirc refractasnapshot mainly automates all of that.
Re: Create custom image installation ISO
thx for all the replies.
I got my solution.
just setup a machine which holds the live system. installed via debootstrap.
i create a tar.gz on the system that i want to duplicate.
scp the backup file to the installer vm.
on the installer vm start mksquashfs and xorriso
-> iso ready for installation
I got my solution.
just setup a machine which holds the live system. installed via debootstrap.
i create a tar.gz on the system that i want to duplicate.
scp the backup file to the installer vm.
on the installer vm start mksquashfs and xorriso
-> iso ready for installation