[uml-user] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Hi all,

I've been reading up on UML and decided I want to give it a try.  I've
done some reading about it, and just have a few questions which I want
to get straight in my head, so hopefully some kind souls here will
help clarify them for me.

Am I right in thinking that the SKAS patch is only needed on the host
kernel (and not the guests)?  That being the case, which version of it
do I want?  From reading the list archives, I've seen mention of
SKAS4, although I can't seem to find a place to download that; is it
unofficial at this point?  The host kernel is linux 2.6.25.  Which
version of SKAS would be suited for this version?

Also, am I able to take some .iso (say some linux distro) and boot
from that using UML?  Are there any caveats to doing so?  Would I need
some base image first?

I'm thinking of setting up a UML server which will house my UML
instances -- this seems like a good idea, no?   Are there any tips for
this as well?

By all means, do point me to various pieces of
information/documentation if some or all of my questions are answered
there --- I do not mind reading.  :)

Thank you in advance,

David

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
>
> Hi all,
Hello David,

>Am I right in thinking that the SKAS patch is only needed on the host
> kernel (and not the guests)?
The SKAS4 patch is for both guest and host kernel.
That's not like the skas3 patch which is only for the host kernel. But
now, it doesn't matter! Use the skas4 patch!

> That being the case, which version of it
> do I want?
Jeff Dike released two versions of the skas4 patch, the first one is
for the 2.6.24 host and guest kernel, the last one is for the 2.6.25
host and guest kernel. You may fint them on the mailing list archive.

>  From reading the list archives, I've seen mention of
> SKAS4, although I can't seem to find a place to download that; is it
> unofficial at this point?
I don't think so. Since the first release of the first skas4 patch,
they have been released through this mailin list. So, as I told
before, you may find all patches you need in the mailing list archive.

> The host kernel is linux 2.6.25.  Which
> version of SKAS would be suited for this version?
The latest one released by Jeff Dike in this list.

>
> Also, am I able to take some .iso (say some linux distro) and boot
> from that using UML?
Of course. There are a lot of ready to use images, for example you can
find them at http://uml.nagafix.co.uk/

> Are there any caveats to doing so?
No risks..

> Would I need
> some base image first?
You may use some images you want from nagafix and try them.


>
> I'm thinking of setting up a UML server which will house my UML
> instances -- this seems like a good idea, no?
Why not? It's one of the main uses of UML.

> Are there any tips for
> this as well?
>
> By all means, do point me to various pieces of
> information/documentation if some or all of my questions are answered
> there --- I do not mind reading.  :)
It depends on what you're looking for.
Ask and you'll be replied! :)

>
> Thank you in advance,
Not at all!

Flavio

>
> David
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

2008/5/25 Flavio <[EMAIL PROTECTED]>:
> The SKAS4 patch is for both guest and host kernel.
> That's not like the skas3 patch which is only for the host kernel. But
> now, it doesn't matter! Use the skas4 patch!

Ah, right -- thank you, and as you say I'll search the archives to
find SKAS4.  Does this mean (unlike SKAS3, as you mention) that when
using SKAS4, I will have to compile the guests with SKAS4 as well as
the host in order to make use of it?  That seems a little... odd?

> Ask and you'll be replied! :)

Thank you - you have been very informative and kind.

David

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> Ah, right -- thank you, and as you say I'll search the archives to
> find SKAS4.
Yes, here is the last patch:
http://marc.info/?l=user-mode-linux-devel&m=121088437926424&w=2

> Does this mean (unlike SKAS3, as you mention) that when
> using SKAS4, I will have to compile the guests with SKAS4 as well as
> the host in order to make use of it?
Yes that's right!
I think it's a good thing to use only one patch for both guest and host kernel.
You have to apply that patch to the host sources and to the guest
kernel sources.
It's easy! :)

>  That seems a little... odd?
No... I don't think so! :) It's very useful!

>
>> Ask and you'll be replied! :)
>
> Thank you - you have been very informative and kind.
It was a pleasure for me.

Enjoy UML.

Flavio

>
> David
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

