On Friday 18 November 2005 15:27, Miguel Angel Ruiz wrote:
> En blancoHi!
>
> if I have running several quaggas, each one, in a different UML,
> Can accede from the outside, but of a user (and until whatever) to my
> quaggas virtual, simultaneously? I need that several accede simultaneously,
> for educational purposes.

What's a quagga?  (A distro?)

Either use copy on write partition files, or else use hostfs to borrow the 
hosts's root ala:
./linux rootfstype=hostfs rw init=/bin/sh

You can run dozens of instances that way, assuming you've got enough memory.  
(Default is 32 megs, change with the standard kernel command line argument 
ala "mem=128M", or feed it a ubd swap partition.)

Also when using hostfs, keep in mind that even the root user within UML can't 
mknod or chown in a hostfs filesystem.  They can't do anything the user 
running UML on the host couldn't do.  But if you need to do that you can 
mount ramfs or tmpfs somewhere, or make an ext2 filesystem image and loopback 
mount it...

> Regards,
> Michael.-
>
> pd:restrictions for tun/tap interfaces?

Use the hub daemon.
http://prdownloads.sourceforge.net/user-mode-linux/uml_utilities_20040406.tar.bz2
http://user-mode-linux.sourceforge.net/networking.html#switch

Give each client a random MACADDR on the command line (with the first byte 0 
because UML will veto broadcast mac addresses, I.E. if (macaddr[0]&1) is set.

Then it's the hub daemon's job to have an uplink to the host's network via 
tun/tap.

Rob


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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