I fixed the script and now it works exactly as I want :
nohup /usr/sbin/bhyve -S -c sockets=2,cores=2,threads=2 -m 8G -w -H -A \
-s 0,hostbridge \
-s
1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/Ubuntu2310.img,bootindex=1
\
-s 11,hda,play=/dev/dsp,rec=/dev/dsp \
-s 13,virtio-net,tap19 \
-s
Errata corrige. The vm didn't start because my bhyve executable is on
/usr/sbin ; but you keep it on /usr/bin ;
So,the vm starts and it is stored in the background. Only one problem
remains. The message "appending output to nohup.out" is displayed on the
screen. Is there a method to suppress it ?
This is how looks mine script after having applied your suggestions :
nohup /usr/bin/bhyve -S -c sockets=2,cores=2,threads=2 -m 8G -w -H -A \
-s 0,hostbridge \
-s
1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/Ubuntu2310.img,bootindex=1 \
-s 11,hda,play=/dev/dsp,rec=/dev/dsp \
-s
On Fri, Feb 16, 2024 at 7:05 PM Mario Marietto wrote:
>
> Hello.
>
> I want to boot a bhyve vm that does not produce any error message or warnings
> on the screen and that it stays in the background. This is how I launch my
> Linux vm :
>
> bhyve -S -c sockets=2,cores=2,threads=2 -m 8G -w -H -A
Hello.
I want to boot a bhyve vm that does not produce any error message or
warnings on the screen and that it stays in the background. This is how I
launch my Linux vm :
bhyve -S -c sockets=2,cores=2,threads=2 -m 8G -w -H -A \
-s 0,hostbridge \
-s