Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 19:28:53 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        Alex <alex323@gmail.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Instability with VIMAGE
Message-ID:  <DEF21055-C3F9-43E0-814F-ED388FA4063F@fisglobal.com>
In-Reply-To: <20120131213131.534682f2@poseidon.unh.edu>
References:  <20120131213131.534682f2@poseidon.unh.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jan 31, 2012, at 6:31 PM, Alex wrote:

> Hello. I am running FreeBSD 9.0-RELEASE, and I am having many
> instability issues. Starting a jail and adding an epair works fine
> (sort of), but if I were to walk away and come back a few hours later,
> the server would be offline and I would need to have someone locally
> reboot it. In response, I removed SCTP from the kernel to see if that
> would alleviate the problems, but it did not. I tried to terminate a
> jail via `jail -r <name>', but I received this message:
>=20
> mybox# 30 second watchdog timeout expired. Shutdown terminated.
> Tue Jan 31 05:46:47 UTC 2012
> Write failed: Broken pipe
>=20
> ...and at this point I would need someone to reboot the server.
>=20

It's not really said here whether you're reclaiming the vnet interface with=
 the "-vnet" flag to ifconfig(8) _before_ shutting down the jail, but it's =
generally not advised to rip the rug out from under the interface.

At least in 8.1, the vnet doesn't automatically re-appear in the base host,=
 and if you rip the rug out from under the interface by shutting down the j=
ail with "jail -r", then you have to manually reclaim the interface by usin=
g the numerical jail-id and the "-vnet" parameter to ifconfig(8).


> Am I doing something wrong? Should I avoid using VIMAGE due to its
> inherent instability?

I don't know about "inherent instability", we're using it every day quite s=
tably with dozens of vimages. However, we're not using epair, but rather ne=
tgraph. I wrote a boot script for setting up netgraph bridges. If you like,=
 you have a read (and download an easy-to-install FreeBSD package to try it=
 out)...

http://druidbsd.sf.net/vimage.shtml
http://druidbsd.sf.net/download.shtml

My boot script supports both simple "vnet" usage (and makes sure to return =
the interface to the base host, no matter what), as well as the more compli=
cated netgraph(4) bridging. Be sure to read-up on the first link.
--=20
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?DEF21055-C3F9-43E0-814F-ED388FA4063F>