Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2011 00:40:04 -0700
From:      Devin Teske <devin.teske@fisglobal.com>
To:        FreeBSD Virtualization <freebsd-virtualization@freebsd.org>
Cc:        Cayford Burrell <Cayford.Burrell@fisglobal.com>
Subject:   [RELEASE] vimage-1.1 FreeBSD Package for testing VIMAGE jails
Message-ID:  <3606A974-E345-4F7C-BA3D-4A370FF0C3F0@fisglobal.com>

next in thread | raw e-mail | index | archive | help
Hi List, et. al,

I'd like to share a FreeBSD package containing a new rc.d script that I've =
written for make managing VIMAGE jails.

http://druidbsd.sourceforge.net/download/vimage-1.1.tbz

The FreeBSD package installs the contents of this patch:

http://druidbsd.sf.net/download/vimage_rc.20110831135736.patch

If you feel like participating in the discussion about said-patch, here's t=
he thread link:

http://lists.freebsd.org/pipermail/freebsd-rc/2011-September/002422.html

However, this thread is for the discussion of the package and getting some =
people to test the new script before it gets approved for HEAD.

First, a primer:

You'll need to ideally be running FreeBSD-8.1 or higher.
Next, at a minimum, you'll need a kernel with the:

	options VIMAGE

line added to the kernel configuration.

NOTE: You should also add "nooptions SCTP" (without quotes) if "include'ing=
" GENERIC, or if working on a copy of GENERIC, simply find the "options SCT=
P" line and comment it out as VIMAGE does not yet support SCTP.

Last, you'll need to do one of the following three things, either:

1. Add the following lines to your kernel configuration:

	options	NETGRAPH
	options	NETGRAPH_BRIDGE
	options	NETGRAPH_EIFACE
	options	NETGRAPH_ETHER
	options	NETGRAPH_SOCKET

NOTE: Kernel will always support bridging.

2. or, instead, add the following lines to your /boot/loader.conf file:

	ng_bridge_load=3D"YES"
	ng_eiface_load=3D"YES"
	ng_ether_loader=3D"YES"
	ng_socket_load=3D"YES"

NOTE: Kernel will rely on modules loaded at boot time to support bridging.

3. or, instead, execute the following commands

	kldload ng_bridge
	kldload ng_eiface
	kldload ng_ether
	kldload ng_socket

NOTE: Must be executed each/every time you reboot.

Once that has been accomplished, you should verify that you can see your Et=
hernet devices by executing:

	ngctl list

On a system with both a bge0 and an fxp0 interface, the above command produ=
ces the following output:

There are 3 total nodes:
  Name: bge0            Type: ether           ID: 00000001   Num hooks: 0
  Name: ngctl4173       Type: socket          ID: 0000002e   Num hooks: 0
  Name: fxp0            Type: ether           ID: 00000002   Num hooks: 0

Once you've got that all set up, now you're ready to start making Vimages.

If you're familiar with managing jails, it's not much different. However, a=
s a refresher, I recommend checking out /etc/rc.conf.d/vimage after install=
ing the package. It will show you which options should be set to enable eac=
h feature for each vimage.
--=20
Cheers,
Devin

_____________

The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.
_____________



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3606A974-E345-4F7C-BA3D-4A370FF0C3F0>