Re: [uml-user] UML crash in copy_from_user()

2009-08-29 Thread Nelson Castillo
On Sat, Aug 29, 2009 at 9:49 AM, Manish Katiyar wrote: > Hi, > > I am trying to write a module in which I have an ioctl through which I > pass a userspace structure. The handler for the ioctl looks like > below. > > 203 int > 204 ohsm_enable(unsigned long arg) > 205 { > 206 > 207   int ret = 0; > 2

[uml-user] UML + Lustre and 2.6.18

2007-12-05 Thread Nelson Castillo
Hi. I've read that Lustre Developers (http://wiki.lustre.org) use UML to debug. I would like to use UML to test Lustre. I noticed that they provide patches for Linux 2.6.18 (vanilla), but it seems this version does not build for UML. So, my question is: * Are there patches that allow me to build

Re: [uml-user] UML & Mandriva 2006: hangs during boot ?

2006-10-16 Thread Nelson Castillo
> I tried following the instructions under "Diagnosing Problems" on > the UML website but it looks like this package wasn't compiled with > debug. Before I start spinning cycles compiling my own kernel & uml > kernel, I wanted to check to see if there was anything else I can do > to debug this pr

[uml-user] UML in a SMP host / 2 proc

2006-10-05 Thread Nelson Castillo
Hi. Is there a way to make UML use more than one processor? Under full load, it uses one of the 2 available processors of the host machine. Regards. -- http://arhuaco.org http://emQbit.com - Take Surveys. Earn Cash. Influ

Re: [uml-user] IRQ simulator

2006-06-14 Thread Nelson Castillo
> > (What sample programs can I read?) > > What exactly are you trying to do? Write a module that can manage an interrupt. And I'd like to use UML for it. I'd like to simulate a hardware device, that might be outside of UML of perhaps compiled in in the kernel. I'm doing some tests with the paral

Re: [uml-user] IRQ simulator

2006-06-13 Thread Nelson Castillo
On 6/13/06, Nelson Castillo <[EMAIL PROTECTED]> wrote: > > Look at an existing driver under arch/um/drivers. What you want to do is > > generally pretty simple. IRQs are generated by SIGIO on host file > > descriptors and handled through the kernel's normal IRQ mec

Re: [uml-user] IRQ simulator

2006-06-13 Thread Nelson Castillo
> Look at an existing driver under arch/um/drivers. What you want to do is > generally pretty simple. IRQs are generated by SIGIO on host file > descriptors and handled through the kernel's normal IRQ mechanism. Thanks. I've been reading. Can you tell me what should I read both in user space an

[uml-user] IRQ simulator

2006-06-12 Thread Nelson Castillo
Hi, I'm writting a device driver. I'd like to use UML with a "fake" hardware device that generates IRQs. In the driver, I need to catch the IRQ, read to the device and write to the device. How can I get started? Regards. -- http://arhuaco.org/ ___

Re: [uml-user] User Mode Linux panics, host 2.6.16-1-686-smp (CONFIG_HOST_2G_2G)

2006-05-22 Thread Nelson Castillo
On 5/22/06, Jeff Dike <[EMAIL PROTECTED]> wrote: On Mon, May 22, 2006 at 09:49:41PM -0500, Nelson Castillo wrote: > I don't understand this bug. > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366915 > > Shall I enable CONFIG_VMSPLIT_2G in the host and > CONF

[uml-user] User Mode Linux panics, host 2.6.16-1-686-smp (CONFIG_HOST_2G_2G)

2006-05-22 Thread Nelson Castillo
Hi. I'm running Debian, host 2.6.16-1-686-smp. I noticed a similar bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366915 UML Fails when host kernel is linux-image-2.6.16-1-k7 What is the best solution? I don't understand this bug. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366

Re: [uml-user] kernel 2.6 vs kernel 2.4

2005-10-19 Thread Nelson Castillo
On 10/19/05, Fabio <[EMAIL PROTECTED]> wrote: > Hi! > in http://www.user-mode-linux.org/~blaisorblade I found only patches , not > kernel um to download. > > What's wrong? this isn't your homepage? It is. You'll have to compile your kernel. -- Homepage : http://geocities.com/arhuaco The first pr

Re: [uml-user] Count keyboard strokes inside/outside UML

2005-10-02 Thread Nelson Castillo
On 10/2/05, Blaisorblade <[EMAIL PROTECTED]> wrote: > On Sunday 02 October 2005 18:37, Nelson Castillo (cut) > > - What is the best place to intercept keyboard strokes in UML? > > - What is the best place to intercept keyboard strokes in i386? > I think (from casual lurki

[uml-user] Count keyboard strokes inside/outside UML

2005-10-02 Thread Nelson Castillo
Hi. Questions: - What is the best place to intercept keyboard strokes in UML? - What is the best place to intercept keyboard strokes in i386? I'd like to know which file (or function) I'd have to study in order to write a small driver to show how many times I've pushed keys in the keyboard. Mayb

Re: [uml-user] SKAS already in 2.6?

2005-09-28 Thread Nelson Castillo
> Is there a SKAS0 UML binary download > available anywhere? Checking for the skas3 patch in the host...not found UML running in SKAS0 mode Checking PROT_EXEC mmap in /tmp...OK http://pwp.etb.net.co/arhuaco/uml/ If you try the kernel, let me know if it works. Regards. -- Homepage : http://geoc

Re: [uml-user] Which UML to use?

2005-09-28 Thread Nelson Castillo
On 9/28/05, Robin Lee Powell <[EMAIL PROTECTED]> wrote: > On Wed, Sep 28, 2005 at 02:18:40PM +0200, Blaisorblade wrote: > > On Tuesday 27 September 2005 22:08, Robin Lee Powell wrote: > > > Where is the best place to get a 2.4.x UML? I just need the > > > "linux" command itself. > > > > Don't know

Re: [uml-user] Crash with SKAS

2005-09-28 Thread Nelson Castillo
On 9/28/05, Robin Lee Powell <[EMAIL PROTECTED]> wrote: > On Wed, Sep 28, 2005 at 10:04:01AM +0200, chikh omar wrote: > > > > use a root_fs provided by VNUML project and it will work (i > > tested) > > I can't find out from their information what OS the root FS is. I > have little interest in work

Re: [uml-user] Crash vs. hang vs. no network == no UML

2005-09-27 Thread Nelson Castillo
> machine (for instance, mysql will bind a tcp port > and will allow 127.0.0.1 by default on Debian). > > For instance, I tried: > > uml$ mysql -u root -h 10.0.2.2 > and I got: > > Error 1130: Host 'localhost.localdomain' is not allowed > to connect to this MySQL server. Well, I think Debian allow

Re: [uml-user] Crash vs. hang vs. no network == no UML

2005-09-27 Thread Nelson Castillo
> Are there any security implications on the host to using SLIRP? Well, the UML can connect to any port in the host And also to anywhere in the Internet pretending to be your host. I think most programs in your host won't be able to tell if a connection comes from the host of from the UML mac

Re: [uml-user] Crash vs. hang vs. no network == no UML

2005-09-27 Thread Nelson Castillo
> And you should be able to ping your host > (your host's ip is aliased to 10.0.2.2). > > # ping 10.0.2.2 This won't work. This is ICMP You can browse a web page, telnet to a given port, etc. Sorry! > Checkpoint : you should be able to ping google now > and do something with networking. Not

Re: [uml-user] Crash with SKAS

2005-09-27 Thread Nelson Castillo
> > I was there more than one week ago. Check this thread. > > > > http://thread.gmane.org/gmane.linux.uml.user/8318 > > Tried adding LD_ASSUME_KERNEL=2.4.1 to the kernel line: In the UML filesystem, try: mv /lib/tls/ /lib/tls.away And start the UML again. There's a path against the current faq

Re: [uml-user] Crash vs. hang vs. no network == no UML

2005-09-27 Thread Nelson Castillo
> At this point, I have utterly failed to get UML up and working with > networking, and I'm at a loss as to how to continue. It would be nice to debug the sshd issue, and I hope you do it. While you do that, you could get networking using slirp[1], so that you don't get bored while you find the is

Re: [uml-user] Crash with SKAS

2005-09-27 Thread Nelson Castillo
On 9/27/05, Robin Lee Powell <[EMAIL PROTECTED]> wrote: > In my quest to get a working UML, I've tried compiling a version of > 2.6.13.2 with SKAS. I get: > > VFS: Mounted root (ext3 filesystem) readonly. > cannot set up thread-local storage: cannot set up >LDT for thread-local storage I was ther

Re: [uml-user] SIOCSIFFLAGS: No such file or directory

2005-09-27 Thread Nelson Castillo
On 9/27/05, Robin Lee Powell <[EMAIL PROTECTED]> wrote: > On Tue, Sep 27, 2005 at 06:49:04PM -0400, Jeff Dike wrote: > > On Tue, Sep 27, 2005 at 03:15:55PM -0700, Robin Lee Powell wrote: > > > ./um-linux-local-2.6.13.2 mem=128M ubd0=Debian-3.0r2.ext3 > > > con=null con0=fd:0,fd:1 con1=none eth0=dae

Re: [uml-user] SIOCSIFFLAGS: No such file or directory

2005-09-27 Thread Nelson Castillo
> mooix:~# /usr/sbin/sshd -D -d > debug1: sshd version OpenSSH_3.8.1p1 Debian-8.sarge.4 > debug1: read PEM private key done: type RSA > debug1: private host key: #0 type 1 RSA > debug1: read PEM private key done: type DSA > debug1: private host key: #1 type 2 DSA > > Then the UML guest hangs. > > N

Re: [uml-devel] Re: [uml-user] 2.6.13 / cannot set up LDT for thread-local storage

2005-09-16 Thread Nelson Castillo
> I've not yet read the patch, and likely I won't before you generate it with > -u. I was sleepy :) I'm sending it again. I added some text from an email Henrik Nordstrom sent. I checked out the XML sources from SF.net but faq.xml doesn't seem to be the source of faq.html. Regards. -- Homepage

Re: [uml-user] 2.6.13 / cannot set up LDT for thread-local storage

2005-09-16 Thread Nelson Castillo
On 9/16/05, Nelson Castillo <[EMAIL PROTECTED]> wrote: > On 9/13/05, Blaisorblade <[EMAIL PROTECTED]> wrote: > sysvinit should have a way to add a variable to the > environment. Can it be done in intitab? I just fixed the patch for the FAQ. It's much simpler

Re: [uml-user] 2.6.13 / cannot set up LDT for thread-local storage

2005-09-16 Thread Nelson Castillo
On 9/13/05, Blaisorblade <[EMAIL PROTECTED]> wrote: (cut) > > > > What should I try? Do I need a patch? > mv /lib/tls /lib/tls.away, after loop-mounting the filesystem on the host > , or booting with init=/bin/bash (not sure the second will work). I did some tests. I just found out that In Debi

Re: [uml-user] Compiling UML on 2.6.13.1

2005-09-11 Thread Nelson Castillo
On 9/11/05, kpowerinfinity <[EMAIL PROTECTED]> wrote: VFS: Mounted root (ext2 filesystem) readonly.line_ioctl: tty0: ioctl KDSIGACCEPT calledINIT: version 2.84 bootingINIT: Entering runlevel: 5INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevelI a

[uml-user] 2.6.13 / cannot set up LDT for thread-local storage

2005-09-11 Thread Nelson Castillo
Hi. I got this error using UML Linux 2.6.13 (See [1] for the .config) running under a non-skas kernel. Runs well using SKAS.   cannot set up thread-local storage: cannot set up LDT for thread-local storage   Kernel panic - not syncing: Attempted to kill init! The problem arises using Kernel 2.6.

Re: [uml-user] booting

2005-08-10 Thread Nelson Castillo
> [ oops ] > > * The "tar" command failed with error: > > rd/c6d27p4: Cannot mknod: No space left on device > tar: rd/c6d27p5: Cannot mknod: No space left on device > tar: rd/c6d27p6: Cannot mknod: No space left on device > tar: rd/c6d27p7: Cannot mknod: No space left on device > tar: rd/c6d28p1

Re: [uml-user] Resizing ext3 root_fs

2005-03-15 Thread Nelson Castillo
> > Well, this is silly. If you use dd to truncate a file this way you > > lose the trailing byte :) dd if=/dev/zero of=x seek=newsize bs=1 count=0 I just noticed you can use count=0 to avoid the extra byte. So, this seems to be the easiest way to truncate a file in Linux. > I use trivial program

Re: [uml-user] Resizing ext3 root_fs

2005-03-15 Thread Nelson Castillo
kip=1 bs=1 count=1 > t ~$ dd if=t seek=1 of=x count=1 bs=1 ~$ cat x 12 Regards, Nelson.- On Tue, 15 Mar 2005 12:48:41 -0500, Nelson Castillo <[EMAIL PROTECTED]> wrote: > On Tue, 15 Mar 2005 18:14:06 +0100, Blaisorblade <[EMAIL PROTECTED]> wrote: > > On Tuesday 15 Mar

Re: [uml-user] Resizing ext3 root_fs

2005-03-15 Thread Nelson Castillo
On Tue, 15 Mar 2005 18:14:06 +0100, Blaisorblade <[EMAIL PROTECTED]> wrote: > On Tuesday 15 March 2005 16:17, itamar wrote: > > How to resize a ext3 root_fs ? > > > > e2fsck -j ext3 filename > > > > dd if=/dev/zero of=filename bs=1 count=1 seek=newsize conv=notrunc > > > > resize2fs -p filename > >

Re: [uml-user] Resizing ext3 root_fs

2005-03-15 Thread Nelson Castillo
On Tue, 15 Mar 2005 12:17:54 -0300, itamar <[EMAIL PROTECTED]> wrote: > How to resize a ext3 root_fs ? Well, let's see an example. Disclaimer : You're on your own. ~$ dd if=/dev/zero of=test.fs bs=1M count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 0.162605 seconds (644

Re: [uml-user] uml_switch hangs

2005-03-01 Thread Nelson Castillo
Hi Steve. I'm quite sorry I missed your previous reply to a similar message I sent to this mailing list. I'm kinda new to gmail's interface. On Tue, 01 Mar 2005 18:29:07 +, Steve Schmidtke <[EMAIL PROTECTED]> wrote: > Nelson Castillo wrote: > >And uml_switch sa

[uml-user] uml_switch hangs

2005-02-28 Thread Nelson Castillo
Hi. I'm using an UML environment for testing (http://www.geocities.com/arhuaco/doc/uml/uml-drbd-nfs-heartbeat.html) But I think the UML switch utility is crashing. I have bouth the NFS server and the client in the UML network. It works with small file transfers. But it dies with just 1 MB. c

Re: [uml-user] Building a SKAS patched Debian kernel using "make-kpkg"

2005-02-25 Thread Nelson Castillo
Hi. uml_switch is printing: "send_sock sending to fd 4 Resource temporarily unavailable", almost each second... I have 3 UML instances and the host in the uml_switch. Command line : uml_switch -tap uml0 I found an old thread with the same problem: http://www.google.com/search?q=cache:yoYuiOe6

[uml-user] uml_switch says "send_sock sending to fd 4 Resource temporarily unavailable"

2005-02-25 Thread Nelson Castillo
Hi. uml_switch is printing: "send_sock sending to fd 4 Resource temporarily unavailable", almost each second... I have 3 UML instances and the host in the uml_switch. Command line : uml_switch -tap uml0 I found an old thread with the same problem: http://www.google.com/search?q=cache:yoYuiOe6

Re: [uml-user] Building a SKAS patched Debian kernel using "make-kpkg"

2005-02-23 Thread Nelson Castillo
Well. I had some trouble trying to patch kernel 2.6.8 with SKAS... http://arhuaco.blogspot.com/2005/02/skas-kernel-crash.html I ended up using kernel source 2.6.10 from unstable and http://www.user-mode-linux.org/~blaisorblade/patches/skas3-2.6/host-skas3-2.6.10-v7.patch Patch applied almost cle