Re: [uml-user] Running User Mode Linux in fedora 15

2011-08-04 Thread richard -rw- weinberger
On Thu, Aug 4, 2011 at 5:19 PM, Gordon Russell drgruss...@gmail.com wrote:
 Thoughts?

FC15 x86_64 or x86_32?
Which host kernel are you using?

-- 
Thanks,
//richard

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread Gordon Russell
2.6.40-4.fc15.x86_64
My user mode linux kernels are all compiled statically on a fedora 32
bit machine.
Can I compile uml as a 64 bit executable instead? I keep thinking uml
must be compiled as a 32 bit executable...

Thanks.
Gordon.

On 4 August 2011 18:14, richard -rw- weinberger
richard.weinber...@gmail.com wrote:
 On Thu, Aug 4, 2011 at 5:19 PM, Gordon Russell drgruss...@gmail.com wrote:
 Thoughts?

 FC15 x86_64 or x86_32?
 Which host kernel are you using?

 --
 Thanks,
 //richard


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread richard -rw- weinberger
On Thu, Aug 4, 2011 at 7:53 PM, Gordon Russell drgruss...@gmail.com wrote:
 2.6.40-4.fc15.x86_64
 My user mode linux kernels are all compiled statically on a fedora 32
 bit machine.
 Can I compile uml as a 64 bit executable instead? I keep thinking uml
 must be compiled as a 32 bit executable...

UML has also a x86_64 port. :-)

Use make linux ARCH=um SUBARCH=i386 to build a 32bit version,
and make linux ARCH=um SUBARCH=x86_64 to build a 64bit version.

-- 
Thanks,
//richard

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread Gordon Russell
Recompiled it on an up to date 64 bit fedora 15 machine. Thats much
easier, but unfortunately just the same error message when I run it.
Disabling SELINUX makes no difference btw.

Additional info:

/var/log/messages also contains:
kernel: [17259.970316] linux[14027] general protection ip:602a2e7f
sp:7fffe11a09e8 error:0 in linux[6000+4aa000]

Here are the last few lines from a strace:
write(2, Checking syscall emulation patch..., 46Checking syscall
emulation patch for ptrace...) = 46
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x60605b50) = 14049
--- {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=14049,
si_status=SIGSTOP, si_utime=0, si_stime=0} (Child exited) ---
wait4(14049, [{WIFSTOPPED(s)  WSTOPSIG(s) == SIGSTOP}], WSTOPPED,
NULL) = 14049
ptrace(0x1f /* PTRACE_??? */, 14049, 0, 0) = 0
--- {si_signo=SIGCHLD, si_code=CLD_TRAPPED, si_pid=14049,
si_status=SIGSEGV, si_utime=0, si_stime=0} (Child exited) ---
wait4(14049, [{WIFSTOPPED(s)  WSTOPSIG(s) == SIGSEGV}], WSTOPPED,
NULL) = 14049
write(2, check_sysemu : expected SIGTRAP,..., 51check_sysemu :
expected SIGTRAP, got status = 2943
) = 51
exit_group(1)   = ?


On 4 August 2011 19:06, richard -rw- weinberger
richard.weinber...@gmail.com wrote:
 On Thu, Aug 4, 2011 at 7:53 PM, Gordon Russell drgruss...@gmail.com wrote:
 2.6.40-4.fc15.x86_64
 My user mode linux kernels are all compiled statically on a fedora 32
 bit machine.
 Can I compile uml as a 64 bit executable instead? I keep thinking uml
 must be compiled as a 32 bit executable...

 UML has also a x86_64 port. :-)

 Use make linux ARCH=um SUBARCH=i386 to build a 32bit version,
 and make linux ARCH=um SUBARCH=x86_64 to build a 64bit version.

 --
 Thanks,
 //richard


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread richard -rw- weinberger
On Thu, Aug 4, 2011 at 8:30 PM, Gordon Russell drgruss...@gmail.com wrote:
 Recompiled it on an up to date 64 bit fedora 15 machine. Thats much
 easier, but unfortunately just the same error message when I run it.
 Disabling SELINUX makes no difference btw.


Ok, I'll look at the issue.
First, I have to grab a FC15 iso. :-)

