Eric Radman : a Journal

Mounting ISO Images

My installation server is an Open VM running where I mount these images directly.

OpenBSD loopback Mount

vnconfig vnd0 /var/www/htdocs/Rocky-8.7-x86_64-dvd1.iso
vnconfig vnd1 /var/www/htdocs/Rocky-9.0-x86_64-dvd.iso
vnconfig vnd2 /var/www/htdocs/Fedora-Everything-netinst-x86_64-36-1.5.iso

mount_cd9660 /dev/vnd0c /var/www/htdocs/pub/rocky8
mount_cd9660 /dev/vnd1c /var/www/htdocs/pub/rocky9
mount_cd9660 /dev/vnd2c /var/www/htdocs/pub/fedora36

These can remain mounted or copied to directories and unmounted.

The OpenBSD kernel uses many pre-allocated data structures, so to support more vnd devices we need to reboot and in config mode

boot> boot -c
booting hd0a:/bsd: 15648024+3699720+352288+0+1175552 [1145757+128+1220904+924861]=0x170ee08
...
User Kernel Config
UKC> find vnd
489 vnd count 4 (pseudo device)
UKC> change 489
489 vnd count 4 (pseudo device)
change (y/n) ? y
count [4] ? 9
489 vnd changed
489 vnd count 9 (pseudo device)
UKC> quit

These changes can persisted each time the kernel is reconfigured by writing /etc/bsd.re-config

change 489
y
9

Finally create devices

cd /dev
./MAKEDEV vnd5
./MAKEDEV vnd6

UDF ISO13346 on Linux

The Windows installation media includes multiple file systems, which can be mouted on Linux

sudo mount -t udf,iso13346 -o loop,ro,unhide,uid=$(id -u),gid=$(id -g) Win11_22H2_English_x64v1.iso /mnt