Building 'world' in FreeBSD


 
Thread Tools Search this Thread
Operating Systems BSD Building 'world' in FreeBSD
# 1  
Old 04-07-2011
Building 'world' in FreeBSD

Hi guys I need a jail in FreeBSD and I'm following this documentation : Jails and I'm stuck cause It won't make, I've already download the source via sysinstall and I surfed through the makefile and I didn't found no such rule as 'buildworld', 'installworld' or 'distribuition'.

Can anyone help me?
Thanks in advance.
# 2  
Old 04-22-2011
I am assuming t hat you are logged in as root, since creating jails requires higher level privileges. You may want to use zabbix to control your jails.

Try some or all of the following commands to create a jail called TEST:
Code:
mkdir /usr/jail
mkdir /usr/jail/TEST
cd /usr/src
make world DESTDIR=/usr/jail/TEST
make distribution DESTDIR=/usr/jail/TEST
echo "jail_enable="\""YES"\" >> /etc/rc.conf
echo "jail_list="\""TEST PROD"\" >> /etc/rc.conf
echo "jail_TEST_rootdir="\""/usr/jail/TEST"\"  >> /etc/rc.conf
echo "jail_TEST_ip="\""192.168.2.1"\"  >> /etc/rc.conf
echo "jail_TEST_hostname="\""jail.TEST"\"  >> /etc/rc.conf
echo "jail_sysvipc_allow="\""YES"\" >> /etc/rc.conf
echo "security.jail.allow_raw_sockets=1" >> /etc/sysctl.conf
cp /etc/resolv.conf /usr/jail/TEST/etc
mkdir /usr/jail/TEST/usr/ports
echo 'mount_nullfs /usr/ports  /usr/jail/TEST/usr/ports' >> /etc/rc.local

Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

UNIX: Building The Most Important OS in the World By John Loeffler

Nice UNIX history article by John Loeffler, February, 05th 2019 UNIX: Building The Most Important OS in the World The most widely used operating system in the world was a project born out of failure. (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

Mad World Remix of Moby Video (Are You Lost In The World Like Me)

This is an excellent video comment on modern society and the remix is good too: https://www.youtube.com/watch?v=5DU1B_XkyIk 5DU1B_XkyIk Watch the video above and post your comments. (3 Replies)
Discussion started by: Neo
3 Replies

3. Programming

Exact meaning of the "world" in "hello world"

Hello! I have a question to native English-speaking people. In the popular program's "hello world" greeting, what meaning the "world" has: "all", "everybody", "people", "friends" or "whole world", "planet", "Earth", "Universe"? In other words, to whom this greeting is addressed: to the... (14 Replies)
Discussion started by: Eugene Muzychen
14 Replies

4. Programming

Almost -> Hello World!

Hello! I know I must take the efforts of learning C..! I need to recompile a binary with the following at the beginning: test if a file exists, remove it and exit. All in "C". As simple as this in sh: file=/tmp/filename if ; then rm -f $file exit 0 fi Thanks! (8 Replies)
Discussion started by: teresaejunior
8 Replies

5. UNIX for Dummies Questions & Answers

What in the world does $$ mean?

If I type "echo $$" in to the command line it outputs some random number but it outputs the same one every time. What is this? (7 Replies)
Discussion started by: weexpectedthis
7 Replies

6. Programming

Application crashes in FreeBSD 7.1 while working ok in FreeBSD 6.3

Hello there, My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64. It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386). The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies

7. Solaris

hello world

just wanted to give salutations to all in here. i hope to contribute as much as i take. happy "unix-ing" :b: (0 Replies)
Discussion started by: JeepResQ
0 Replies
Login or Register to Ask a Question