From nobody Sat Feb 17 00:04:55 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tc8Fr3H0Nz5B5Ds for ; Sat, 17 Feb 2024 00:05:36 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc8Fp5bnTz4qQw for ; Sat, 17 Feb 2024 00:05:34 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Jp1rEpUS; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62e as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a2f22bfb4e6so326729266b.0 for ; Fri, 16 Feb 2024 16:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708128332; x=1708733132; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=1vrI8UXsTWtiMeiyU1J5jDjx8hk48z+UXeqw4Efm/Pc=; b=Jp1rEpUSw1JP/BFrAyLGqCie1qYXiZGe4Bu9bhK35Vcu1/6Ev7OF1urIpNXDXC40WH WLxVEzJMHa2USgrlRrts8dy3/RGkqBXo0vEjTysgrpo4KQ4gQqOwUkfGzLsDJGHPr8q6 eEamurwXE566nCwGJVNsYUIXt/QqIkwaR59j0pZN88YrP1KCVA/HT+A8pcwdzA9RS/g8 EmenLaMJWpspKVoBoNB7MVl07bTEkxW5norZyvyfvfY6zYudvtE3HIh1yF1NxDUxzazp uIy7jGIYQ9UinQ2YmyQ1VQfFOXiUP2TtPFEjxpz5zaEmdfqG2KhstcAOmVab08tz8Wpj o8Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708128332; x=1708733132; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1vrI8UXsTWtiMeiyU1J5jDjx8hk48z+UXeqw4Efm/Pc=; b=geXAhbH7PGp5n+rGc6Z5+v4Ut+345wc4zmzuBIrm4R90SnpPhqxZK7Ue/y8UGN3y3g HzuDvlE0w7YpRRma2Q2DnkwHQMcy5FdceYYq22MbkKCBsrIlFxH+CAaWG8mg1lnwfiEJ Y3XDFyBbPtYl+oGt4QHSqzS+bRi99YQfh/2w2FOIUzuCNrl9vTJrj7nTdLNDRk2FMN/z AUXFq/srlYROussUNYeWk3HpOZIGcTkQRb/EMlsaXH/NlNzBPcxY7iz9yl+mYKq/Hv5G Dyr60UUA+A5S5bgNoo93Xjf3iZo1V9Ue44y11sgynUwJQmep1vrABb9SvUCeoW57/vc6 ep9Q== X-Gm-Message-State: AOJu0YxD7u+X8fVgEQC7jNJQ4YOzf6maA0hyPTs9U8WwKEDnX3Q3n4U6 zb34KJfepxJrCBzCzrdDzey9gAa04nu0u+G2XMk1UpWYmHkHdK48KOuMs6XCKO2f4rScWrQbWfj iYtrwEL4z/hEjrcHYPToV4GeKNffyr76XmTIEkw== X-Google-Smtp-Source: AGHT+IFjXlTFwP4ujALqw5/IvMRdWR65gp+ZyszzhETRhdBoOazjm7qmHizNz7YFnsd0KFd6x3ps2VMAIoCD3+v2W/g= X-Received: by 2002:a17:906:278f:b0:a3d:aa78:af02 with SMTP id j15-20020a170906278f00b00a3daa78af02mr3762181ejc.19.1708128331774; Fri, 16 Feb 2024 16:05:31 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 From: Mario Marietto Date: Sat, 17 Feb 2024 01:04:55 +0100 Message-ID: Subject: How to send a bhyve vm totally in background,suppressing any message produced by the bhyve script that I use. To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000723ff70611889e88" X-Rspamd-Queue-Id: 4Tc8Fp5bnTz4qQw X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.99)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62e:from] --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"
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--