2008/5/25 Flavio <[EMAIL PROTECTED]>:
> 2008/5/25 David Chanters <[EMAIL PROTECTED]>:
>> Ah, right -- thank you, and as you say I'll search the archives to
>> find SKAS4.
> Yes, here is the last patch:
> http://marc.info/?l=user-mode-linux-devel&m=121088437926424&w=2

Ah, yes.  I found that before you sent this reply, so at least I got
that right.  :)

I saved the entire diff output and attempted to apply it to the
vanilla kernel 2.6.25 sources, but there's numerous rejects all over
the place.  Do I need the GIT sources of the kernel for this to apply?

>> Does this mean (unlike SKAS3, as you mention) that when
>> using SKAS4, I will have to compile the guests with SKAS4 as well as
>> the host in order to make use of it?
> Yes that's right!
> I think it's a good thing to use only one patch for both guest and host 
> kernel.
> You have to apply that patch to the host sources and to the guest
> kernel sources.
> It's easy! :)

Right -- I understand that now.  Thanks.  :)

David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> Flavio --
>
> 2008/5/25 Flavio <[EMAIL PROTECTED]>:
>> 2008/5/25 David Chanters <[EMAIL PROTECTED]>:
>>> Ah, right -- thank you, and as you say I'll search the archives to
>>> find SKAS4.
>> Yes, here is the last patch:
>> http://marc.info/?l=user-mode-linux-devel&m=121088437926424&w=2
>
> Ah, yes.  I found that before you sent this reply, so at least I got
> that right.  :)
>
> I saved the entire diff output and attempted to apply it to the
> vanilla kernel 2.6.25 sources, but there's numerous rejects all over
> the place.  Do I need the GIT sources of the kernel for this to apply?
You have to copy and locally paste only the necessary parts, from
diff --git a/arch/um/include/as-layout.h b/arch/um/include/as-layout.h
to
[...]
+   return ret;
+} <- last line of the patch.

It worked for me.
You know how to apply it, isn't it?

Flavio

>
>>> Does this mean (unlike SKAS3, as you mention) that when
>>> using SKAS4, I will have to compile the guests with SKAS4 as well as
>>> the host in order to make use of it?
>> Yes that's right!
>> I think it's a good thing to use only one patch for both guest and host 
>> kernel.
>> You have to apply that patch to the host sources and to the guest
>> kernel sources.
>> It's easy! :)
>
> Right -- I understand that now.  Thanks.  :)
>
> David.
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

2008/5/25 Flavio <[EMAIL PROTECTED]>:
> You have to copy and locally paste only the necessary parts, from
> diff --git a/arch/um/include/as-layout.h b/arch/um/include/as-layout.h
> to
> [...]
> +   return ret;
> +} <- last line of the patch.
>
> It worked for me.
> You know how to apply it, isn't it?

Yes I do. I did that (saving the patch as skas4-uml.patch), and at the
top-level of the kernel sources ran:

patch -p1 < ./skas4-uml.patch

This resulted in numerous .rej -- I include the list here for
completeness.  This is using 2.6.25 sources downloaded from kernel.org
with no other patches applied other than me trying to apply this one,
of course.  :)

Thanks so much for your patience, Flavio.

David.

