OZ-INSTALL(1)
π OZ-INSTALL π (that's section 1 of the general commands manual, bestie)
okay so. oz-install β she's the tool that automatically installs operating systems into files. like, whole entire OSes. into a file. no cap. π¦
β¨ NAME β¨
oz-install β the tool that automatically installs operating systems into files. that's her. that's the whole vibe.
πΈ SYNOPSIS πΈ
oz-install [OPTIONS] <tdl-file>
π DESCRIPTION π
so here's the tea β: this is a tool that automatically installs an operating system into files that represent disk images. the input is an XML file that describes the operating system and the packages you want installed. <tdl-file>, she's the one.
and by default (and honestly, by design, it's giving intentional) the first stage of the install only installs a JEOS β a Just Enough Operating System. like, the bare minimum. the little starter pack. customization, including installing extra packages, is also possible, but it needs extra flags. she's not doing it for free. π
β οΈ heads up bestie:oz-installdoes the actual installation using a combination of KVM and libvirt, so BOTH of these have to be available (and actually working, not just installed and vibing) foroz-installto have a chance to succeed. if they're not working, she's not working. periodt.
β¨ OPTIONS β¨
-a <auto>β use the user-provided auto installation file auto. by default, Oz uses a hard-coded auto-installation file (kickstart, preseed, sif, etc.) to do a basic OS install. with this option you get to hand her your own alternate auto-installation file instead. the caveat though: user-provided auto-installation files are more likely to cause installation errors, so use this one with caution. π-b <disk_bus>β use disk_bus for the storage device while doing the install. normally Oz already knows the appropriate disk bus for each guest OS it installs (ideorvirtio), it's built in. this option lets you override that default with your own choice.-c <config>β get the configuration from config file config instead of the default/etc/oz/oz.cfg. if neither one exists, Oz will use sensible defaults, she's got you. the config file is in standard ini format; for the full explanation of the sections and keys, see the CONFIGURATION FILE section below. π«Ά-d <loglevel>β turn on debugging output to level loglevel. the log levels are:0β errors only (this is the default)1β errors and warnings2β errors, warnings, and information3β all messages4β all messages, prepended with the level and classname
-fβ force the generation of new installation media. by default,oz-installwill always try to use a locally cached version of the oz-modified install media if it's available. failing that,oz-installwill try to use a locally cached version of the pristine install media if it's available. this flag forces it to always download and regenerate the oz-modified install media, even if it has a local version available. so it's the "no, do it AGAIN, I don't trust the cache" flag. π₯-gβ generate the ICICLE (a package manifest, with some additional metadata) after the installation is complete.-hβ print a short help message. she's helpful like that. π-i <icicle>β ifoz-installhas been instructed to generate an ICICLE (see the-goption), it will normally write the ICICLE XML to stdout. to haveoz-installwrite the ICICLE to a file instead, use the-ioption. note that it is an error to specify-iwithout-g. like, she will not accept that. π-m <mac_address>β use mac_address for the network device while doing the install. the default value is autogenerated by Oz. this option lets you override that behaviour.-n <network_device>β use network_device for the network device while doing the install. by default, Oz has built-in knowledge of the appropriate network device to use while installing each guest operating system (ne2k_pci,rtl8139,virtio). this option lets you override that default with your own choice.-pβ cleanup old guests before installation. by default, if a guest with the same libvirt UUID, libvirt name, or diskimage already exists before Oz starts installation, Oz will abort. if this option is used, then Oz will undefine the libvirt guest with the same name or UUID and delete the diskimage, so it should be used with caution. π this one does not play.-s <disk>β write the disk image to disk, rather than the default of the TDL name.-t <timeout>β terminate the installation of the guest in timeout seconds rather than the oz default. this value should be increased if you're running on slow storage or running multipleoz-installoperations on the same machine. π
π please note: there is a separate termination action that occurs if 300 seconds elapses with no disk activity to the operating system. this timer value is not configurable. it's not a vibe you can change, sorry bestie.
-uβ customize the image after installation. this generally installs additional packages onto the disk image after installation. β¨-x <xmlfile>β Oz will normally generate a libvirt XML file in the current working directory, suffixed with the date and time. specifying the-xoption lets that filename be overridden.
π CONFIGURATION FILE π
the Oz configuration file is in standard INI format with several sections. if any section or configuration key is missing, Oz will use a sensible default β she's forgiving like that. π
for true/false configuration keys, these values turn the option on: "true", "True", "yes", "Yes". and these turn the behaviour off: "false", "False", "no", "No".
the configuration file should have the following form:
[paths]
output_dir = /var/lib/libvirt/images
data_dir = /var/lib/oz
screenshot_dir = .
sshprivkey = /etc/oz/id_rsa-icicle-gen
[libvirt]
uri = qemu:///system
type = kvm
bridge_name = virbr0
cpus = 1
memory = 1024
image_type = raw
[cache]
original_media = yes
modified_media = no
jeos = no
[icicle]
safe_generation = no
π the paths section
defines the paths that Oz will use for storing data.
- the
output_dirkey describes where to store the images after they are built. - the
data_dirkey describes where to cache install media and use temporary storage. - both locations must have a decent amount of free disk space in order for Oz to work properly. like, seriously, give her room to breathe. π
- the
screenshot_dirkey describes where to store screenshots of failed installs. - the
sshprivkeykey describes where the ssh keys are stored, which are required by Oz to do customization of the image.
π₯οΈ the libvirt section
allows some manipulation of how Oz uses libvirt.
- the
urikey describes the libvirt URI to use to do the guest installation. - the
typekey defines what type of virtualization to use. - the
bridge_namekey defines which bridge Oz should place the guests that it launches on. - the
cpuskey defines how many cpus should be used inside the virtual machine. - the
memorykey defines how much memory (in megabytes) should be used inside the virtual machine. - the
image_typekey defines which output disk type should be used; this can be any value that libvirt supports.
πΎ the cache section
allows some manipulation of how Oz caches data. caching data in Oz is a tradeoff between installation time and storage space, iykyk.
- the
original_mediakey tells Oz to cache the original installation media so that it does not have to download it the next time an install for the same operating system is requested. - the
modified_mediakey tells Oz to cache the oz-modified installation media so that it does not have to download and modify it the next time an install for the same operating system is requested. - the
jeoskey tells Oz to cache the installed operating system after installation. this can significantly speed up subsequent installation of the same operating system, with the additional downside of the operating system getting out-of-date with respect to security updates. use with care. β οΈ
π§ the icicle section
allows some manipulation of how Oz generates ICICLE output. ICICLE is a package manifest that can optionally be generated at the end of installs.
- the
safe_generationkey controls whether Oz uses a throwaway overlay file while generating the ICICLE. - if it is set to
"no"(the default), then Oz will boot up the guest at the end of the install and run the appropriate commands to generate the ICICLE. - if it is set to
"yes", then Oz will use a throwaway overlay file while generating the ICICLE. after the ICICLE is generated, Oz will delete the backing file, leaving the original disk image pristine. β¨ iconic behaviour honestly.
π SEE ALSO π
oz-generate-icicle(1), oz-customize(1), oz-cleanup-cache(1), oz-examples(5)
π AUTHOR π
Chris Lalancette <clalancette@gmail.com>
and that's the whole page, bestie!! π this is oz-install from Aug 2011, fr fr β go forth and install some operating systems into files, you absolute main character. πβ¨π¦
π¦ where this page comes from
- fedora 43: oz 0.18.1-23.fc43 Β· LicenseRef-Callaway-LGPLv2
- fedora 44: oz 0.18.1-25.fc44 Β· LicenseRef-Callaway-LGPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms