[wellylug] User Mode Linux - anyone had any luck with it?

Cliff Pratt enkidu at cliffp.com
Wed Mar 9 20:18:54 NZDT 2005


Grant McLean wrote:
> On Wed, 2005-03-09 at 18:16 +1300, Cliff Pratt wrote:
> 
>>I'm trying to get UML running and I'm having problems. I'm 
>>using the Debian unstable package and I've tried various 
>>fiel-systems and all have some problem or other.
>>
>>In particular the two Debian one I acquire from sourceforge 
>>both stop at the stage of "Setting the system clock....".
> 
> 
> I had a brief foray running Woody in UML under Sarge.  It sounds like
> you have a different problem to the one I struck.  In my case, the fsck
> at boot time failed with this message:
> 
>     fsck.ext2: No such file or directory while trying to open /dev/ubd/0
> 
> This was because the filesystem image I was using didn't have the devfs
> package installed.  I did manage to get things going by loopback
> mounting the filesystem and copying in the relevant deb file, booting it
> up single user mode and installing the package.
> 
> The following disjointed notes that I took at the time may offer you
> some clues (unfortunately they mean next to nothing to me now but as you
> know senility is setting in).
> 
> mv Debian-3.0r0.ext2 root_fs-dist
> 
> dd if=/dev/zero of=root_fs count=1 bs=1k seek=$[4*1024*1024]
> mkfs -t ext3 root_fs
> 
> mkdir /mnt/m1
> mkdir /mnt/m2
> 
> mount -o loop -t ext2 /home/grant/uml/root_fs-dist /mnt/m1
> mount -o loop -t ext3 /home/grant/uml/root_fs /mnt/m2
> 
> cp -a /mnt/m1/* /mnt/m2
> rm -r /mnt/m2/lib/modules/*
> cp -a /usr/lib/uml/modules/* /mnt/m2/lib/modules/
> 
> 
> wget
> http://ftp.nz.debian.org/debian/pool/main/d/devfsd/devfsd_1.3.25-1_i386.deb
> 
> cp devfsd_1.3.25-1_i386.deb /mnt/m2/
> 
> umount /mnt/m1
> umount /mnt/m2
> 
> ./linux
> 
> mount -n -o remount,rw /
> dpkg --install /devfsd_1.3.25-1_i386.deb
> halt
> 
> ./linux devfs=mount
> 
> 
> 
> dd if=/dev/zero of=swapfs bs=1k count=1 seek=$[512*1024]
> mkswap swapfs
> 
> ./linux devfs=mount ubd1=swapfs
> 
> Add to /etc/fstab:
> 
>   /dev/ubd/1      none            swap    sw              0       0
> 
> 
> ./linux devfs=mount ubd1=swapfs eth0=tuntap,,,192.168.2.77
> 
Thanks Grant.

I was beginning to think it wasn't possible!


Cliff




More information about the wellylug mailing list