Re: [uml-user] Security

2006-08-02 Thread Jim Carter
On Tue, 1 Aug 2006, TongKe Xue wrote: > Original Belief: I can use UML as a virtual machine; jail untrusted > processes. > > Let's say I am a user U, on a machine M running Linux. > I run an instance, UML1 of User Mode Linux. > Within this instance of UML1, I create a new user "jailedUser". > "j

Re: [uml-user] stale files using hostfs and timer issues

2006-07-03 Thread Jim Carter
Please forgive me for interpreting without suggesting how to fix, but the interpretation might be useful. Is there any chance of trying out the 2.6.16 UML kernel on a 2.6.16 host? Version skew, particularly backwards, is very plausible as an explanation for all of these. Also be sure that th

Re: [uml-user] Multiple UMLs sharing a single tap device

2006-03-10 Thread Jim Carter
On Fri, 10 Mar 2006, Julius Schwartzenberg wrote: > I was wondering if it was possible to have multiple UMLs share a single > tap device. My goal is to have one subnet on tap0 in which all the UMLs > are too, so you get one big virtual ethernet network. I doubt it's possible, since each UML nee

Re: [uml-user] (no subject)

2006-01-14 Thread Jim Carter
On Fri, 13 Jan 2006, Maruthi Narayanaswamy wrote: > I am able to ssh to host from UML thru TUNTAP and I also I am able to > communicate between UMLs thru switch daemon. > > Now the problem is, I am unable to telnet/ssh to UMLs directly from the > local LAN. I am not sure as to how to go about.

Re: [uml-user] UML rootfs yum server

2006-01-06 Thread Jim Carter
On Fri, 6 Jan 2006, Xinhuan Zheng wrote: > Does anyone know how to make a yum repository for, say, rhel3? I found a reference, for Red Hat, that looks pretty complete: http://www.webmo.net/support/yum_repository.html For those of us who aren't doing the hat thing, yum (Yellow Dog Updater) i

Re: [uml-user] external modules: compile (IPsec et al.)

2005-12-29 Thread Jim Carter
On Thu, 29 Dec 2005, [EMAIL PROTECTED] wrote: > Problem: I don't get the clue how to build an external module (like IPsec). > The standard modules work well, but I don't seem to be able to apply an > external module patch on the uml kernel's source code. I haven't tried building external modules

Re: Bug in COW format - 64-bit incompatible with 32-bit due to struct padding (was: Re: [uml-user] uml_moo and large files)

2005-12-20 Thread Jim Carter
On Mon, 19 Dec 2005, Blaisorblade wrote: > On Monday 19 December 2005 21:19, Jim Carter wrote: > The problem lies in the #ifdef mapping ntohll to _bswap64 - in 2.6.13 it was > changed in a wrong way (and not by anybody present here - somebody went with > a "nice cleanup"

Re: [uml-user] RFC: UML Kernel RPMs

2005-12-20 Thread Jim Carter
On Tue, 20 Dec 2005, Michael Stowe wrote: > I'm a recent convert to UML for VDS/PS hosting and have talked with Jeff > about providing RPMs of UML kernels. > I'd like to ask for input on a standardized location for the kernel and > modules to be installed to as well as any patches you would lik

Re: Bug in COW format - 64-bit incompatible with 32-bit due to struct padding (was: Re: [uml-user] uml_moo and large files)

2005-12-19 Thread Jim Carter
On Fri, 16 Dec 2005, Blaisorblade wrote: > On Thursday 15 December 2005 21:15, Jeff Dike wrote: > > On Thu, Dec 15, 2005 at 05:26:44PM +0100, Blaisorblade wrote: > > > The problem is that the same declaration is used in kernel sources. I.e., > > > we have (likely) COW files generated from 64-bit m

Re[2]: [uml-user] timer resolution in UML kernel

