Date: Mon, 24 Jun 2013 16:23:01 -0700 From: Neel Natu <neelnatu@gmail.com> To: Aryeh Friedman <aryeh.friedman@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: headerless guest under bhyve Message-ID: <CAFgRE9GTyM9tmvtgX2ywjqp28_xWrk90raGWgv9Q17-3HPas-A@mail.gmail.com> In-Reply-To: <CAGBxaXk4nE0Ew0aKL-UX8KDERqf3GWeFQfNoaJ1F3km5VH3nug@mail.gmail.com> References: <CAGBxaXk4nE0Ew0aKL-UX8KDERqf3GWeFQfNoaJ1F3km5VH3nug@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Aryeh, On Mon, Jun 24, 2013 at 3:54 PM, Aryeh Friedman <aryeh.friedman@gmail.com>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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9GTyM9tmvtgX2ywjqp28_xWrk90raGWgv9Q17-3HPas-A>