-
./kernel/signal.c.rej
./kernel/fork.c.rej
./kernel/Makefile.rej
./kernel/exit.c.rej
./kernel/ptrace.c.rej
./arch/x86/ia32/ia32_signal.c.rej
./arch/x86/ia32/ia32entry.S.rej
./arch/x86/kernel/signal_64.c.rej
./arch/x86/kernel/entry_64.S.rej
./arch/x86/kernel/entry_32.S.rej
./arch/x86/kernel/syscall_table_32.S.rej
./arch/x86/kernel/ptrace.c.rej
./arch/x86/kernel/signal_32.c.rej
./arch/x86/mm/fault.c.rej
./arch/um/os-Linux/start_up.c.rej
./arch/um/os-Linux/skas/process.c.rej
./arch/um/os-Linux/skas/mem.c.rej
./arch/um/os-Linux/sys-i386/registers.c.rej
./arch/um/kernel/signal.c.rej
./arch/um/kernel/process.c.rej
./arch/um/kernel/um_arch.c.rej
./arch/um/kernel/reboot.c.rej
./arch/um/kernel/ptrace.c.rej
./arch/um/kernel/skas/process.c.rej
./arch/um/kernel/skas/mmu.c.rej
./arch/um/kernel/skas/syscall.c.rej
./arch/um/include/as-layout.h.rej
./arch/um/include/sysdep-i386/ptrace.h.rej
./arch/um/include/skas/mm_id.h.rej
./arch/um/include/sysdep-x86_64/ptrace.h.rej
./arch/um/sys-x86_64/signal.c.rej
./arch/um/sys-x86_64/syscalls.c.rej
./arch/um/sys-x86_64/stub.S.rej
./arch/um/sys-i386/signal.c.rej
./arch/um/sys-i386/ldt.c.rej
./arch/um/sys-i386/tls.c.rej
./arch/um/sys-i386/stub.S.rej
./mm/Makefile.rej
./include/asm-um/desc.h.rej
./include/asm-um/thread_info.h.rej
./include/asm-um/processor-i386.h.rej
./include/asm-generic/siginfo.h.rej
./include/linux/signalfd.h.rej
./include/linux/init_task.h.rej
./include/linux/sched.h.rej
./include/asm-x86/ia32.h.rej
./include/asm-x86/unistd_32.h.rej
./include/asm-x86/thread_info_64.h.rej
./include/asm-x86/thread_info_32.h.rej
--

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
>> It worked for me.
>> You know how to apply it, isn't it?
>
> Yes I do. I did that (saving the patch as skas4-uml.patch), and at the
> top-level of the kernel sources ran:
>
> patch -p1 < ./skas4-uml.patch
>
> This resulted in numerous .rej -- I include the list here for
> completeness.  This is using 2.6.25 sources downloaded from kernel.org
> with no other patches applied other than me trying to apply this one,
> of course.  :)
Vanilla kernel is ok.
Try this patch: http://rapidshare.com/files/117542575/skas4-2.6.25.patch.html
It's the patch I have on my own PC and I have uploaded for you.
It works for me.

Flavio

>
> Thanks so much for your patience, Flavio.
>
> David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

2008/5/25 Flavio <[EMAIL PROTECTED]>:
> Try this patch: http://rapidshare.com/files/117542575/skas4-2.6.25.patch.html
> It's the patch I have on my own PC and I have uploaded for you.
> It works for me.

I feel like an idiot.  Thank you so much - that patch does indeed
apply cleanly.  I realize where I went wrong as well --- I had
literally just copied and pasted without splitting up the subsections
as your patch does [1].

Now it's compiling the host kernel.  And I am just reading up about
guest kernels and filesystems.  I am sure I will be back here with
more questions, but I wanted to thank you personally for being so
patient and helpful to me; a rare thing for many open source projects.

Thank you!

David

[1] As a sidenote, might I suggest you consider hosting that patch
elsewhere on another server?  It took me ages to get around the
CAPTCHA before I could download the file.  Only I think others might
benefit from it.   :)

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> Now it's compiling the host kernel.  And I am just reading up about
> guest kernels and filesystems.  I am sure I will be back here with
> more questions, but I wanted to thank you personally for being so
> patient and helpful to me; a rare thing for many open source projects.

Would anyone object to me putting some notes together for the UML wiki
regarding SKAS4?  Everything I've read there seems to be geared up for
SKAS3, and it would be nice to have a comparison there regarding the
differences; both in terms of a technical one and what the user needs
to do with them.

I will put some notes together and send them to this list for review
--- one thing I am assuming with SKAS4 is that there is no
CONFIG_PROC_MM kernel config option anymore?  Indeed, in all the
literature I've read about compiling host kernels with SKAS, they've
told me I need to set this to 'y' yet I no longer see this in the
kernel 2.6.25 .config file in the kernel source tree.

Little differences like that, no matter how new or experimental SKAS4
is, makes all the difference when reading existing literature on the
subject.  :)

Just a thought.  I would want to give something back if nothing else!