2005-10-24 Thread Jim Carter
On Mon, 24 Oct 2005, Serge Goodenko wrote: > > Also, HZ (i.e. the timer interrupt) is implemented using signals (i.e. > > alarm()), which are both slow and not precise (no more than host > > jiffies). > hm.. this suggests that maybe it would be really better not to use > jiffies in UML (in my

Re: [uml-user] UML guest hangs on sshd

2005-09-26 Thread Jim Carter
On Mon, 26 Sep 2005, Jeff Dike wrote: > On Mon, Sep 26, 2005 at 05:24:30PM -0700, Robin Lee Powell wrote: > > However, as soon as I run sshd by any means, the guest hangs. I > > have no idea what to do about this. Help? > > If not, then it might be an entropy shortage, and the UML random driver

Re: [uml-user] Hard limit on number of telnet sessions

2005-08-03 Thread Jim Carter
On Wed, 3 Aug 2005, Craig O'Keefe wrote: > Is anyone aware of a limit to the number of telnet sessions UML can > support. We are seeing our >60 never come up. Does anyone know of where > this is configured? Each telnet-rlogin-ssh session requires a pseudo-tty master+slave, and a 2.4.x kernel for

Re: [uml-user] Emulating physical machines using UML?

2005-04-22 Thread Jim Carter
On Fri, 22 Apr 2005, Ragnar Lonn wrote: > The problem here is that there can only be ~250 routing tables configured > on the machine. This means that we can only emulate ~250 separate client > machines (boxes with their own MAC addresses) on a single PC. We would > like to emulate about 1000 separa

Re: [uml-user] tmpfs

2005-04-15 Thread Jim Carter
On Thu, 14 Apr 2005, itamar wrote: > It´s possible to use the same TMPDIR for all uml´s in the host ? > mkdir /tmp/uml > mount -t tmpfs -o mode=1777,size=512M none /tmp/uml > TMPDIR=/tmp/uml linux mem=512M ... Certainly this is possible, but you've allowed space for only one guest. If there are

Re: [uml-user] The best way for /dev/

2005-04-13 Thread Jim Carter
On Wed, 13 Apr 2005, Fabio Ricci wrote: > Which is the best for handling /dev fs? > i have tried to use udev with hotplug but it seems that the boot phase is too > much long, > instead with devfs i cant see some link on /dev. In kernel 2.6.x, devfs is no longer Politically Correct, but as you say

Re: [uml-user] ptmx ssh problem

2005-04-11 Thread Jim Carter
On Sat, 9 Apr 2005, Scott Granados wrote: > However, when I run ssh, both the included openssh and the ssh.com verion I > get a quote "/dev/ptmx no such file or directory." > > When I do a ls -al /dev/ptmx I get a device with a major and minor of 5 and 2 > which the man page confirms. Does direc

Re: [uml-user] current root images

2005-04-08 Thread Jim Carter
On Fri, 8 Apr 2005, Scott Granados wrote: > Hi, I wonder if anyone has available any more current root images. > The ones on the uml site are helpful but out of date a bit. > I'd be interested possibly in new redhat or centos or slackware images. I've > not figured out the process to make my own y

Re: [uml-user] Reboot Hangs

2005-04-06 Thread Jim Carter
On Tue, 5 Apr 2005, Rus Foster wrote: > I've just compiled up a 2.4.29 guest kernel and having a problem that is > typing "reboot" the guest does more of a power off than a reboot. Anyone > got a fix for this? I saw the same thing in 2.6.8 host & guest, from the SuSE distro. If you run your U

Re: [uml-user] uml and iptables.

2005-04-01 Thread Jim Carter
On Fri, 1 Apr 2005, Krisztian PIFKO wrote: > > What´s is the best way to enable iptables on a guest machine ? > the same like everywhere: have iptables support in the kernel and > tune it with the userspace utilities. Or compile iptables and all the helper routines as modules, and install those m

Re: [uml-user] Need help finding debugging info documents

2005-03-24 Thread Jim Carter
On Thu, 24 Mar 2005, Jonathan S. Romero wrote: > Can anyone point me towards info on debugging UML guests using GDB. I > read somewhere online that if you compile UML with debugging enabled, > that you can get a debugging session in an xterm. In the meantime I'm > going to work on familiarizing

Re: [uml-user] ubd device naming

2005-03-24 Thread Jim Carter
On Sun, 20 Mar 2005, Zev Benjamin wrote: > a 2.6.10 UML, that file shows devices with names like ubda and ubdb1. Under a > 2.4.27 UML, that file shows devices with names like ubd/disc0/disk and > ubd/disc1/part1. The problem is that I'm trying to do the install under > 2.6.10 (afs drivers don't

Re: [uml-user] mem parameter

2005-03-16 Thread Jim Carter
> [EMAIL PROTECTED] said: > > I have 4go on my server. Only 800 mo are use. When I launch a uml > > instance with mem=256M param that work fine. But when launch a uml > > instance with mem=512M, I get this message : SegFault Oops, in my first answer to this posting I made a mistake, and my

Re: [uml-user] mem parameter

2005-03-11 Thread Jim Carter
On Fri, 11 Mar 2005, Jean-Michel Caricand wrote: > I have 4go on my server. Only 800 mo are use. When I launch a uml > instance with mem=256M param that work fine. But when launch a uml > instance with mem=512M, I get this message : SegFault 4go means quatre giga-octets, right? As a def

Re: [uml-user] a question regarding temp files and ram

2005-03-07 Thread Jim Carter
On Sun, 6 Mar 2005, Krisztian PIFKO wrote: > could someone please tell me how much memory an uml consumes > if the temp dir for the unlinked temp files is on tmpfs? > > for example does a 64M uml use 2*64 megs of ram this way? My UML is configured with 120 MB simulated RAM. Host and guest have

Re: [uml-user] inittab and to many processes question

2005-03-07 Thread Jim Carter
On Fri, 4 Mar 2005, Scott Granados wrote: > ...I start uml and all goes well until after starting > innd or the last service depending. I get, respawning to fast, no > processes left, holding for five minutes. > I realize that this is likely a problem in the inittab and that the getty > is th

Re: [uml-user] Emulate serial connection ?

2005-03-04 Thread Jim Carter
On Fri, 4 Mar 2005, Radu Brumariu wrote: > does anybody know of any possibility to emulate a serial connection > between 2 UMLs running on the same host ? The howto originally written by Rusty Russell has an example which may be relevant: http://user-mode-linux.sourceforge.net/UserModeLinux-HOW

Re: [uml-user] UML troubles: spawning thousands of processes

2005-03-04 Thread Jim Carter
On Thu, 3 Mar 2005, Adrian Phillips wrote: > >>>>> "Jim" == Jim Carter <[EMAIL PROTECTED]> writes: > > Jim> If a very sharp hacker "gets root" on the UML guest, he can... > Jim> chroot jail, he can import statically linked

Re: [uml-user] UML freezes at hdd-intensive processes

2005-03-04 Thread Jim Carter
On Thu, 3 Mar 2005, Oliver Baltz wrote: > my UML hangs while intensive processes that use the HDD. For example: > rgrep, upgrade,... > > UML-Hostsystem: 2.4.27-1-386, Intel ICH5 SATA 150-Controller > UML: 2.4.26-3um-1 I had a similar experience. I configured the UML with 256MB RAM, and put the

Re: [uml-user] A hardware random number generator for UML

2005-03-03 Thread Jim Carter
On Thu, 3 Mar 2005, Jeff Dike wrote: > [EMAIL PROTECTED] said: > > As I understand it, the kernel adds hardware RNG data to the entropy > > pool if the device is available. > > Can you give me a pointer to code that does this? I see no hint in random.c > that it takes entropy from the hardware r

Re: [uml-user] A hardware random number generator for UML

2005-03-02 Thread Jim Carter
On Wed, 2 Mar 2005, Jeff Dike wrote: > I wrote a little HW random number generator based on hw_random.c. It hooks > itself up to major 10, minor 183, which seems to be the standard for a > HW RNG. The standard name for this seems to be /dev/hwrng. Unfortunately many Intel chipsets lack the har

Re: [uml-user] UML troubles: spawning thousands of processes

2005-03-02 Thread Jim Carter
On Wed, 2 Mar 2005, Maarten wrote: > Out of curiosity, is a 'default' SKAS-enabled guest (and without the host-fs > kernel option) safe enough as a sandbox to let untrusted users in, or are > additional measures in order to really secure it (or more paranoia ;-) ? > Ie. how difficult is it to ga

Re: [uml-user] swapoff hangs forever in UML guests

2005-03-02 Thread Jim Carter
On Wed, 2 Mar 2005, Nuutti Kotivuori wrote: > If swap is enabled for a virtual machine, and the virtual machine > actually swaps something, swapoff at shutdown hangs the machine. Here's another nasty hang that I first blundered into last night, which probably is unrelated but which might be hel

Re: [uml-user] UML under VMware

2005-03-02 Thread Jim Carter
> On Sunday 27 February 2005 08:42, Eric Wong wrote: > > Kernel command line: ubd0=/tmp/root_fs root=98:0 > > What does the root=98:0 mean? The major and minor device numbers of /dev/ubda. The kernel needs these to mount the root, if there is no initrd to take care of that. I'm pretty sure tha

Re: [uml-user] SKAS on XEN

2005-02-28 Thread Jim Carter
On Tue, 1 Mar 2005, nils toedtmann wrote: > Unfortunately, within my FC3 UMLs some binaries now crash :-( > While sysV startup (including network, cron, syslog, sshd), > bash, find, host, ping, ... all work fine, others like > /bin/rpm or /bin/ls segfault. /usr/bin/vim also segfaults, > but when

RE: [uml-user] Telnet (IPV6) on port

2005-02-27 Thread Jim Carter
On Mon, 28 Feb 2005, Adil Mujeeb, Noida wrote: > > But if I telnet with : > > telnet ::1 9001 > > it gives message connection refused. > > >>> I have mentioned that "I have built the UML binary with ipv6 support". > When compiling the UML, i have selected the option ipv6 support and add it > in

Re: [uml-user] Telnet (IPV6) on port

2005-02-27 Thread Jim Carter
On Sat, 26 Feb 2005, Adil Mujeeb, Noida wrote: > I am using 2.4.26 linux source and patch it with uml-patch-2.4.26-3 patch. > I have built the uml binary with ipv6 support and my host has ipv6 module > loaded. > --snip-- > But if I telnet with : > telnet ::1 9001 > it gives message connection ref

Re: [uml-user] Dev filesystem in config file

2005-02-27 Thread Jim Carter
On Sun, 27 Feb 2005, Halldór Gylfason wrote: > I was just setting up the 2.6.9 version of UML, but when booting up the > terminals did not come up, and INIT complained with this remark: > > INIT: Id "0" respawning too fast: disabled for 5 minutes > .. > > Earlier posts on this mailing list indic

Re: [uml-user] pty allocation

2005-02-25 Thread Jim Carter
On Thu, 24 Feb 2005, Jurgen Defurne wrote: > Is there a way to allocate always the same pty to the same instance of UML ? > > That way, I could eg. startup a screen session wich connects automatically a > number of consoles to all allocated ptys. According to the UML howto, if you make something

Re: [uml-user] UML scheduling

2005-02-25 Thread Jim Carter
On Thu, 24 Feb 2005, Gordon Russell wrote: > We have a cluster of 5 machines, each running about 15 UMLs. Things > seem to run great for a while, then performance of the UMLs seems to > die for a while. > --snip-- > Machines are all 1GB or better, 2GHz or better, on a 0.1GB network > backbone. W

Re: [uml-user] Linux hangs

2005-02-24 Thread Jim Carter
On Thu, 24 Feb 2005 [EMAIL PROTECTED] wrote: > I do notice that it prints out "Partition check : > ubda : unknown partition table" If you use a partitioning tool, like Gnu parted, from within the guest, you can actually partition your simulated disc. After that, this

Re: [uml-user] Any tricks to speed up or cheat the entropy feeding /dev/random in user-mode-linux?

2005-02-23 Thread Jim Carter
On Mon, 21 Feb 2005, Peder Chr. Nørgaard wrote: > durned thing. A closer investigation showed that the installation hangs in > program "ipsec rsasigkey" reading /dev/random. > > Now I have studied the driver/char/random.c for a while. It looks as if it > works allright, also in user-mode-linu

Re: [uml-user] Host Kernel failure when ping testing

2005-02-23 Thread Jim Carter
On Sat, 19 Feb 2005, Millis Miller wrote: > I am having a strange problem when trying to ping a UML guest from the > host, right after I have the guest eth0 come up (both Debian). > --snip-- > host#: ping > > and the guest UML then immediately bombs out with a segmentation fault. > > (I

Re: [uml-user] COW questions

2005-02-17 Thread Jim Carter
On Fri, 11 Feb 2005, Fermín Galán Márquez wrote: > mount root_fs /mnt/uml -o loop > vi /mnt/uml/etc/hosts (or whatever) > ... > umount /mnt/uml > > I wonder if something similar could be done with COW-ed filesystems (created > by a UML booting or with the uml_mkcow utility). I've been doing "uml

Re: [uml-user] UML (kernel 2.6.8) just SIGSTOP s

2005-02-08 Thread Jim Carter
On Mon, 7 Feb 2005, Blaisorblade wrote: > On Sunday 06 February 2005 06:43, Jim Carter wrote: > > I'm just getting started with UML, and can't get past square 1. UML > > just gives itself SIGSTOP. Version info: > > --snip-- > Well, this problem was described

Re: [uml-user] UML (kernel 2.6.8) just SIGSTOP s

2005-02-06 Thread Jim Carter
On Sun, 6 Feb 2005, Jeff Dike wrote: > [EMAIL PROTECTED] said: > > I'm just getting started with UML, and can't get past square 1. UML > > just gives itself SIGSTOP. Version info: > With bizarre behavior like this, I would suspect the host. > Is this a kernel that's known to be able to run UML?

[uml-user] UML (kernel 2.6.8) just SIGSTOP s

2005-02-05 Thread Jim Carter
I'm just getting started with UML, and can't get past square 1. UML just gives itself SIGSTOP. Version info: CPU:i86, Pentium 3 Mobile (Coppermine), 1.0 GHz System: Dell Inspiron 4100, 256 MB RAM Distro: SuSE 9.2 Host kernel:2.6.8 (SuSE build: kernel-default-2.6.8-