From nobody Wed May 24 13:27:18 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 4QRBnv1kFWz4Chw8 for ; Wed, 24 May 2023 13:28:03 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) (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 4QRBnm33cJz3QKh for ; Wed, 24 May 2023 13:27:56 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=iIGT35i8; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::b2f as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-ba81031424dso1443053276.2 for ; Wed, 24 May 2023 06:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684934874; x=1687526874; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5kmO+U/TbArrPXTcFhX4CNuk2R/QtaGGuokXJoDcm/E=; b=iIGT35i825jqkkFwa4m9fZFmbgC+jCIMb8xm9h7jM/TJHJKy3abkxuJPLZvbfN/MgA QnDsl9By5XB8d7rdVa4tv3LrcstWRxs/ouaQJeAhyAwtnfPzUGkcRCISMJmrMnWk1HyL /EKQd98isdvbiroA5ox84LyLmxAbht8gr6ki/DwJ3mvFFhijMveKgTzqYuvjy5+zXrqp Nw8WxWYckgI5UtpKyFUunOJK9Dqdzzf/uxz1EHDESPiHjgHpcEk6efzzWqr6fiiOYR9S L2ddkOuP9mtH0bgff3KTYiSz1ZG12ziuWedELyG23qn91OyR1FOfsorzRGLjlDoAu69Z /ncA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684934874; x=1687526874; 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=5kmO+U/TbArrPXTcFhX4CNuk2R/QtaGGuokXJoDcm/E=; b=ZsbcfxqmcUu5+mB+IlQhc6cdgQZnDhsw8OHWA2YnYXUceiCWeyZCFcU9OuXUCWBvf5 ARwB8PTcQ1wKUENtHSU7U0st5XcezilZfpBCyQTqD0/5bfeElIw2rkWF7X4zyIbb0G8T bGPauLfbXbeItSSJV2lnAJV5pQwhOyj2D/YO53kQSr3O7XBVdIpwfMPaGLlP8Ajlwp9V 1kp0+7TXt7FOEyyDiJT+efqQAW+IjzJL5bA26b8ZHZU3ZSDt9B/V6VOnfOG1pBxg5D9N 8EA+LOqcDwacu4qcJ5nK883HGkGLx6SAFMKQ5I+AREo/FVfkw+DL72CUt9a/r1lCMGfz vJUg== X-Gm-Message-State: AC+VfDyPBR/Rdes3WTkOKtNmHretByAi1aIUzPOhxdfY+2Al5itvZk3f 8blJWrqdVYoFI7h4kfIQQiZUdPzLwr5CAFIv+pSmpdCko2BKnA== X-Google-Smtp-Source: ACHHUZ4Ujtc0qLo0FM3XTnm3hKiPMHpkuBndRmAy524FC1w0/DkKI64qD6QcJfhnDTPrmOhVJaYZtZ0J+mQNlVXBu4s= X-Received: by 2002:a25:e6c6:0:b0:bac:6602:4722 with SMTP id d189-20020a25e6c6000000b00bac66024722mr5123299ybh.3.1684934873947; Wed, 24 May 2023 06:27:53 -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 15:27:18 +0200 Message-ID: Subject: Re: booting linux on bhyve To: Aryeh Friedman , Odhiambo Washington Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000a1a22505fc7078e8" X-Spamd-Result: default: False [0.22 / 15.00]; URI_COUNT_ODD(1.00)[9]; HTTP_TO_IP(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_LONG(-0.91)[-0.906]; NEURAL_HAM_SHORT(-0.87)[-0.874]; 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::b2f:query timed out]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b2f: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: 4QRBnm33cJz3QKh X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N --000000000000a1a22505fc7078e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D= 1 \ That's the name and the location of the raw file. Inside the script I have 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 Linux 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: (NM13N4= CZ)/ && 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=3D= 1 \ -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 > 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 > --=20 Mario. --000000000000a1a22505fc7078e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've created a script like the one below. Actuall= y I use the same pattern for every VM I want to use. Every VM has its own n= umber associated. What changes from one to another is only this line :

-s 1,virtio-blk,/mnt/zroot2/zroot2/bhyve/img/Linux/ubu= ntu2210.img,bootindex=3D1 \

That's the name an= d the location of the raw file. Inside the script I have added a mechanism = to kill a ghosted vm if it does not find the associated viewer window activ= e. That's because I don't find it useful to use a ghosted vm. Yes,i= t 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 Linux VM. There is a bug tha= t 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<= br>vms=3D"$(ls /dev/vmm/*)"
vncs=3D"$(ps ax | awk '/v= ncviewer [0]/{print $6}')"
echo $vms
echo $vncs

if ! = pciconf -l pci0:2:0:0 | grep -q "^ppt"; then
echo "rtx 20= 80ti 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 pptelse
echo "rtx 2080ti slot 2/0/0 is already attached to ppt"<= br>fi

if ! pciconf -l pci0:2:0:1 | grep -q "^ppt"; thenecho "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
elseecho "rtx 2080ti slot 2/0/1 is already attached to ppt"
fi
if ! pciconf -l pci0:2:0:2 | grep -q "^ppt"; then
echo &q= uot;rtx 2080ti slot 2/0/2 is not attached to ppt,attaching..."
devc= tl detach pci0:2:0:2
devctl set driver pci0:2:0:2 ppt
else
echo &q= uot;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 deta= ch 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
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 session=3D"${vm##= */}" =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 echo "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 i= f ! printf '%s\n' "${vncs}" | grep "${session}"= ; then
=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 no= t found,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 bhyvectl --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' = "${session},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)/ &a= mp;& d{print d}'`
echo "Seagate M3 Portable 1.8 TB ; $vmdis= k0"

vmdisk1=3D`geom disk list | awk '/^Geom name: /{d=3D$NF= } /^ *ident: (2022285F1175)/ && d{print d}'`
echo "CT10= 00P1SSD8 ; $vmdisk1"

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

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

vmdisk4=3D`geom disk list | awk '/^Geo= m 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"

vmdi= sk6=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (WD-WCA= V2X597309)/ && 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: (60A44C4138D8F3111= 90A0149)/ && 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 li= st | awk '/^Geom name: /{d=3D$NF} /^ *ident: (1924E20B2AE5)/ &&= d{print d}'`
echo "CT500MX500SSD4 ; $vmdisk10"

vmd= isk11=3D`geom disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (5758= 45583038524844323238)/ && d{print d}'`
echo "WD-2500BMV= ; $vmdisk11"

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

vmdisk13=3D`ge= om disk list | awk '/^Geom name: /{d=3D$NF} /^ *ident: (S3Z2NB0KB99028V= )/ && d{print d}'`
echo "Samsung SSD 860 EVO 500GB ; $v= mdisk13"

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

bh= yve -S -c sockets=3D2,cores=3D2,threads=3D2 -m 8G -w -H -A \
-s 0,hostbr= idge \
-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 \<= br>-s 8,passthru,5/0/0 \
-s 13,virtio-net,tap19 \
-s 14,virtio-9p,sha= rename=3D/ \
-s 29,fbuf,tcp=3D0.0.0.0:59= 19,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, 20= 23 at 3:10=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmail.com> wrote:
On Wed, May 24, 2023 at 8:33=E2=80=AFAM M= ario 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.
--000000000000a1a22505fc7078e8--