JDK 1.5 in a Jail

2006-08-18 Thread Bret J Esquivel
Hi,

I am trying to install the JDK 1.5.0 port inside of a FreeBSD 6.1 Jail.
(/usr/ports/java/jdk15) I have linux compat configured on the main host on
the box, along with the linprocfs enabled. Chad Shire had posted about this
same issue before, stating that he posted the answer earlier in the
archives; however, I can not find it.


Current pertinent mounts:

linprocfs   4   40   100%
/usr/compat/linux/proc
/usr/compat  66769520 6185766 5524219410%
/usr/jails/ox1.immense.net/compat
linprocfs   4   40   100%
/usr/jails/ox1.immense.net/compat/linux/proc


ox1# make install
===  Building for jdk-1.5.0p3_3
ERROR: You must have LINPROCFS mounted before
starting to build the native JDK 1.5.0.

You may do it with the following commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1


Any insight?

Thank you



Bret J. Esquivel
[EMAIL PROTECTED]
Immense Networks LLC
http://www.immense.net



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: JDK 1.5 in a Jail

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 10:45 AM, Bret J Esquivel wrote:


ox1# make install
===  Building for jdk-1.5.0p3_3
ERROR: You must have LINPROCFS mounted before
starting to build the native JDK 1.5.0.

You may do it with the following commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1


Any insight?


Did you try what it says above (in the master)?  (mounting a  
linprocfs inside the jail while in the master)?


Chad




Thank you


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: JDK 1.5 in a Jail

2006-08-18 Thread Bret J Esquivel
Hi Chad,

Yeah I've tried below inside the master:

mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/linux/proc

with df containing:

linprocfs   4   40   100%
/usr/jails/ox1.immense.net/compat/linux/proc

Still no joy.


Thanks,


Bret J. Esquivel
[EMAIL PROTECTED]
Immense Networks LLC
http://www.immense.net


-Original Message-
From: Chad Leigh -- Shire.Net LLC [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 11:54 AM
To: Bret J Esquivel
Cc: freebsd-questions@FreeBSD.org
Subject: Re: JDK 1.5 in a Jail


On Aug 18, 2006, at 10:45 AM, Bret J Esquivel wrote:

 ox1# make install
 ===  Building for jdk-1.5.0p3_3
 ERROR: You must have LINPROCFS mounted before
 starting to build the native JDK 1.5.0.

 You may do it with the following commands:

 # kldload linprocfs

 and

 # mount -t linprocfs linprocfs /compat/linux/proc

 *** Error code 1


 Any insight?

Did you try what it says above (in the master)?  (mounting a  
linprocfs inside the jail while in the master)?

Chad



 Thank you

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: JDK 1.5 in a Jail

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 10:54 AM, Bret J Esquivel wrote:


Hi Chad,

Yeah I've tried below inside the master:

mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/ 
linux/proc


with df containing:

linprocfs   4   40   100%
/usr/jails/ox1.immense.net/compat/linux/proc

Still no joy.



Hmm.  I have not done 1.5 but I did build 1.4 inside a jail and it  
had the same message and my remembrance was that I had done what you  
did above and it worked.  But it was over a year ago so I don't  
remember any details or gotchas.  Sorry


Chad



-Original Message-
From: Chad Leigh -- Shire.Net LLC [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 11:54 AM
To: Bret J Esquivel
Cc: freebsd-questions@FreeBSD.org
Subject: Re: JDK 1.5 in a Jail


On Aug 18, 2006, at 10:45 AM, Bret J Esquivel wrote:


ox1# make install
===  Building for jdk-1.5.0p3_3
ERROR: You must have LINPROCFS mounted before
starting to build the native JDK 1.5.0.

You may do it with the following commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1


Any insight?


Did you try what it says above (in the master)?  (mounting a
linprocfs inside the jail while in the master)?

Chad




Thank you


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net






---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: JDK 1.5 in a Jail

2006-08-18 Thread Christian Hiris
On Friday, 18. August 2006 18:54, Bret J Esquivel wrote:
 Hi Chad,

 Yeah I've tried below inside the master:

 mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/linux/proc

 with df containing:

 linprocfs   4   40   100%
 /usr/jails/ox1.immense.net/compat/linux/proc

 Still no joy.

The security.jail.enforce_statfs MIB entry defaults to 2, while /sbin/mount 
(as used in the Makefile) requires value 1 (or 0) to produce the expected 
result.

You can try the command sysctl security.jail.enforce_statfs=1 outside the 
jail. The MIB entry is documented in man 8 jail.

Cheers, 
ch
 
-- 
Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x466A7521
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu


pgpeM0HaZwCDH.pgp
Description: PGP signature