David Chanters wrote:
> Hey all,
> Thanks to Flavio's patience and kindness I'm pleased to say I have got
> UML up and running nicely, using a selection of rootfs from here:
> Whilst that is fine, I was hoping there might be a way of replacing
> the rootfs with a .iso file? For example i tried the following
> (naively) which fails:
> sudo ./linux ubd0=/home/david/Slackware-11-root_fs
> rootfs=/home/david/tmp/smgl-0.9.6.3-x86.iso root=/dev/ubda mem=512MB
> Am i suffering from a misconceptioon that UML will ust blindly boot
> from an .ISO? Am I even close with the command above?
> Thanks in advance,
I have done this with an iso from Debian
The commandline was something like this:
./vmlinuz_220.127.116.11 devfs=nomount load_ramdisk=1 ramdisk_size=30000
mem=128m initrd=initrd.gz root=/dev/ram0
ubd0=root_fs_test ubd1=debian-testing-i386-netinst.iso ubd2=/dev/cdrom
- I took the initrd.gz from the debian installer.
First download a netinstall iso of debian and mount it
mount -o loop /var/local/share/netinst.iso /mnt/debinst
We need the initrd.gz
cp /mnt/debinst/install/initrd.gz /var/local/uml
cp /mnt/debinst/install.i386/initrd.gz /var/local/uml
- root_fs_test is an empty file container.
- ubd1 is the iso that needs to be loaded.
In debian, this works, but you'll get an error in the installation
process in regards to the CD drive.
It will say something like:
"No common CD-ROM drive was detected" -> answer No
Next you'll get: "Manually select a CD-ROM module and device" -> answer
Choose none as cdrom and you'll get the chance to specify the device
Type this: /dev/ubdb
I image that for other distro's, it will be quite similar: search an
initrd and specify load_ramdisk=1 ramdisk_size=30000 initrd=initrd.gz
Next ubd0 = root file system en ubd1 = iso