Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7924fe5

Browse files
committed
update quickstart to FreeBSD 10.1
1 parent 9646b09 commit 7924fe5

1 file changed

Lines changed: 41 additions & 27 deletions

File tree

docs/quickstart.rst

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,32 @@ Next it will give you one last chance to abort before it commences to wipe the t
8686
To make sure that everything has worked so far, let's take a look at the host by logging into it via SSH. ``bsdploy`` provides a command for that, too::
8787

8888
% ploy ssh jailhost
89-
FreeBSD 9.2-RELEASE (GENERIC) #6 r255896M: Wed Oct 9 01:45:07 CEST 2013
89+
FreeBSD 10.1-RELEASE (GENERIC) #0 r274401: Tue Nov 11 21:02:49 UTC 2014
90+
91+
Welcome to FreeBSD!
9092
[...]
9193

92-
Let's take a quick look around::
94+
Let's take a quick look around. First, what packages have been installed?::
9395

9496
root@jailhost:~ # pkg info
95-
gettext-0.18.3.1_1 GNU gettext package
96-
libiconv-1.14_3 Character set conversion library
97-
python27-2.7.6_4 Interpreted object-oriented programming language
97+
gettext-runtime-0.19.3 GNU gettext runtime libraries and programs
98+
indexinfo-0.2.2 Utility to regenerate the GNU info page index
99+
libffi-3.0.13_3 Foreign Function Interface
100+
pkg-1.4.3 Package manager
101+
python27-2.7.9 Interpreted object-oriented programming language
102+
103+
Next, what's the ZFS scenario?::
104+
98105
root@jailhost:~ # zpool list
99-
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
100-
system 19.9G 584M 19.3G 2% 1.00x ONLINE -
106+
NAME SIZE ALLOC FREE FRAG EXPANDSZ CAP DEDUP HEALTH ALTROOT
107+
system 19.9G 931M 19.0G 2% - 4% 1.00x ONLINE -
101108
root@jailhost:~ # zfs list
102109
NAME USED AVAIL REFER MOUNTPOINT
103-
system 584M 19.0G 31K none
104-
system/root 583M 19.0G 533M /
105-
system/root/tmp 37K 19.0G 37K /tmp
106-
system/root/var 50.6M 19.0G 50.6M /var
110+
system 931M 18.3G 19K none
111+
system/root 931M 18.3G 876M /
112+
system/root/tmp 21K 18.3G 21K /tmp
113+
system/root/var 54.2M 18.3G 54.2M /var
114+
root@jailhost:~ #
107115

108116
A few things to note:
109117

@@ -139,32 +147,38 @@ Package-wise nothing much has changed – only ``ezjail`` has been installed::
139147

140148
root@jailhost:~ # pkg info
141149
ezjail-3.4.1 Framework to easily create, manipulate, and run FreeBSD jails
142-
gettext-0.18.3.1_1 GNU gettext package
143-
libiconv-1.14_3 Character set conversion library
144-
python27-2.7.6_4 Interpreted object-oriented programming language
150+
gettext-runtime-0.19.3 GNU gettext runtime libraries and programs
151+
indexinfo-0.2.2 Utility to regenerate the GNU info page index
152+
libffi-3.0.13_3 Foreign Function Interface
153+
pkg-1.4.3 Package manager
154+
python27-2.7.9 Interpreted object-oriented programming language
155+
root@jailhost:~ #
145156

146157
There is now a second zpool called ``tank`` and ``ezjail`` has been configured to use it::
147158

148159
root@jailhost:~ # zpool list
149-
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
150-
system 19.9G 584M 19.3G 2% 1.00x ONLINE -
151-
tank 78.5G 389M 78.1G 0% 1.00x ONLINE -
160+
NAME SIZE ALLOC FREE FRAG EXPANDSZ CAP DEDUP HEALTH ALTROOT
161+
system 19.9G 934M 19.0G 2% - 4% 1.00x ONLINE -
162+
tank 75.5G 444M 75.1G - - 0% 1.00x ONLINE -
152163
root@jailhost:~ # zfs list
153164
NAME USED AVAIL REFER MOUNTPOINT
154-
system 584M 19.0G 31K none
155-
system/root 584M 19.0G 533M /
156-
system/root/tmp 38K 19.0G 38K /tmp
157-
system/root/var 50.7M 19.0G 50.7M /var
158-
tank 389M 76.9G 144K none
159-
tank/jails 389M 76.9G 8.05M /usr/jails
160-
tank/jails/basejail 377M 76.9G 377M /usr/jails/basejail
161-
tank/jails/newjail 3.58M 76.9G 3.58M /usr/jails/newjail
165+
system 933M 18.3G 19K none
166+
system/root 933M 18.3G 877M /
167+
system/root/tmp 21K 18.3G 21K /tmp
168+
system/root/var 56.6M 18.3G 56.6M /var
169+
tank 443M 72.7G 144K none
170+
tank/jails 443M 72.7G 10.1M /usr/jails
171+
tank/jails/basejail 426M 72.7G 426M /usr/jails/basejail
172+
tank/jails/newjail 6.37M 72.7G 6.37M /usr/jails/newjail
173+
root@jailhost:~ #
174+
162175

163176
But there aren't any jails configured yet::
164177

165178
root@jailhost:~ # ezjail-admin list
166179
STA JID IP Hostname Root Directory
167180
--- ---- --------------- ------------------------------ ------------------------
181+
root@jailhost:~ #
168182

169183
Let's change that...
170184

@@ -198,10 +212,10 @@ Rather conveniently `ploy_ezjail <https://github.com/ployground/ploy_ezjail>`_ h
198212
Log out from the jailhost and run this::
199213

200214
# ploy ssh demo_jail
201-
FreeBSD 9.2-RELEASE (GENERIC) #6 r255896M: Wed Oct 9 01:45:07 CEST 2013
215+
FreeBSD 10.1-RELEASE (GENERIC) #0 r274401: Tue Nov 11 21:02:49 UTC 2014
202216

203217
Gehe nicht über Los.
204-
root@demo_jail:~ #
218+
root@demo_jail:~ #
205219

206220
and there you are, inside the jail.
207221

0 commit comments

Comments
 (0)