From nobody Fri Mar 1 22:29:21 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 4TmjSb3vhwz5D9km for ; Fri, 1 Mar 2024 22:29:35 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TmjSZ3mf6z4FGp for ; Fri, 1 Mar 2024 22:29:34 +0000 (UTC) (envelope-from pete@nomadlogic.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=EnLC06LZ; dmarc=pass (policy=quarantine) header.from=nomadlogic.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1709332160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EFdXTxYmkvTEe5h5G09IrBVgj+l6X4Od/2+DDHCUeQE=; b=EnLC06LZBkoNH0LuSZS0u33BsU1f8u8YknUSAEmQC96WsZTl40Up9VqxRsb/m9u/wOiIZx BPB7lYti4Hdv+m31XHQrjOVJya1sn+K84VGpU5U6qFnZI1ssTFXjZvR93kD6jIiTEGbgbd PkzXQpMmZNcEHAoGeF7sPzUVTGVTk+U= Received: from [192.168.1.160] ( [47.154.31.160]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id a839bdeb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 1 Mar 2024 22:29:19 +0000 (UTC) Message-ID: Date: Fri, 1 Mar 2024 14:29:21 -0800 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 User-Agent: Mozilla Thunderbird To: freebsd-virtualization@FreeBSD.org Content-Language: en-US From: Pete Wright Subject: Bhyve Boot Question Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.986]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@FreeBSD.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[nomadlogic.org:+] X-Rspamd-Queue-Id: 4TmjSZ3mf6z4FGp Hello, I was hoping someone could help me diagnose an issue I'm having porting some FreeBSD VM's that are currently running on FreeBSD+Bhyve to a SmartOS+Bhyve configuration. The VM's I'd like to port over use a file back VM raw disk image, this works fine on my FreeBSD hypervisor but SmartOS would prefer zvols.  One thing I should note is I'm using bhyveload(8) to boot my VMs.  The guest instances in question are all FreeBSD as well. To test migrating these VM's to SmartOS I've done the following: 1. copy the VM image file to the SmartOS hypervisor 2. use quemu-img convert to convert the raw disk image to a zvol I did this with one of the official memdisk USB images, and things worked great.  I used the UEFI bootrom flag to bhyve.  Yet when I try to take one of the VM's I want to port things don't work as expected.  When I start the VM the console (and VNC display output) just hang on a blank screen.  I suspect its related to the fact that I use bhyveload(8). Here is what the disk looks like for one of the VM's in question: $ gpart  show nda0 =>      40  41942960  nda0  GPT  (20G)        40       216        - free -  (108K)       256      1024     1  freebsd-boot  (512K)      1280  39844608     2  freebsd-ufs  (19G)  39845888   2097112     3  freebsd-swap  (1.0G) So my question is this - if I am reading the gpart output correctly, I should be able to use the "bios" bootrom option for Bhyve under SmartOS right and it'd find the "freebsd-boot" partition?  Or is something special happening to my VM when I use bhyveload(8) that would cause problems porting it over to a zvol under SmartOS? Thanks in advance for any insights! -pete -- Pete Wright pete@nomadlogic.org