From nobody Tue May 23 09:39:35 2023 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 4QQTmp3Lncz4CFlf for ; Tue, 23 May 2023 09:39:38 +0000 (UTC) (envelope-from fbsd-lists@dudes.ch) Received: from mail.dudes.ch (mail.dudes.ch [193.73.211.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.dudes.ch", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQTmn5vhxz3BwS for ; Tue, 23 May 2023 09:39:37 +0000 (UTC) (envelope-from fbsd-lists@dudes.ch) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of fbsd-lists@dudes.ch has no SPF policy when checking 193.73.211.25) smtp.mailfrom=fbsd-lists@dudes.ch; dmarc=none Received: from amd64.dudes.ch (amd64.dudes.ch [193.73.211.16]) (authenticated bits=0) by mail.dudes.ch (8.16.0.41/8.16.0.41) with ESMTPSA id 34N9dZhn086397 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Tue, 23 May 2023 11:39:36 +0200 (CEST) (envelope-from fbsd-lists@dudes.ch) Date: Tue, 23 May 2023 11:39:35 +0200 From: Markus Wild To: freebsd-virtualization@FreeBSD.org Subject: bhyve with qemu-ga (guest agent) Message-ID: <20230523113935.5dd1c779@amd64.dudes.ch> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-unknown-freebsd13.1) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.83 on 193.73.211.25 X-Spamd-Result: default: False [-1.67 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.992]; NEURAL_HAM_LONG(-0.91)[-0.906]; NEURAL_HAM_SHORT(-0.67)[-0.671]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8758, ipnet:193.73.211.0/24, country:CH]; MLMMJ_DEST(0.00)[freebsd-virtualization@FreeBSD.org]; R_DKIM_NA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[dudes.ch]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4QQTmn5vhxz3BwS X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N Hello, I'm trying to use qemu guest agent to for example make use of freeze/thaw for consistent live zfs-snapshots on the host (to backup VMs). qemu-ga wants to use a specific virtio-serial port by default, so I tried to start bhyve using: bhyve -c 2 -m 4G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -U 54ac18e6-f643-11ed-a64e-7085c2b3862f -s 0,hostbridge -s 31,lpc \ -s 4:0,nvme,/bhyve/test2019/disk0.img \ -s 5:0,virtio-net,tap2,mac=58:9c:fc:04:aa:53 -s 6:0,fbuf,tcp=0.0.0.0:5901 -s 7:0,xhci,tablet \ -s 8:0,virtio-console,port1=/bhyve/test2019/org.qemu.guest_agent.0 \ test2019 this causes windows to show "VirtIO Serial Driver" under "System Devices", but bhyve on the host does not create the Unix Domain Socket at the requested path. I also don't know how to query the Windows namespace to check whether the proper named pipe has been created. When I try the same thing with an ubuntu20 VM, it's looking for the port at /dev/virtio-ports/org.qemu.guest_agent.0, but no such directory even exists within /dev. So: - is the bhyve virtio-console device something different than virtio-serial? - why does this device not open a unix socket on the host? BTW: if I use isa-serial, I can communicate with the qemu-ga, but I'd prefer to get it working with the default method. Cheers, Markus