David

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> Flavio --
>
> 2008/5/25 Flavio <[EMAIL PROTECTED]>:
>> Try this patch: http://rapidshare.com/files/117542575/skas4-2.6.25.patch.html
>> It's the patch I have on my own PC and I have uploaded for you.
>> It works for me.
>
> I feel like an idiot.  Thank you so much - that patch does indeed
> apply cleanly.  I realize where I went wrong as well --- I had
> literally just copied and pasted without splitting up the subsections
> as your patch does [1].
Don't worry! :) It's OK!
Sometimes happens that even though you correctly copy the patch, it
may not properly works, due to some "invisible"ascii characters. It's
actually suggested to copy the patch from the text version of the
e-mail in order to not copy bad formatted characters.
Anyway, the most important thing is that it's working right now for you too.

>
> Now it's compiling the host kernel.  And I am just reading up about
> guest kernels and filesystems.  I am sure I will be back here with
> more questions, but I wanted to thank you personally for being so
> patient and helpful to me; a rare thing for many open source projects.
Thanks a lot, I appreciate you for your thanks.
It's a real pleasure for me to help people, when I'm able to do that. Especially
in open source projects.

>
> Thank you!
>
> David
>
> [1] As a sidenote, might I suggest you consider hosting that patch
> elsewhere on another server?  It took me ages to get around the
> CAPTCHA before I could download the file.  Only I think others might
> benefit from it.   :)
It would be a great idea but, as you know, there's an official UML
website. Patches should be available at that site:
www.user-mode-linux.org at the download section. So that's no
necessity to place them on another server, but simply they could be
uploaded at that URL.

Regards,

Flavio

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

2008/5/25 Flavio <[EMAIL PROTECTED]>:
> It would be a great idea but, as you know, there's an official UML
> website. Patches should be available at that site:
> www.user-mode-linux.org at the download section. So that's no
> necessity to place them on another server, but simply they could be
> uploaded at that URL.

OK -- that's no problem then, providing there is such a place.  :)  I
note though that the URL you gave me (www.user-mode-linux.org) seems
to take me straight to the sourceforge page for UML -- are they now
one and the same resource?  Only there really is no difference (unless
I am being blind) -- and indeed, it was from the sourceforge page I
was made aware of the wiki in the first place.

Or am I missing where the official UML page is located, if it's not on
sourceforge?  I ask because it's not the first time I have seen
documentation link to user-mode-linux.org, only for it to link back to
sourceforge.

Kindly!

David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> Flavio --
>
> 2008/5/25 Flavio <[EMAIL PROTECTED]>:
>> It would be a great idea but, as you know, there's an official UML
>> website. Patches should be available at that site:
>> www.user-mode-linux.org at the download section. So that's no
>> necessity to place them on another server, but simply they could be
>> uploaded at that URL.
>
> OK -- that's no problem then, providing there is such a place.  :)  I
> note though that the URL you gave me (www.user-mode-linux.org) seems
> to take me straight to the sourceforge page for UML -- are they now
> one and the same resource?  Only there really is no difference (unless
> I am being blind) -- and indeed, it was from the sourceforge page I
> was made aware of the wiki in the first place.
Hello,
http://www.user-mode-linux.org/ simply redirect to
http://user-mode-linux.sourceforge.net/.
It's the official UML web site. I wrote the first one because it's shorter! :)


>
> Or am I missing where the official UML page is located, if it's not on
> sourceforge?
No, you didn't miss anything! You're on the right place.

>  I ask because it's not the first time I have seen
> documentation link to user-mode-linux.org, only for it to link back to
> sourceforge.
>
> Kindly!
>
> David.
>
Feel free to ask more questions here.

Regards,

Flavio
http://www.vdd-project.org

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

> No, you didn't miss anything! You're on the right place.

Ah good.  :)

> Feel free to ask more questions here.

Thank you.

I've built the host kernel now, and booted from it just fine.  (SKAS
is in there somewhere).  I am now following this to build the guest
kernel:

http://uml.jfdi.org/uml/Wiki.jsp?page=BuildingUML

In the same sources as the host kernel, I ran the following commands:

% make menuconfig ARCH=um
% m make oldconfig ARCH=um
% make linux ARCH=um

