From nobody Wed May 24 20:40:25 2023 X-Original-To: freebsd-questions@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 4QRNPW2h7gz4V0TG for ; Wed, 24 May 2023 20:41:03 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) (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 4QRNPV275Cz4dQw for ; Wed, 24 May 2023 20:41:02 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=atRD3qy5; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::b31 as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-ba94605bcd5so2844507276.2 for ; Wed, 24 May 2023 13:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684960861; x=1687552861; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gQH4j+90I8talpzpvJjAYBvwm7mhNFTBJuxSmS1kn24=; b=atRD3qy5eAsxo60qtOvlMJMoDzuFsUtMl6uRjlrUQ6T37LbYy/1p/mNs+8W/Z6BOkM q+wt/aX194zIbRf09xw3ldLjMqZwDqfLfczDBsy1myfFSoHd6pKVsNlG2mj72RSK9/n2 TkUlfAQ64d5SIHx65GCkd4uIRsE2yjYM7roOwhl7HqMfxeIEyLLXMteQeTZl8WpcC0FH bXgyjxuIRzNkTkVillTlLBrXZnOSPY9af+liTQvnmmZR1N/nW1c/DQhY3kSGo0gnMzEk fMtVkTDV2t1JltBBhRrWuDUsKnZZlcvp88/HWaCeitxP8zUJ4UmRaoKDL/hgDr7aXCvD 9tWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684960861; x=1687552861; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gQH4j+90I8talpzpvJjAYBvwm7mhNFTBJuxSmS1kn24=; b=NqDVwC7wqA9m56V/1SXkbNFt8xxxIXeMDwQCOqAzF6WPCXym72Kbcsc1jmWredEw/X Xj4m+zMJWf/OAyMFdfCTeJmNqVN9rOks0K+b96wsFeUFgp/Z1JgGkSrmnqJkFOeuyb2/ xEzJVLvwNmSTM7ZkEMMg/aUu/Gr+WyDdWnvVz6x5jZMXkL+5OZNfaUQLfuFBQdOQYsw7 1fBY7thux9cW7h8b7UkLQkIWNO1Au9kx1rEMmt8Re25T1Y0euAqWZer1bzwwhP0qYAg9 TS/jSiSPCxE8knoXqb4hXEpnrcYWGnfqSnqr/R3hr9gfkwHXN13NyitPkyOCCR1oP3mR iW3Q== X-Gm-Message-State: AC+VfDyBT7rLVen3scTOLVipPPDhiD5U69MNLDA+UFW4jdIYG1+wVnF5 KAFTwK+edFxQTNKV1iqW4zZHzNa0KevT4DsZCKOq24Fdd8YTLg== X-Google-Smtp-Source: ACHHUZ7dGruh8GFsxdJBJUy0v2s2JUvfRxNP973yGfJq/8yBDfyRc6j5ePaObCLfXnqUXm+n/C9cIKxHdoEOOF2cZG8= X-Received: by 2002:a25:ab4d:0:b0:ba8:8162:2538 with SMTP id u71-20020a25ab4d000000b00ba881622538mr1163021ybi.42.1684960861109; Wed, 24 May 2023 13:41:01 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Wed, 24 May 2023 22:40:25 +0200 Message-ID: Subject: Re: booting linux on bhyve To: Aryeh Friedman , Odhiambo Washington Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="00000000000096438c05fc76852c" X-Spamd-Result: default: False [0.41 / 15.00]; URI_COUNT_ODD(1.00)[9]; HTTP_TO_IP(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_LONG(-0.90)[-0.902]; NEURAL_HAM_SHORT(-0.68)[-0.683]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_THREE(0.00)[3]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::b31:server fail]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b31:from]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_TO(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QRNPV275Cz4dQw X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N --00000000000096438c05fc76852c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've fixed the bug. This line : if ! printf '%s\n' "${vncs}" | grep "${session}"; then becomes like this : if ! printf '%s\n' "${vncs}" | grep "${session#vm}"; then and more vms can boot at the same time. On Wed, May 24, 2023 at 3:27=E2=80=AFPM Mario Marietto wrote: > I've created a script like the one below. Actually I use the same pattern > for every VM I want to use. Every VM has its own number associated. What > changes from one to another is only this line : > > -s > 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/ubuntu2210.img,bootindex= =3D1 \ > > That's the name and the location of the raw file. Inside the script I hav= e > added a mechanism to kill a ghosted vm if it does not find the associated > viewer window active. That's because I don't find it useful to use a > ghosted vm. Yes,it is faster,but It causes also troubles in my case. In > addition the script automatically attaches and detaches the pci address > tied to my gpu,because I want to pass through my RTX 2080 ti within a Lin= ux > VM. There is a bug that I want to fix : if I want to boot more than one > VM,the first one will be killed. Shouldn't be too hard to fix it,anyway. > > #!/bin/sh > > setxkbmap it > bhyvectl --vm=3Dvm0:19 --destroy > vms=3D"$(ls /dev/vmm/*)" > vncs=3D"$(ps ax | awk '/vncviewer [0]/{print $6}')" > echo $vms > echo $vncs > > if ! pciconf -l pci0:2:0:0 | grep -q "^ppt"; then > echo "rtx 2080ti slot 2/0/0 is not attached to ppt,attaching..." > kldload nvidia-modeset > devctl detach pci0:2:0:0 > devctl set driver pci0:2:0:0 ppt > else > echo "rtx 2080ti slot 2/0/0 is already attached to ppt" > fi > > if ! pciconf -l pci0:2:0:1 | grep -q "^ppt"; then > echo "rtx 2080ti slot 2/0/1 is not attached to ppt,attaching..." > devctl detach pci0:2:0:1 > devctl set driver pci0:2:0:1 ppt > else > echo "rtx 2080ti slot 2/0/1 is already attached to ppt" > fi > > if ! pciconf -l pci0:2:0:2 | grep -q "^ppt"; then > echo "rtx 2080ti slot 2/0/2 is not attached to ppt,attaching..." > devctl detach pci0:2:0:2 > devctl set driver pci0:2:0:2 ppt > else > echo "rtx 2080ti slot 2/0/2 is already attached to ppt" > fi > > if ! pciconf -l pci0:2:0:3 | grep -q "^ppt"; then > echo "rtx 2080ti slot 2/0/3 is not attached to ppt,attaching..." > #devctl detach pci0:2:0:3 > devctl set driver pci0:2:0:3 ppt > else > echo "rtx 2080ti slot 2/0/3 is already attached to ppt" > fi > > echo "rtx 2080ti is fully attached to ppt" > > for vm in $vms; do > session=3D"${vm##*/}" > echo "bhyve session =3D $session" > echo "vnc session =3D $vncs" > if ! printf '%s\n' "${vncs}" | grep > "${session}"; then > printf 'VNC session not found,destroying > ghost vms\n' > bhyvectl --vm=3D$session --destroy > > else > printf 'Found VNC session %s\n' > "${session},no ghost vms found,not destroying them" > fi > done > > vmdisk0=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (NM13N4CZ)/ && d{print d}'` > echo "Seagate M3 Portable 1.8 TB ; $vmdisk0" > > vmdisk1=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (2022285F1175)/ && d{print d}'` > echo "CT1000P1SSD8 ; $vmdisk1" > > vmdisk2=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (2015020204055E)/ && d{print d}'` > echo "TOSHIBA External USB 3.0 1.8 TB ; $vmdisk2" > > vmdisk3=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (20130506005976F)/ && d{print d}'` > echo "TOSHIBA External USB 3.0 932G ; $vmdisk3" > > vmdisk4=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (BE0191500218)/ && d{print d}'` > echo "G-DRIVE USB ; $vmdisk4" > > vmdisk5=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (38434B4237354B45)/ && d{print d}'` > echo "Elements 25A3 ; $vmdisk5" > > vmdisk6=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (WD-WCAV2X597309)/ && d{print d}'` > echo "WDC WD3200AAJS-00L7A0-298 GB ; $vmdisk6" > > vmdisk7=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (0774911DDC4200A6)/ && d{print d}'` > echo "SanDisk Cruzer-15GB ; $vmdisk7" > > vmdisk8=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (60A44C4138D8F311190A0149)/ && d{print d}'` > echo "Kingston DataTraveler 2.0 ; $vmdisk8" > > vmdisk9=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (20140100006C)/ && d{print d}'` > echo "Corsair Force 3 SSD ; $vmdisk9" > > vmdisk10=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (1924E20B2AE5)/ && d{print d}'` > echo "CT500MX500SSD4 ; $vmdisk10" > > vmdisk11=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (575845583038524844323238)/ && d{print d}'` > echo "WD-2500BMV ; $vmdisk11" > > vmdisk12=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (57442D575845323039544433303334)/ && d{print d}'` > echo "WD-3200BMV ; $vmdisk12" > > vmdisk13=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: > (S3Z2NB0KB99028V)/ && d{print d}'` > echo "Samsung SSD 860 EVO 500GB ; $vmdisk13" > > pkexec zpool import -f -R /mnt/zroot2 zroot2 > > bhyve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 8G -w -H -A \ > -s 0,hostbridge \ > -s > 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/ubuntu2210.img,bootindex= =3D1 \ > -s 2,nvme,/dev/nvd0 \ > -s 4,virtio-blk,/dev/$vmdisk11 \ > -s 5,virtio-blk,/dev/$vmdisk12 \ > -s 6,virtio-blk,/dev/$vmdisk13 \ > -s 8,passthru,5/0/0 \ > -s 13,virtio-net,tap19 \ > -s 14,virtio-9p,sharename=3D/ \ > -s 29,fbuf,tcp=3D0.0.0.0:5919,w=3D1600,h=3D950,wait \ > -s 30,xhci,tablet \ > -s 31,lpc \ > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \ > vm0:19 < /dev/null & sleep 2 && vncviewer 0:19 > > > On Wed, May 24, 2023 at 3:10=E2=80=AFPM Aryeh Friedman > wrote: > >> On Wed, May 24, 2023 at 8:33=E2=80=AFAM Mario Marietto >> wrote: >> > >> > I do it automatically using only some scripts. I don't like to use >> wrappers. >> >> Do you have the scripts... btw I finally gave up on getting GPT >> (actually more accurately Hugging Face Transformers) to run on FreeBSD >> and I did get them to work on this linsucks machine with the only snag >> benign it won't automatically boot... now that I have a better idea of >> what the whole working setup looks like I might try it again on >> FreeBSD when I get some free time. >> >> > >> > On Wed, May 24, 2023 at 1:28=E2=80=AFPM Aryeh Friedman < >> aryeh.friedman@gmail.com> wrote: >> >> >> >> I have it so I can get to a uefi shell prompt and manually boot but I >> >> am still missing how to make this all automatic >> >> >> >> -- >> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >> >> >> > >> > >> > -- >> > Mario. >> >> >> >> -- >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >> > > > -- > Mario. > --=20 Mario. --00000000000096438c05fc76852c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've fixed the bug. This line :

if ! printf '%s\n' "${vncs}" | grep "${sessi= on}"; then

becomes like this :

=
if ! printf '%s\n' "${vncs}" | grep "${se= ssion#vm}"; then

and more vms can boot at the= same time.

On Wed, May 24, 2023 at 3:27=E2=80=AFPM Mario Marietto= <marietto2008@gmail.com&g= t; wrote:
I've created a script like the one below. Actually I us= e the same pattern for every VM I want to use. Every VM has its own number = associated. What changes from one to another is only this line :
=
-s 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/ubuntu221= 0.img,bootindex=3D1 \

That's the name and the = location of the raw file. Inside the script I have added a mechanism to kil= l a ghosted vm if it does not find the associated viewer window active. Tha= t's because I don't find it useful to use a ghosted vm. Yes,it is f= aster,but It causes also troubles in my case. In addition the script automa= tically attaches and detaches the pci address tied to my gpu,because I want= to pass through my RTX 2080 ti within a Linux VM. There is a bug that I wa= nt to fix : if I want to boot more than one VM,the first one will be killed= . Shouldn't be too hard to fix it,anyway.

#!/bin/sh

setxkbmap it
bhyvectl --vm=3Dvm0:19 --destroy
vms= =3D"$(ls /dev/vmm/*)"
vncs=3D"$(ps ax | awk '/vncview= er [0]/{print $6}')"
echo $vms
echo $vncs

if ! pcicon= f -l pci0:2:0:0 | grep -q "^ppt"; then
echo "rtx 2080ti s= lot 2/0/0 is not attached to ppt,attaching..."
kldload nvidia-modes= et
devctl detach pci0:2:0:0
devctl set driver pci0:2:0:0 ppt
else<= br>echo "rtx 2080ti slot 2/0/0 is already attached to ppt"
fi<= br>
if ! pciconf -l pci0:2:0:1 | grep -q "^ppt"; then
echo = "rtx 2080ti slot 2/0/1 is not attached to ppt,attaching..."
de= vctl detach pci0:2:0:1
devctl set driver pci0:2:0:1 ppt
else
echo = "rtx 2080ti slot 2/0/1 is already attached to ppt"
fi

i= f ! pciconf -l pci0:2:0:2 | grep -q "^ppt"; then
echo "rt= x 2080ti slot 2/0/2 is not attached to ppt,attaching..."
devctl det= ach pci0:2:0:2
devctl set driver pci0:2:0:2 ppt
else
echo "rt= x 2080ti slot 2/0/2 is already attached to ppt"
fi

if ! pcic= onf -l pci0:2:0:3 | grep -q "^ppt"; then
echo "rtx 2080ti= slot 2/0/3 is not attached to ppt,attaching..."
#devctl detach pci= 0:2:0:3
devctl set driver pci0:2:0:3 ppt
else
echo "rtx 2080t= i slot 2/0/3 is already attached to ppt"
fi

echo "rtx 2= 080ti is fully attached to ppt"

for vm in $vms; do
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 session=3D"${vm##*/}&= quot; =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ec= ho "bhyve session =3D $session"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "vnc session =3D $vncs" =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ! = printf '%s\n' "${vncs}" | grep "${session}"; th= en
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 printf 'VNC session not foun= d,destroying ghost vms\n'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 bhyve= ctl --vm=3D$session --destroy =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 printf 'Found VNC session %s\n' "${se= ssion},no ghost vms found,not destroying them"
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fi
done

vmdisk0=3D`geom disk = list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (NM13N4CZ)/ && d= {print d}'`
echo "Seagate M3 Portable 1.8 TB ; $vmdisk0"
vmdisk1=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *iden= t: (2022285F1175)/ && d{print d}'`
echo "CT1000P1SSD8 ;= $vmdisk1"

vmdisk2=3D`geom disk list | awk '/^Geom name: /{= d=3D$NF} /^ *ident: (2015020204055E)/ && d{print d}'`
echo &= quot;TOSHIBA External USB 3.0 1.8 TB ; $vmdisk2"

vmdisk3=3D`geo= m disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (20130506005976F)= / && d{print d}'`
echo "TOSHIBA External USB 3.0 932G ;= $vmdisk3"

vmdisk4=3D`geom disk list | awk '/^Geom name: /{= d=3D$NF} /^ *ident: (BE0191500218)/ && d{print d}'`
echo &qu= ot;G-DRIVE USB ; $vmdisk4"

vmdisk5=3D`geom disk list | awk '= ;/^Geom name: /{d=3D$NF} /^ *ident: (38434B4237354B45)/ && d{print = d}'`
echo "Elements 25A3 ; $vmdisk5"

vmdisk6=3D`geo= m disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (WD-WCAV2X597309)= / && d{print d}'`
echo "WDC WD3200AAJS-00L7A0-298 GB ; = $vmdisk6"

vmdisk7=3D`geom disk list | awk '/^Geom name: /{d= =3D$NF} /^ *ident: (0774911DDC4200A6)/ && d{print d}'`
echo = "SanDisk Cruzer-15GB ; $vmdisk7"

vmdisk8=3D`geom disk list= | awk '/^Geom name: /{d=3D$NF} /^ *ident: (60A44C4138D8F311190A0149)/ = && d{print d}'`
echo "Kingston DataTraveler 2.0 ; $vmdi= sk8"

vmdisk9=3D`geom disk list | awk '/^Geom name: /{d=3D$N= F} /^ *ident: (20140100006C)/ && d{print d}'`
echo "Cor= sair Force 3 SSD ; $vmdisk9"

vmdisk10=3D`geom disk list | awk &= #39;/^Geom name: /{d=3D$NF} /^ *ident: (1924E20B2AE5)/ && d{print d= }'`
echo "CT500MX500SSD4 ; $vmdisk10"

vmdisk11=3D`g= eom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (57584558303852= 4844323238)/ && d{print d}'`
echo "WD-2500BMV ; $vmdisk= 11"

vmdisk12=3D`geom disk list | awk '/^Geom name: /{d=3D$N= F} /^ *ident: (57442D575845323039544433303334)/ && d{print d}'`=
echo "WD-3200BMV ; $vmdisk12"

vmdisk13=3D`geom disk li= st | awk '/^Geom name: /{d=3D$NF} /^ *ident: (S3Z2NB0KB99028V)/ &&a= mp; d{print d}'`
echo "Samsung SSD 860 EVO 500GB ; $vmdisk13&qu= ot;

pkexec zpool import -f -R /mnt/zroot2 zroot2

bhyve -S -c = sockets=3D2,cores=3D2,threads=3D2 -m 8G -w -H -A \
-s 0,hostbridge \
= -s 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/ubuntu2210.img,bootindex= =3D1 \
-s 2,nvme,/dev/nvd0 \
-s 4,virtio-blk,/dev/$vmdisk11 \
-s 5= ,virtio-blk,/dev/$vmdisk12 \
-s 6,virtio-blk,/dev/$vmdisk13 \
-s 8,pa= ssthru,5/0/0 \
-s 13,virtio-net,tap19 \
-s 14,virtio-9p,sharename=3D/= \
-s 29,fbuf,tcp=3D0.= 0.0.0:5919,w=3D1600,h=3D950,wait \
-s 30,xhci,tablet \
-s 31,lpc = \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \
vm0:= 19 < /dev/null & sleep 2 && vncviewer 0:19


=
On Wed, Ma= y 24, 2023 at 3:10=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmail.com> wrote:=
On Wed, May 24,= 2023 at 8:33=E2=80=AFAM Mario Marietto <marietto2008@gmail.com> wrote:
>
> I do it automatically using only some scripts. I don't like to use= wrappers.

Do you have the scripts... btw I finally gave up on getting GPT
(actually more accurately Hugging Face Transformers) to run on FreeBSD
and I did get them to work on this linsucks machine with the only snag
benign it won't automatically boot... now that I have a better idea of<= br> what the whole working setup looks like I might try it again on
FreeBSD when I get some free time.

>
> On Wed, May 24, 2023 at 1:28=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmail.com= > wrote:
>>
>> I have it so I can get to a uefi shell prompt and manually boot bu= t I
>> am still missing how to make this all automatic
>>
>> --
>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org=
>>
>
>
> --
> Mario.



--
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org


--
Mario.


--
Mario.
--00000000000096438c05fc76852c--