Re: [uml-user] modprobe: FATAL ? solution

2009-03-04 Thread Jawad hussain
Hi Flavio,

mount -o loop /path/to/rootfs /path/to/loopdir/  this step completed ///

>> # cd /path/to/your/uml/kernel/sources/root

But for second step I have only two exec i.e. linux-2.6.24-rc7 and
Fedora8-x86-root_fs under /home/jawad/uml/ because I follow
http://user-mode-linux.sourceforge.net/ , so how to proceed further.


// Remaining
/

>> # make modules ARCH=um
>> # make modules_install INSTALL_MOD_PATH=/path/to/loopdir/ ARCH=um
>> # umount /path/to/loopdir/




On Tue, Mar 3, 2009 at 8:00 PM, Flavio  wrote:

> 2009/3/3 Jawad hussain :
> > Hi,
> >
> > Thanks. But i am using procedure listed on
> > http://user-mode-linux.sourceforge.net/ and I just download kernel and
> > filesystem on my host under /home/jawad/uml then unzip and run ./ uml. is
> > there any solution of this class of UML because I dont built my own file
> > system.
> The procedure to install kernel modules is always the same.
> The message you reported, is because the kernel modules directory is
> missing.
>
> Remember to reply to the list and not only to me..
>
> Sincerely,
>
> Flavio
>
>
> >
> > Regards,
> > Jawad Hussain
> >
> >
> > On Tue, Mar 3, 2009 at 4:03 PM, Flavio  wrote:
> >>
> >> 2009/3/3 Jawad hussain 
> >> >
> >> > Hi,
> >> >
> >> > I am new to UML and I want to ask how to solve below mention warning.
> >> >
> >> >
> >> > modprobe: FATAL: Could not load /lib/modules/2.6.17-rc1/modules.dep:
> No
> >> > > such file or directory
> >>
> >> Hi,
> >> from the host system, before starting UML,
> >>
> >> # mount -o loop /path/to/rootfs /path/to/loopdir/
> >> # cd /path/to/your/uml/kernel/sources/root
> >> # make modules ARCH=um
> >> # make modules_install INSTALL_MOD_PATH=/path/to/loopdir/ ARCH=um
> >> # umount /path/to/loopdir/
> >>
> >> start UML as usual and modprobe the modules youn need.
> >>
> >> Bye,
> >>
> >> Flavio
> >
> >
> >
> > --
> > Regards
> > Jawad Hussain
> > MS Internetworking
> > CCNA,JNCIA-ER
> >
>



-- 
Regards
Jawad Hussain
MS Internetworking
CCNA,JNCIA-ER
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] modprobe: FATAL ? solution

2009-03-04 Thread Flavio
2009/3/4 Jawad hussain :
>
> Hi Flavio,
>
> mount -o loop /path/to/rootfs /path/to/loopdir/  this step completed ///
>
>>> # cd /path/to/your/uml/kernel/sources/root
>
> But for second step I have only two exec i.e. linux-2.6.24-rc7 and
> Fedora8-x86-root_fs under /home/jawad/uml/ because I follow
> http://user-mode-linux.sourceforge.net/ , so how to proceed further.
That's the problem!
I guess the website you've got the executable kernel image, doesn't release
the kernel modules too.
I think you should make your own kernel image from your own sources (you
can get them at kernel.org) and make your modules.
It's almost easy.

Bye.

>
>
> // Remaining
> /
>
>>> # make modules ARCH=um
>>> # make modules_install INSTALL_MOD_PATH=/path/to/loopdir/ ARCH=um
>>> # umount /path/to/loopdir/

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


[uml-user] UML reboot and freeing ports

2009-03-04 Thread lanas
All,

  I've noticed that when a UML reboots it will not free any port it was
using, and open another one.  Case in point: when using vde_switch.
Connect a UML to vde_switch using something like:

# vde_switch -s /tmp/switch1
# linux ubda=cow1,myfs umid=uml1 eth0=tuntap,tap0 eth1=vde,/tmp/switch1

  In vde_switch use 'port/print' to see which PID is using which port.

  reboot the UML.  Go back to vde_switch and now there are two ports for
the same PID.

  Shutdown the UML and in vde_switch the PID is not there anymore.

  Has anyone come up with a fix regarding this ?  It looks like UML
should release the resource when rebooting and then use another one.
Or keep the resource and not use another one.

  Any thoughts on this appreciated.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


[uml-user] Host files opened multiple times by UML

2009-03-04 Thread David Moffatt
Has anyone seen this before? 

 

1.  I do an "lsof  | wc" on my host and get about 2.3K files (normal
for a workstation)
2.  I startup UML .  In my UML instance and get 2.8K (again normal)
3.  When I do an lsof on the host again I get 24K files. 
4.  My uml is running hostfs and it looks like it is opening all the
right files but just opening them multiple times.  For example one my
libraries  is libalp_flightmodeui.so

a.  On the UML instance:

 

# lsof | grep libalp_flightmodeui.so

bar:com.a 1040  com.access.statusbarmgr.2  mem   REG   0,12
571936734127 /opt/alp/lib/libalp_flightmodeui.so

 

b.  On the host (the host does not open libalp_flightmode ui
for any reason other than UML)

 

svdmoffattlnx:~$ lsof  | grep  /libalp_flightmodeui.so

alp-linux 12572  david  352r  REG8,7 57193  6734127
/home/scratchbox/users/david/targets/alp-x86-dbg-dev/opt/alp/lib/libalp_
flightmodeui.so

alp-linux 12582  david  352r  REG8,7 57193  6734127
/home/scratchbox/users/david/targets/alp-x86-dbg-dev/opt/alp/lib/libalp_
flightmodeui.so

[repeats removed]

 

c.  Also on the host

svdmoffattlnx:~$ lsof  | grep  /libalp_flightmodeui.so | wc

 59 5319440

 

 

The only thing that I am doing odd is I don't use the SKAS patches.  

 

--Thanks for any ideas

 

David Moffatt

 

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user