>
> > 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] ~]#

(b) ./linux ubda=root_fs ubdb=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] ~]#

Note that I created uml_swap by doing -
dd if=/dev/zero of=uml_swap bs=1024 seek=$[ 1024 * 1024 ] count=1

Then when UML is booted in a new host console I did a -
[EMAIL PROTECTED] linux-2.6.21]# uml_mconsole vm001 config ubd1=uml_swap
ERR Device is already configured
If swap is configured, then why do I see the unknown partition table
message and why cat /proc/meminfo | grep Swap shows 0 swap space ?

I promise that I'll read more upon ubd(which I think is causing the
problem), but can anyone please tell me why I don't see swap space in
UML? Or what I'm doing wrong.

Thanks in advance,
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