From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 24 23:23:02 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 12795519 for ; Mon, 24 Jun 2013 23:23:02 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id DD38B1673 for ; Mon, 24 Jun 2013 23:23:01 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so26390427iec.13 for ; Mon, 24 Jun 2013 16:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uOlsB6eLBGub2tlwvZ0CSoJIXL+IrVANKNhh7JCF/GU=; b=t0ch3/Ttz4EFx0Mi/KAsWRYt8H23Y+ZUyapnKAra07KjiR7lvIstZyx8HkNPJFEMJT H6Tlj/zNG2MGq0nsQ61DXdMdpqHP/Gl2/t19BtHBg445QYvYABVtKVwPBuZp4gtBupVv hYsp3efkAUXipuHeCaNJFNa9aA/27x0KkrYI2PP1ZQy1MhV4+77+e/WcyQSlgT+QLlDk bxJSm8mAYBGCNtN9NrsU4vCwQMaDR+y5GSXjrO0iqHQe2uMI6C/VTBaqmrW3Cb0+8RTa zRq+DFDdCTKjS25CJz/e/oh/1WflLi81jedBm/LP2jXGKLCVsNCscHHcm7XL5T8ObT2G u5wA== MIME-Version: 1.0 X-Received: by 10.50.11.103 with SMTP id p7mr7103940igb.24.1372116181579; Mon, 24 Jun 2013 16:23:01 -0700 (PDT) Received: by 10.42.151.74 with HTTP; Mon, 24 Jun 2013 16:23:01 -0700 (PDT) In-Reply-To: References: Date: Mon, 24 Jun 2013 16:23:01 -0700 Message-ID: Subject: Re: headerless guest under bhyve From: Neel Natu To: Aryeh Friedman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 24 Jun 2013 23:23:02 -0000 Hi Aryeh, On Mon, Jun 24, 2013 at 3:54 PM, Aryeh Friedman wrote: > How do I make it so I do not need to allocate a xterm to being the > console for a bhyve guest? (so far I have not been able to make it so > I can break the connection to the console and the guest doesn't crash) > > Yeah, this is because bhyve is exiting when it gets a SIGHUP. Here is a patch that may help you sidestep this problem for now: Index: bhyverun.c =================================================================== --- bhyverun.c (revision 252047) +++ bhyverun.c (working copy) @@ -679,6 +679,17 @@ vmname = argv[0]; + { + struct sigaction sa; + + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; + sa.sa_handler = SIG_IGN; + + err = sigaction(SIGHUP, &sa, NULL); + assert(err == 0); + } + The right way to fix this is to have a configurable backend (terminal, network port, pipe) for the virtual serial port. > Related question when using vmrun.sh it seems like the vtnet on the > guest becomes unusable after reboot of the guest (rebooting the host > is the only solution I can find) is there a work around for this? (I > tried toggling the state of if_tap and if_bridge) > If you could provide some more details I will try to reproduce it. For e.g. IP address assigned to the guest, host networking setup etc. best Neel > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" >