-- 
Thanks,
//richard

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread richard -rw- weinberger
On Thu, Aug 4, 2011 at 8:30 PM, Gordon Russell drgruss...@gmail.com wrote:
 Recompiled it on an up to date 64 bit fedora 15 machine. Thats much
 easier, but unfortunately just the same error message when I run it.
 Disabling SELINUX makes no difference btw.


On a FC15 LiveCD UML works fine.
Are you using the default config?

-- 
Thanks,
//richard

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread Gordon Russell
If you mean the default guest kernel config then no...
It is the default kernel config with extra stuff added to allow it to
run Fedora properly.
So additional things like cgroups, iptables, selinux, traffic
management, plus it is configured as a static build.
Plus modules are disabled (all modular components are built in
instead) to save me copying modules into the guest when I change
kernels.
.
Why would that impact the ptrace tests? And btw which kernel did you use?
Note all the kernels i have run under fedora 13 without the error.

But if you mean the default Fedora install, then yes it is the Web
Server group install and thats all.

However with you pointing out that I can run it as a 64 bit
application I dont need static linking, so I could undo that one and
give it another go.

Did the livecd have 2.6.40-4 as the host kernel? It is just a feeling
but I thought it was working ok on my development server before I
rolled it out over the other servers, and originally fedora 15 as
installed was 2.6.39-something. I could revert the kernel update and
see...

Thanks for your time.
Gordon.

On 4 August 2011 20:24, richard -rw- weinberger
richard.weinber...@gmail.com wrote:
 On Thu, Aug 4, 2011 at 8:30 PM, Gordon Russell drgruss...@gmail.com wrote:
 Recompiled it on an up to date 64 bit fedora 15 machine. Thats much
 easier, but unfortunately just the same error message when I run it.
 Disabling SELINUX makes no difference btw.


 On a FC15 LiveCD UML works fine.
 Are you using the default config?

 --
 Thanks,
 //richard


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread richard -rw- weinberger
On Thu, Aug 4, 2011 at 9:45 PM, Gordon Russell drgruss...@gmail.com wrote:
 Did the livecd have 2.6.40-4 as the host kernel? It is just a feeling
 but I thought it was working ok on my development server before I
 rolled it out over the other servers, and originally fedora 15 as
 installed was 2.6.39-something. I could revert the kernel update and
 see...


*Gnahh*, the LiveCD comes with 2.6.38.
Upgrading to 2.6.40 (aka 3.0) breaks UML.
On a vanilla 3.0 kernel UML works fine.

I guess Fedoras kernel contains some ptrace() patches which break UML.
Can you file a bug report or shall I?

-- 
Thanks,
//richard

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread Gordon Russell
Thanks for looking into this for me.
Ideally could you file the bug report? If they ask any followon
questions you will probably know the answer!
Let me know the bug number and I will put in me too if that will help.
I never worked out why fedora/redhat insists on patching the kernel
the way they do...
I have opened the yum kernel source file and there are quite a few
Fedora-related patches. Any one could be the issue.
Maybe I will just work out how to revert the kernel update in the
interim... there is probably a YUM option for that...

Thanks again. As least it was good to know I wasnt doing something
silly this time.
Gordon

On 4 August 2011 21:43, richard -rw- weinberger
richard.weinber...@gmail.com wrote:
 On Thu, Aug 4, 2011 at 9:45 PM, Gordon Russell drgruss...@gmail.com wrote:
 Did the livecd have 2.6.40-4 as the host kernel? It is just a feeling
 but I thought it was working ok on my development server before I
 rolled it out over the other servers, and originally fedora 15 as
 installed was 2.6.39-something. I could revert the kernel update and
 see...


 *Gnahh*, the LiveCD comes with 2.6.38.
 Upgrading to 2.6.40 (aka 3.0) breaks UML.
 On a vanilla 3.0 kernel UML works fine.

 I guess Fedoras kernel contains some ptrace() patches which break UML.
 Can you file a bug report or shall I?

 --
 Thanks,
 //richard


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
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] Running User Mode Linux in fedora 15

2011-08-04 Thread richard -rw- weinberger
On Thu, Aug 4, 2011 at 10:56 PM, Gordon Russell drgruss...@gmail.com wrote:
 Thanks for looking into this for me.
 Ideally could you file the bug report? If they ask any followon
 questions you will probably know the answer!
 Let me know the bug number and I will put in me too if that will help.

https://bugzilla.redhat.com/show_bug.cgi?id=728379

-- 
Thanks,
//richard

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user