Date: Sat, 17 Feb 2024 01:04:55 +0100 From: Mario Marietto <marietto2008@gmail.com> To: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: How to send a bhyve vm totally in background,suppressing any message produced by the bhyve script that I use. Message-ID: <CA%2B1FSiiYEp4g-8tyUWiQ4yz-C-V1UmpndRTomNOhouqzX6kZjw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--000000000000723ff70611889e88 Content-Type: text/plain; charset="UTF-8" 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 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/Ubuntu2304.img,bootindex=1 \ -s 11,hda,play=/dev/dsp,rec=/dev/dsp \ -s 13,virtio-net,tap19 \ -s 14,virtio-9p,sharename=/ \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \ vm0:19 > /dev/null & I've thought that "> /dev/null" means that every message produced by the script would disappear,but,instead,it produces the following messages that I want to suppress : marietto@marietto:/bhyve # wrmsr to register 0x140(0) on vcpu 0 wrmsr to register 0x140(0) on vcpu 2 wrmsr to register 0x140(0) on vcpu 4 wrmsr to register 0x140(0) on vcpu 6 wrmsr to register 0x140(0) on vcpu 1 wrmsr to register 0x140(0) on vcpu 3 wrmsr to register 0x140(0) on vcpu 5 wrmsr to register 0x140(0) on vcpu 7 rdmsr to register 0x64e on vcpu 1 rdmsr to register 0x34 on vcpu 1 rdmsr to register 0xc0011029 on vcpu 7 Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x0a Unhandled ps2 mouse command 0x01 Unhandled ps2 mouse command 0x41 Unhandled ps2 mouse command 0x88 rdmsr to register 0x64d on vcpu 5 rdmsr to register 0x64d on vcpu 0 at this point it hangs. I should press a key to have the ability to write again on the terminal. I don't want it. Someone can help me to refine the script ? thanks. -- Mario. --000000000000723ff70611889e88 Content-Type: text/html; charset="UTF-8" <div dir="ltr">Hello.<br> <br> 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 :<br> <br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>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/Ubuntu2304.img,bootindex=1 \ -s 11,hda,play=/dev/dsp,rec=/dev/dsp \ -s 13,virtio-net,tap19 \ -s 14,virtio-9p,sharename=/ \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \ vm0:19 > /dev/null &</code></pre> </div> </div><br> I've thought that "> /dev/null" means that every message produced by the script would disappear,but,instead,it produces the following messages that I want to suppress :<br> <br> <div class="gmail-bbCodeBlock gmail-bbCodeBlock--screenLimited gmail-bbCodeBlock--code"> <div class="gmail-bbCodeBlock-title"></div> <div class="gmail-bbCodeBlock-content" dir="ltr"> <pre class="gmail-bbCodeCode" dir="ltr"><code>marietto@marietto:/bhyve # wrmsr to register 0x140(0) on vcpu 0 wrmsr to register 0x140(0) on vcpu 2 wrmsr to register 0x140(0) on vcpu 4 wrmsr to register 0x140(0) on vcpu 6 wrmsr to register 0x140(0) on vcpu 1 wrmsr to register 0x140(0) on vcpu 3 wrmsr to register 0x140(0) on vcpu 5 wrmsr to register 0x140(0) on vcpu 7 rdmsr to register 0x64e on vcpu 1 rdmsr to register 0x34 on vcpu 1 rdmsr to register 0xc0011029 on vcpu 7 Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x0a Unhandled ps2 mouse command 0x01 Unhandled ps2 mouse command 0x41 Unhandled ps2 mouse command 0x88 rdmsr to register 0x64d on vcpu 5 rdmsr to register 0x64d on vcpu 0 <br>at this point it hangs.</code></pre> </div> </div><br> I should press a key to have the ability to write again on the terminal. I don't want it. Someone can help me to refine the script ? thanks.<br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div> --000000000000723ff70611889e88--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiiYEp4g-8tyUWiQ4yz-C-V1UmpndRTomNOhouqzX6kZjw>