How to make a custom ISO image: Difference between revisions

From Alpine Linux
(Replace outdated instructions with script alpine-make-vm-image)
mNo edit summary
Line 1: Line 1:
The easiest way is to use script [https://github.com/alpinelinux/alpine-make-vm-image alpine-make-vm-image].
The easiest way is to use script [https://github.com/alpinelinux/alpine-make-vm-image alpine-make-vm-image].


== Live Disk Setup with APKOVL ==
== Live Disk Setup with customized APKOVL configurations ==


Once you have customized your custom ISO, you can now setup the live environment to operate outside of the standard installer as follows:
Once you have booted and customized the system that was booted from an ISO, you can now configure the ISO to load the customizations as follows:


* Generate an APKOVL file with [[Alpine_local_backup|lbu]], <code>lbu ci</code>
* Generate an APKOVL file with [[Alpine_local_backup|lbu]], <code>lbu ci</code>
* Alpine ISO requires the OVL Volume to be hosted on a web server. Put the APKOVL file on a webserver and identify the url.
* The Alpine ISO looks for an APKOVL Volume in mountpoints below /media/, or can be pointed to a web server.  
* Uncomment the <code>APKOVL</code> line in the alpine flavor of your choice and set it to the address of your ovl volume.
* If you put the APKOVL file on a webserver, you need to add a customized url with the <code>APKOVL</code> boot parameter.


Notes:
Notes:

Revision as of 11:45, 6 May 2020

The easiest way is to use script alpine-make-vm-image.

Live Disk Setup with customized APKOVL configurations

Once you have booted and customized the system that was booted from an ISO, you can now configure the ISO to load the customizations as follows:

  • Generate an APKOVL file with lbu, lbu ci
  • The Alpine ISO looks for an APKOVL Volume in mountpoints below /media/, or can be pointed to a web server.
  • If you put the APKOVL file on a webserver, you need to add a customized url with the APKOVL boot parameter.

Notes:

  • Any packages you add to /etc/apk/world of your lbu will automatically be installed onto the live system image.
  • If you don't have a web server you can run busybox's httpd temporarily - busybox httpd -p 127.0.0.1:80
  • In general, lbu will only handle files in /etc, to customize this further, you need to add additional files.
  • If you want to make a customized installer, you need to create .default_boot_services which will cause mkinitfs to create the defaults for the live image.

Testing your ISO image

Qemu is useful for a quick test of your created ISO image.