That all went well, and I do now have a "linux" and "vmlinux" binary
in the top level sources.  Whilst that was compiling I downloaded
BusyBox from here (http://uml.nagafix.co.uk/).  However when I ran the
following command:

linux-2.6.25% ./linux udb0=~/tmp/BusyBox-1.5.0-x86-root_fs

I get the following "error":

Locating the top of the address space ... Address 0x0 no good?

Now, I've googled for "Address 0x0 no good" and get one hit to a
Chinese website -- so I assuming I have neglected to do something, but
what?  I hope it's nothing too idiotic on my part, hehe.

Thanks once again in advance,

David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> % m make oldconfig ARCH=um

That should of course read:

% make oldconfig ARCH=um

Sorry about that!  Need more coffee.

David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread Flavio
2008/5/26 David Chanters <[EMAIL PROTECTED]>:
> Flavio --
>
>> No, you didn't miss anything! You're on the right place.
>
> Ah good.  :)
>
>> Feel free to ask more questions here.
>
> Thank you.
>
> I've built the host kernel now, and booted from it just fine.  (SKAS
> is in there somewhere).  I am now following this to build the guest
> kernel:
>
> http://uml.jfdi.org/uml/Wiki.jsp?page=BuildingUML
>
> In the same sources as the host kernel, I ran the following commands:
>
> % make menuconfig ARCH=um
> % m make oldconfig ARCH=um
make oldconfig is not necessary if you do menuconfig.

> % make linux ARCH=um
>
> That all went well, and I do now have a "linux" and "vmlinux" binary
> in the top level sources.  Whilst that was compiling I downloaded
> BusyBox from here (http://uml.nagafix.co.uk/).  However when I ran the
> following command:
>
> linux-2.6.25% ./linux udb0=~/tmp/BusyBox-1.5.0-x86-root_fs
I don't understand why this command line causes that problem

I usually run UML using something like that:
linux ubd0=rootfs ubd1=swapfs eth0=tuntap,,,10.0.0.3 mem=512M

where linux is the kernel executable you've just made with 'make linux ARCH=um'.
It should run even with your command line. Try to give it also the mem
and the ubd1 parameter, which are respectively, the amount of RAM and
a swap partition.
I tried the BusyBox image for amd64 and it perfectly works.

>
> I get the following "error":
>
> Locating the top of the address space ... Address 0x0 no good?
>
> Now, I've googled for "Address 0x0 no good" and get one hit to a
> Chinese website -- so I assuming I have neglected to do something, but
> what?  I hope it's nothing too idiotic on my part, hehe.
Humans being doing something make errors. Who doesn't make anything
can't make mistakes!!! :)
I don't know what the problem is.

Try a different root filesystem image.

>
> Thanks once again in advance,
Not at all,

Flavio

>
> David.
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Flavio --

2008/5/25 Flavio <[EMAIL PROTECTED]>:
> I tried the BusyBox image for amd64 and it perfectly works.

And now it works for me... almost.  :)

Using strace, I realised that for whatever reason I must run:

% ./linux root=

As "root" since strace showed a "permission denied" error.

Upon running:

# sudo ./linux ubd0=/home/david/tmp/BusyBox-1.5.0-x86-root_fs root=/dev/ubda

It spawns an xterm but rather spawning a getty (as I would expect)
just gives me an xterm with a title of:

"Virtual Console #5 (z8g3Va)"

and a prompt to the CWD of the kernel which root an as above.  In the
other terminal (which spawned the Virtual Console xterm) the last line
I see is:

console [mc-1] enabled
 ubda: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
line_ioctl: tty0: unknown ioctl: 0x541e

Should't I see a getty at I some point?

As always, thanks in advance!

David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] New user: Basic UML questions.

2008-05-25 Thread David Chanters
Sorry for answering my own questions --

2008/5/25 David Chanters <[EMAIL PROTECTED]>:
> Should't I see a getty at I some point?

Using a different FS than busybox worked.  I tried the
Debian-4.0-x86-root_fs from the aforementioned site, and all worked
well.  But using the following:

sudo ./linux ubd0=/home/n6tadam/Debian-4.0-x86-root_fs root=/dev/ubda

Didn't spawn a single xterm.  I rather liked that feature --- can I
have it back?

Thanks!  Sorry for all the noise!

David.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user