On 5/8/07, Antoine Martin <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> kewlemer wrote:
> >>
> >> > Warning: couldn't stat file: /root/.uml/linux/mconsole - No such file
> >> > or directory
> >> > Warning: couldn't stat file: /tmp/uml/linux/mconsole - No such file
> >> or directory
> >> > Sending command to 'linux' : Connection refused
> >>
> >> These suggest that you are messnig up the umid.  Did you put
> >> 'umid=linux' on the UML command line?
> >>
> >> > [EMAIL PROTECTED] linux-2.6.21]#
> >> >
> >> > 2. I also followed the instructions swap on
> >> > http://www.ime.usp.br/~baroni/docs/uml-en.html. Basically, I did -
> >> >   $ cd /dev
> >> >   $mkdir /ubd
> >> >   $cd ubd
> >> >   $ for i in 0 1 2 3 4 5 6 7; do mknod ubd$i b 98 $[ $i * 16 ]; done
> >> >   $ dd if=/dev/zero of=swap_file count=200 bs=1M
> >> >   $ mkswap swap_file
> >> >   $ umount /mnt/vmfs
> >> >
> >> > During bootup I see the following log -
> >> > ubda: unknown partition table
> >> > Couldn't stat "swap_file" : err = 2
> >>
> >> That's because you seem to have made swap_file within the UML and
> >> tried to connect UML's ubdb to swap_file on the host.
> >>
> > Thanks for the pointers. From what Jeff and Antonie said, I realized
> > that I need to have UML kernel running to use mconsole and uml_swap
> > and root_fs should be in the same dir in the host fs. So here is what
> > i did -
> >
> > 1. Created uml_swap in the host fs in the same dir as root_fs
> > (actually root_fs is in /opt/ and I have a symlink to it in /root/uml/
> > and so uml_swap is in /rrot/uml). And then I tried -
> > (a) ./linux ubd0=root_fs ubd1=uml_swap mem=128M con0=fd:0,fd:1
> > con=xterm eth0=tuntap,tap0,FE:F0:00:00:00:01,192.168.0.254 umid=vm001
> > Boot log -
> > ubda: unknown partition table
> > ubdb: unknown partition table
> > [EMAIL PROTECTED] ~]# cat /proc/meminfo | grep Swap
> > SwapCached:          0 kB
> > SwapTotal:           0 kB
> > SwapFree:            0 kB
> > [EMAIL PROTECTED] ~]#
> Swap doesn't just get activated because you add it to the command line.
> You need to tell your guest kernel to use it, otherwise it is just
> another disk available for use.
> mkswap /dev/ubdb
> swapon /dev/ubdb
>
Many thanks for the tip. It worked. To automate this on each boot, I
put it in /etc/rc.local and it worked. Is there a better way to
automate this ?

Regards,
KM

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to