Re: jail manpage
On Feb 10, 2005, at 12:50 AM, r p wrote: On Wed, 9 Feb 2005 14:12:06 -0600, Josh Paetzel [EMAIL PROTECTED] wrote: I've been trying get jails working on my 5.3-RELEASE-p2 machine. I've tried following the instructions in man 8 jail D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D cd etc make distribution DESTDIR=$D mount_devfs devfs $D/dev cd $D ln -sf dev/null kernel It dies at make world DESTDIR=$D with the following error: cc -0 -pipe -I/usr/obj/usr/src/i386/legacy/usr/include c/usr/src/games/fortune/strfile/strfile.c make: don't know how to make /jail/test/usr/lib/libc.a. Stop ***Error code 2 Stopping /usr/src Hi, I had the same problem. Googling showd me to use the line env DESTDIR=$D make world instead of make world DESTDIR=$D. After I did this it all worked fine. Hmm, I will have to try that. I posted this same problem a few days ago. Never did get an answer, though I figured out a solution myself. This problem actually goes back to when 5.3 first came out. There was a problem and the fix got committed to the -STABLE branch but it appears it never got into the -RELEASE branch. I went to 5.3-RELEASE-p5 about a week ago and had a similar or same problem as the OP. My solution was to take the Makefile and Makefile.inc from the root of the source directory from a -STABLE src tree and stick them in my -RELEASE source tree. That allowed me to build fine and the jails work just fine. Of course, this is not the best solution. Chad ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
jail manpage
I've been trying get jails working on my 5.3-RELEASE-p2 machine. I've tried following the instructions in man 8 jail D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D cd etc make distribution DESTDIR=$D mount_devfs devfs $D/dev cd $D ln -sf dev/null kernel It dies at make world DESTDIR=$D with the following error: cc -0 -pipe -I/usr/obj/usr/src/i386/legacy/usr/include c/usr/src/games/fortune/strfile/strfile.c make: don't know how to make /jail/test/usr/lib/libc.a. Stop ***Error code 2 Stopping /usr/src Surprisingly I found a post to -questions that has the exact same error using the same commands that I did. The thread never does make clear as to whether the poster got it working. [EMAIL PROTECTED] I found a tutorial @ http://www.samag.com/documents/s=1151/sam0105d/0105d.htm D=/home/jpaetzel/jail cd /usr/src make hierarchy DESTDIR=$D make obj make depend make all make install DESTDIR=$D cd $D ln -sf dev/null kernel ifconfig fxp0 alias 10.0.0.11 netmask 255.255.255.255 start the jail: jail /home/jpaetzel/jail jail.tcbug.org /bin/sh I'm still unclear on how to start the jail at boot time I put the following into /etc/rc.conf jail_enable=YES jail_list=vjail jail_vjail_rootdir=/home/jpaetzel/jail jail_vjail_hostname=jail.tcbug.org jail_vjail_ip=10.0.0.11 jail_vjail_exec=/bin/sh /etc/rc As far as I can tell jail is not starting at boot time. I know I'm sort of rambling (I'm trying to document as I go here) if someone can spot my mistakes I'd appreciate it. :) -- Thanks, Josh Paetzel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail manpage
On Wednesday 09 February 2005 14:32, pete wright wrote: On Wed, 9 Feb 2005 14:12:06 -0600, Josh Paetzel [EMAIL PROTECTED] wrote: I've been trying get jails working on my 5.3-RELEASE-p2 machine. I've tried following the instructions in man 8 jail D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D cd etc make distribution DESTDIR=$D mount_devfs devfs $D/dev cd $D ln -sf dev/null kernel It dies at make world DESTDIR=$D with the following error: cc -0 -pipe -I/usr/obj/usr/src/i386/legacy/usr/include c/usr/src/games/fortune/strfile/strfile.c make: don't know how to make /jail/test/usr/lib/libc.a. Stop ***Error code 2 Stopping /usr/src couple things, I have this process scripted pretty much the same way you have mentioned here with no problems. have you cvsup'd your source tree recenetly...also are you able to do a normal buildworld? I'm running 5.3-RELEASE-p2 but just for kicks I rm -rf'd /usr/src and /usr/obj and did: cvsup to RELENG_5_3 make buildworld make KERNCONF=MYKERNEL buildkernel make KERNCONF=MYKERNEL installkernel reboot make installworld reboot Now I'm running 5.3-RELEASE-p5 Trying the steps outlined in man 8 jail gives me the exact same error that I started with. Surprisingly I found a post to -questions that has the exact same error using the same commands that I did. The thread never does make clear as to whether the poster got it working. [EMAIL PROTECTED] this link does not work http://www.freebsd.org/cgi/getmsg.cgi?fetch=2806914+2810640+/usr/local/www/db/text/2005/freebsd-questions/20050116.freebsd-questions Sorry about that. =pete -- Thanks, Josh Paetzel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail manpage
I'm running 5.3-RELEASE-p2 but just for kicks I rm -rf'd /usr/src and /usr/obj and did: gerneally cvsup'ing /usr/src is enough (don't want to stress the cvsup servers too much if you can avoid it) cvsup to RELENG_5_3 make buildworld make KERNCONF=MYKERNEL buildkernel make KERNCONF=MYKERNEL installkernel reboot make installworld reboot missed a step, did you mergemaster -p and mergemaster? Now I'm running 5.3-RELEASE-p5 Trying the steps outlined in man 8 jail gives me the exact same error that I started with. i'm runnig my buildjail script right now to make sure things are still ok...if i find i problem i'll post back to list... this link does not work http://www.freebsd.org/cgi/getmsg.cgi?fetch=2806914+2810640+/usr/local/www/db/text/2005/freebsd-questions/20050116.freebsd-questions heh thanks thought i've remembered this issue before... Sorry about that. NP -p -- ~~o0OO0o~~ Pete Wright www.nycbug.org NYC's *BSD User Group ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail manpage
On Wednesday 09 February 2005 17:20, pete wright wrote: I'm running 5.3-RELEASE-p2 but just for kicks I rm -rf'd /usr/src and /usr/obj and did: gerneally cvsup'ing /usr/src is enough (don't want to stress the cvsup servers too much if you can avoid it) It's my own private cvsup server...I don't think I'll mind. ;) cvsup to RELENG_5_3 make buildworld make KERNCONF=MYKERNEL buildkernel make KERNCONF=MYKERNEL installkernel reboot make installworld reboot missed a step, did you mergemaster -p and mergemaster? No...I have no use for mergemaster, it's bit me in the ass a few too many times. If there are any changes needed I merge them in by hand. Now I'm running 5.3-RELEASE-p5 Trying the steps outlined in man 8 jail gives me the exact same error that I started with. i'm runnig my buildjail script right now to make sure things are still ok...if i find i problem i'll post back to list... this link does not work http://www.freebsd.org/cgi/getmsg.cgi?fetch=2806914+2810640+/usr/l ocal/www/db/text/2005/freebsd-questions/20050116.freebsd-questions heh thanks thought i've remembered this issue before... Sorry about that. NP -p -- Thanks, Josh Paetzel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail manpage
i'm runnig my buildjail script right now to make sure things are still ok...if i find i problem i'll post back to list... ok I just ran a: $ sudo make -j2 world DESTDIR=/usr/local/jails/dev/ on a 5.3-STABLE box with no problems. not really sure what is going wrong here...i assume there are no tweaks to your /etc/make.conf file (does not look like you are even using -O2 which may cause problems.) -p -- ~~o0OO0o~~ Pete Wright www.nycbug.org NYC's *BSD User Group ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail manpage
On Wed, 9 Feb 2005 14:12:06 -0600, Josh Paetzel [EMAIL PROTECTED] wrote: I've been trying get jails working on my 5.3-RELEASE-p2 machine. I've tried following the instructions in man 8 jail D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D cd etc make distribution DESTDIR=$D mount_devfs devfs $D/dev cd $D ln -sf dev/null kernel It dies at make world DESTDIR=$D with the following error: cc -0 -pipe -I/usr/obj/usr/src/i386/legacy/usr/include c/usr/src/games/fortune/strfile/strfile.c make: don't know how to make /jail/test/usr/lib/libc.a. Stop ***Error code 2 Stopping /usr/src Hi, I had the same problem. Googling showd me to use the line env DESTDIR=$D make world instead of make world DESTDIR=$D. After I did this it all worked fine. Regards, Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]