From owner-freebsd-virtualization@freebsd.org Sat Jan 9 19:57:19 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29EFBA6A895 for ; Sat, 9 Jan 2016 19:57:19 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD53109B for ; Sat, 9 Jan 2016 19:57:18 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id A0DF3D3F2 for ; Sat, 9 Jan 2016 19:57:17 +0000 (UTC) Subject: Re: bhyve won't let go To: freebsd-virtualization@freebsd.org References: <000001d14b17$478b0840$d6a118c0$@com> From: Allan Jude Message-ID: <5691662B.30006@freebsd.org> Date: Sat, 9 Jan 2016 14:57:31 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <000001d14b17$478b0840$d6a118c0$@com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2016 19:57:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-01-09 14:52, barasingha wrote: > I am running 10.2 Release. >=20 > =20 >=20 > I am running pfsense as a guest of bhyve. Using passthru, pfsense is g= iven > 2 nics. I wish to run the vm headless. >=20 > =20 >=20 > I have written a rc script and can use the script to manually control t= he vm > or enable it to run at bootup. >=20 > =20 >=20 > The problem is that I can't get both the guest and host to run at boot.= If > vm is enabled, bootup hangs once bhyve is called. In this scenario I c= an > ssh into pfsense but not into the host. If I halt the vm the host will= > finally continue to boot. >=20 > =20 >=20 > When controlled manually the same thing happens, however I can then ope= n > another shell to provide host control.=20 >=20 > =20 >=20 > sample: >=20 > bhyveload -m 4G -c /dev/nmdm0A -d /directory/to/boot/disk name >=20 > bhyve -c 2 -m 4G -A -H -P \ >=20 > -s 0,hostbridge \ >=20 > -s 1,lpc \ >=20 > -s n,others \ >=20 > -l com1, /dev/nmdm0A \ >=20 > name >=20 > =20 >=20 > Any ideas? I think I have a problem in /etc/ttys on either the host or= vm. >=20 > =20 >=20 > Thanks, >=20 > Barasingha >=20 > =20 >=20 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@fr= eebsd.org" >=20 The bhyve command doesn't exit until the VM shuts down. Have your rc script that runs at startup, run vmrun or whatever you are doing via 'daemon' or something, so it goes into the background. --=20 Allan Jude --0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJWkWYuAAoJEBmVNT4SmAt+QOMP/1X3BLh3tcbVeyquylnhxXsM cskxaRh2P1WZUTyfkwm2gEhyJcyfncCvX9zCBYkgVJHdKyTvFl/lkf2JYKXR9ezF PAVkDsmB3p/d/USaRmeQywvaOlfFcJU0mwiNk60SuoU/c57K2WuRuYyfyn7mp3ZC FRUzpnO3ObRknUI1tV6Ot7yAqBEQbaYcVhnfueuXHkSjV8fE5o9e4RnsijhgXRv2 JN28DNV+cdSSatbAjZ2EDlcW94dKIAIXhnD+ggWJrmijY+VzoHWnoKXhU9Nea2KI QvvJIMtniLxE4iDPcCjy6WAmDJjn5wF60L27JJSvGR/6l0l3PEzrlXrETBO216Zg 3++TW+xWRgrM1TyoAbyPf0kWlioQRQcdCZff3MSGogimDwEqgTyowcMRYiykgKnr wziMI1WMmlAyplegz4V23DVYL3+DX+Y4AfeVNsyKZR24110q4oLDYwhrLtGOiVpe zf8ZGHaQd9YFSHqZWq/jiNi56SoUHUqFoh5/XxO6M3ultNDAqLAXav7AuInftfYV bYxjseX6ptZbvdDI19rREqn4KD+4yTl19inpNbsBKaNpmAHI10Bw2DnDQ9e0txZU y8X29ZCrTcR9dwLl1+fdIz6QOxhq5nvvUQfnycFoya2CPbg9EkncxbfklWB2Ri9b NK2Y0SEDfshP5DJwO5KQ =lXzE -----END PGP SIGNATURE----- --0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2--