Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Feb 2013 16:45:18 +0400
From:      Marat Bakeev <hawara@Hawara.com>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: run bhyve vm headless
Message-ID:  <510BB8DE.5080103@Hawara.com>
In-Reply-To: <510ADA51.10503@freebsd.org>
References:  <510A6A5A.1000605@Hawara.com> <510ADA51.10503@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/02/2013 00:55, Peter Grehan wrote:
> Are there any ways to run vms in background, or to detach from console,
>> if guest is started with the -S uart option? Or am I using this wrong?
>
>  Hmmm, I thought that it would work fine if the 'stdio' option wasn't
> used with the uart emulation
>
>  e.g.   -S  <slot>,uart
>
>    instead of
>
>         -S  <slot>,uart,stdio
>
>  What the former does is to drop all output sent to the uart, and not
> have any input. This would be one way to run in the background.
> Another would be to use the latter syntax and setup i/o redirection
> from /dev/null when starting the bhyve process.
Hi!
Thanks for the advice, running it like this:
bhyve -c 2 -a -A -m 1024 -M 4096 -I -H -g 0 -s 0:0,hostbridge -s
1:0,virtio-net,tap3 -s 2:0,virtio-blk,/dev/zvol/z0/bhyve/vm3 -S
31,uart,stdio vm3 < /dev/null - really allows me to send it to background!

But, if i modify -S 31,uart,stdio to -S 31,uart - 9.1 guest still won`t
boot - bhyve process is in [vmidle] state, and there is no activity
inside vm. I don`t know if this is important, reporting it just in case :)

Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?510BB8DE.5080103>