From nobody Sun Nov 6 11:16:49 2022 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 4N4sJT59mXz4gwCH for ; Sun, 6 Nov 2022 11:16:57 +0000 (UTC) (envelope-from SRS0=VvoF=3G=freebsd.org=grehan@iredmail.onthenet.com.au) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N4sJS0MPkz41Ss for ; Sun, 6 Nov 2022 11:16:55 +0000 (UTC) (envelope-from SRS0=VvoF=3G=freebsd.org=grehan@iredmail.onthenet.com.au) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id F12E820B49B1 for ; Sun, 6 Nov 2022 21:16:49 +1000 (AEST) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id E5DC32138328 for ; Sun, 6 Nov 2022 21:16:49 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nt.com.au; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:to:subject:subject :user-agent:mime-version:date:date:message-id; s=dkim; t= 1667733409; x=1670325410; bh=fah1063jcLq7jceeWpaTZnqZyIjw53Kn7gk +Cxkpwr8=; b=ADh0fP0EEmVWV2lq7DsD2Z90FevmKCGL0sa/0tQGzZpEEhHJTAK YxejYnrOd73AiDRuB8xt9o6Pl6FC8O1maxCFYCwLAJKFikMRohrU3o2ZwfSGZlzB Eoro/We/yUrjDEYkSPccqj0VJnVH0ct1himj0IaOhIqOwdAcH2x+8P7c= Received: from iredmail.onthenet.com.au ([127.0.0.1]) by iredmail.onthenet.com.au (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BFq-7hWROJ-o for ; Sun, 6 Nov 2022 21:16:49 +1000 (AEST) Received: from [192.168.1.105] (otn-120-29-30-93.broadband.onthenet.net [120.29.30.93]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id BAFA92138327; Sun, 6 Nov 2022 21:16:49 +1000 (AEST) Message-ID: Date: Sun, 6 Nov 2022 21:16:49 +1000 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/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: trying to attach another disk to openbsd72 bhyve guest To: void References: Content-Language: en-US From: Peter Grehan Cc: freebsd-virtualization@freebsd.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=F+vMippN c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=X54PRCJPt2a+BTvxBMglHw==:17 a=IkcTkHD0fZMA:10 a=9xFQ1JgjjksA:10 a=ryaj0CQDUp8V2PKLiD8A:9 a=QEXdDO2ut3YA:10 X-Rspamd-Queue-Id: 4N4sJS0MPkz41Ss X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nt.com.au header.s=dkim header.b=ADh0fP0E; dmarc=none; spf=none (mx1.freebsd.org: domain of "SRS0=VvoF=3G=freebsd.org=grehan@iredmail.onthenet.com.au" has no SPF policy when checking 203.13.68.12) smtp.mailfrom="SRS0=VvoF=3G=freebsd.org=grehan@iredmail.onthenet.com.au" X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[grehan@freebsd.org,SRS0=VvoF=3G=freebsd.org=grehan@iredmail.onthenet.com.au]; R_DKIM_ALLOW(-0.20)[nt.com.au:s=dkim]; RCVD_IN_DNSWL_LOW(-0.10)[203.13.68.12:from]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[203.13.68.12:from]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[grehan@freebsd.org,SRS0=VvoF=3G=freebsd.org=grehan@iredmail.onthenet.com.au]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[nt.com.au:+]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_TO(0.00)[f-m.fm]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:9313, ipnet:203.13.68.0/24, country:AU]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N Hi, > Hello, I'm trying to attach another disk to an openbsd72 guest like so: > > [snip] > bhyve -c 4 -m 16G -wuH \ > -s 0,amd_hostbridge \ > -s 3,virtio-blk,/dev/zvol/vms/openbsd64g \ > -s 4,ahci-hd,/dev/zvol/vms/openbsd-externalfs0 \ <=== here > -s 5,virtio-net,tap14 \ > -s 30,xhci,tablet \ > -s 31,lpc -l com1,stdio -l > bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ > openbsd64g > [snip] > > The vm starts fine. I can't see an additional sd* though so can't > initialise the disk. Also tried with virtio-hd same result I tried this out with 7 disks, 6 added post-install, and OpenBSD 7.2 was able to see them. Info appended. What version is the FreeBSD host ? I tested on CURRENT. later, Peter. ---- obsd# uname -a OpenBSD obsd.my.domain 7.2 GENERIC.MP#758 amd64 obsd# sysctl hw.diskcount hw.diskcount=7 obsd# sysctl hw.disknames hw.disknames=sd0:1cea78f56d1d055a,sd1:,sd2:,sd3:,sd4:,sd5:,sd6: obsd# obsd# dmesg | grep ^sd sd0 at scsibus1 targ 0 lun 0: sd0: 30720MB, 512 bytes/sector, 62914560 sectors sd1 at scsibus2 targ 0 lun 0: t10.ATA_BHYVE_SATA_DISK_BHYVE-4CEC-08A5-9529 sd1: 1024MB, 512 bytes/sector, 2097152 sectors, thin sd2 at scsibus3 targ 0 lun 0: sd2: 1024MB, 512 bytes/sector, 2097152 sectors sd3 at scsibus4 targ 0 lun 0: t10.ATA_BHYVE_SATA_DISK_BHYVE-DFA5-88DE-4C8F sd3: 1024MB, 512 bytes/sector, 2097152 sectors, thin sd4 at scsibus5 targ 0 lun 0: sd4: 1024MB, 512 bytes/sector, 2097152 sectors sd5 at scsibus6 targ 0 lun 0: sd5: 1024MB, 512 bytes/sector, 2097152 sectors sd6 at scsibus7 targ 0 lun 0: sd6: 1024MB, 512 bytes/sector, 2097152 sectors bhyve \ -c 4 \ -s 0,hostbridge \ -s 5,virtio-blk,obsd_72.img \ -s 6,ahci-hd,obsd_test1.img \ -s 7,virtio-blk,obsd_test2.img \ -s 8,ahci-hd,obsd_test3.img \ -s 10,virtio-net,tap0 \ -s 9,fbuf,tcp=0.0.0.0:5900,wait \ -s 18,virtio-blk,obsd_test4.img \ -s 19,virtio-blk,obsd_test5.img \ -s 20,virtio-blk,obsd_test6.img \ -s 30,xhci,tablet \ -s 31,lpc \ -l com1,stdio \ -m 2G \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -H -A -w obsd