When I begin to start jail in Nas4free server I find wiki page about it
I build my jail step-by-step as wiki, I replace IP only.
In first
script jail_start with error
#!/bin/tcsh -x
#mounting to /jail
mkdir /jail
mount_nullfs /mnt/jail /jail <------ Error here, must be for this building mount_nullfs /mnt/data/jail /jail
# copy jail binaries to /usr
cp -r /jail/conf/root/ /
# link config files to /etc
ln -s /jail/conf/rc.conf.local /etc
#start all jails
/etc/rc.d/jail start
My building
Host_for test - working machine x86-embedded on AMD Sempron(tm) 2200+ , 9.1.0.1 - Sandstorm (revision 262)
I add jail folder from another host over NFS, because I don't have space on my testing mashine. Jail folder mount to /mnt/data/jail.
My startup script
- Code: Select all
#!/bin/tcsh -x
#mount nfs
mount -t nfs 10.0.0.1:/mnt/disk/freebsd/jail /mnt/data/jail
#mounting to /jail
mkdir /jail
mount_nullfs /mnt/data/jail /jail
# copy jail binaries to /usr
cp -r /jail/conf/root/ /
# link config files to /etc
ln -s /jail/conf/rc.conf.local /etc
#start all jails
/etc/rc.d/jail start
My problem: Jail started, but not have access to and from internet.
when I execute ifconfig, I don't see IP adress.
- Code: Select all
root@proto:/ # ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82808<VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
ether 00:11:5b:7f:29:cf
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
Also when I run #/etc/rc.d/jail start , nas4free answer is
Configuring jails:.
proto.domain.local.
Anybody can help me ?



