From nobody Sat Aug 12 10:05:46 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 4RNGXL0bNcz4mJ8m for ; Sat, 12 Aug 2023 10:06:26 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (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 4RNGXK0Rghz4SlT for ; Sat, 12 Aug 2023 10:06:25 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=BykouRvR; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::22f as permitted sender) smtp.mailfrom=odhiambo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9bf52cd08so40526151fa.2 for ; Sat, 12 Aug 2023 03:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691834783; x=1692439583; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Rz7ws8Cbk4yQ4EmZk5FRBSpAdpwtjU5zMwcK1+AcGvA=; b=BykouRvRumjvZ9H0GuFxIKKFd3rRt3fgL0sB/U0xcH+4N2dMRzmRYid6G50VpsAcF9 2a8OomrP6CW6/Yea8SleEI7poL0gCwDFwFPUC3txtJ6thLjxw1xxbks92/REBZ5muqZa QBYQJAg4l8P8rrz3WP6Bp6z4ztDNfyq4+ridmyOw61F/Bhu/d0oFt+gRlvMi1AV1E2F7 RHAJJI67jXAOCEqG29mAzi6pMS1wdos346eZYlv5cGrzOBDd040iNcpWL2U5WgMbdfC+ /lUL18XdGb6IPgNfug58CaB9zMfsnPq36QG8rIXKN1LhmwrxVKCXUbVwqTUEiZUo6wlO V1ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691834783; x=1692439583; h=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=Rz7ws8Cbk4yQ4EmZk5FRBSpAdpwtjU5zMwcK1+AcGvA=; b=etOdQodmrbmESZ/c5s+popOJhh6PimrL+E00M474SqWNYFMLKN/qy99NdNWU1v+kO5 jLcHzxr0QkbTNTV9v6f/kND37nayfBCOSbuuA3nI+ISwSU3WOah7og6nf+apQlDC60gN lfYQirfi5yfgZ8bN0Wrw6iJ1MSV8AphJp+zWOAjvn9SYaGJmm4AKhdGbK8b0kPh6gb2w LNfdQOwnU9tt+T0a3Bv1hSXsEaK0WtiYJPAskgkreywyRVV94xyLc/sUp0KMrP3SeVoU LrF64ChGFccqylinH0YXFCa8W9OrYtOOYCoBX2ygbxWfr713vExP0DVumXvJpLAgeNpc f7Qw== X-Gm-Message-State: AOJu0YzX0Sop2BeD9iVgGhwyDqyGtcSvtqVFSXbm+5h3Wcp9wKfksZA9 mWQR8/EoFHGuturk5mi8JyrYsP4FnG6m/ukg0dTixLyAsTXBrESy X-Google-Smtp-Source: AGHT+IERlaH3v99S8sHejxgKKqt5w1se8If81aMFUkMKt4bU0qCgOZHtHhm7uzh+A5VjsdXasEHjfJ6TvZL4cXaojFw= X-Received: by 2002:a2e:b61a:0:b0:2b7:11f8:27d with SMTP id r26-20020a2eb61a000000b002b711f8027dmr3223066ljn.7.1691834783082; Sat, 12 Aug 2023 03:06:23 -0700 (PDT) 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 References: In-Reply-To: From: Odhiambo Washington Date: Sat, 12 Aug 2023 13:05:46 +0300 Message-ID: Subject: Re: Starting the bhyve journey To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000043b0960602b6fbfc" X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; NEURAL_HAM_LONG(-0.98)[-0.978]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22f:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RNGXK0Rghz4SlT --00000000000043b0960602b6fbfc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Aug 12, 2023 at 12:24=E2=80=AFPM Odhiambo Washington wrote: > Hello all. > > I am new to bhyve and have read a lot about it, so I decided to try > creating a few VMs. > I found a HOWTO that is detailed and which appears to be the easiest to > follow: https://klarasystems.com/articles/from-0-to-bhyve-on-freebsd-13-1= / > The only differences are that I did not install a fresh FreeBSD-13 server > as I already had one, and I am not using ZFS on my server (host). > I have gotten stuck midway and cannot figure out why: I cannot boot the > VMs I create. > I have tried creating a Windows2019 as well as a Debian12 VM, but both > don't boot. > > vm-public: flags=3D8843 metric 0 = mtu > 1492 > ether ce:6f:18:51:d4:51 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: em1 flags=3D143 > ifmaxaddr 0 port 2 priority 128 path cost 20000 > groups: bridge vm-switch viid-4c918@ > nd6 options=3D9 > tap0: flags=3D8943 metric= 0 > mtu 1492 > description: vmnet/debian12/0/public > options=3D80000 > ether 58:9c:fc:10:ff:ed > inet6 fe80::5a9c:fcff:fe10:ffed%tap0 prefixlen 64 scopeid 0x6 > groups: tap vm-port > media: Ethernet autoselect > status: no carrier > nd6 options=3D21 > > 1. Windows2019 VM: > vm create -t uefi -s 100G -m 8G -c8 windows2019 > vm install windows2019 /usr/local/bhyve-vms/.iso/server2019.iso > > 2. Debian12 VM: > vm create -s 60G -m 8G -c 8 debian12 > vm install debian12 .iso/debian-12.0.0-amd64-DVD-1.iso > > root@gw:/usr/local/bhyve-vms # vm list > NAME DATASTORE LOADER CPU MEMORY VNC AUTO STATE > debian12 default bhyveload 8 8G - > Yes[2] Bootloader (91866) > windows2019 default uefi 8 8G - > Yes [1] Stopped > > From the above output of `vm list`, you can see that none of them is > booting up. > > What is it that I could be missing? > I found the problem. The .templates/uefi.conf had a wrong value for network0_switch. It should be "vm-public" instead of "public". --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --00000000000043b0960602b6fbfc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Aug 12, 2023 at 12:24=E2=80= =AFPM Odhiambo Washington <odhiamb= o@gmail.com> wrote:
Hello all.

I am new to bhyve= and have read a lot about it, so I decided to try creating a few VMs.
I found a HOWTO that is detailed and which appears to be the easiest = to follow:=C2=A0https://klarasystems.com/articles/fro= m-0-to-bhyve-on-freebsd-13-1/
The only differences are that I= did not install a fresh FreeBSD-13 server as I already had one, and I am n= ot using ZFS on my server (host).
I have gotten stuck midway and = cannot figure out why: I cannot boot the VMs I create.
I have tri= ed creating a Windows2019 as well as a Debian12 VM, but both don't boot= .

vm-public: flags=3D8843<UP,BROADCAST,RUNNING,= SIMPLEX,MULTICAST> metric 0 mtu 1492
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ethe= r ce:6f:18:51:d4:51
=C2=A0 =C2=A0 =C2=A0 =C2=A0 id 00:00:00:00:00:00 pri= ority 32768 hellotime 2 fwddelay 15
=C2=A0 =C2=A0 =C2=A0 =C2=A0 maxage 2= 0 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 member: em1 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,= AUTOPTP>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ifma= xaddr 0 port 2 priority 128 path cost 20000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = groups: bridge vm-switch viid-4c918@
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opt= ions=3D9<PERFORMNUD,IFDISABLED>
tap0: flags=3D8943<U= P,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1492
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 description: vmnet/debian12/0/public
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 options=3D80000<LINKSTATE>
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 ether 58:9c:fc:10:ff:ed
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::5= a9c:fcff:fe10:ffed%tap0 prefixlen 64 scopeid 0x6
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 groups: tap vm-port
=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: Ethernet a= utoselect
=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: no carrier
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>

1.=C2=A0 Windows2019 VM:
=C2=A0 =C2=A0 vm c= reate -t uefi -s 100G -m 8G -c8 windows2019
=C2=A0 =C2=A0=C2=A0vm= install windows2019 /usr/local/bhyve-vms/.iso/server2019.iso
2. Debian12 VM:
=C2=A0 =C2=A0=C2=A0vm create -s 60G -= m 8G -c 8 debian12
=C2=A0 =C2=A0=C2=A0vm install debian12 .iso/de= bian-12.0.0-amd64-DVD-1.iso

root@gw:/usr/local/bhy= ve-vms # vm list
NAME =C2=A0 =C2=A0 =C2=A0 =C2=A0 DATASTORE =C2=A0LOADER= =C2=A0 =C2=A0 CPU =C2=A0MEMORY =C2=A0VNC =C2=A0AUTO =C2=A0 =C2=A0 STATEdebian12 =C2=A0 =C2=A0 default=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 bh= yveload=C2=A0 =C2=A0 8=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A08G=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-=C2=A0 =C2=A0 =C2=A0 =C2=A0Yes[2]=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0Bootloader (91866)
windows2019 =C2=A0default=C2= =A0 =C2=A0 =C2=A0 =C2=A0 uefi=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A08=C2=A0 =C2=A0 =C2=A0 =C2=A0 8G=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0-=C2=A0 =C2=A0 =C2=A0 =C2=A0Yes [1]=C2=A0 =C2=A0 =C2=A0Stoppe= d

From the above output of `vm list`, you can = see that none of them is booting up.

What is it th= at I could be missing?

I found = the problem. The .templates/uefi.conf had a wrong value for=C2=A0=C2=A0netw= ork0_switch.
It should be "vm-public" instead of "= public".


<= br>
--
Best r= egards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 22= 74 3223
"Oh, the cruft.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(= =E3=83=84)_/=C2=AF=C2=A0:-)<= /div>
[How to ask smart questions:=C2= =A0http://www.catb.org/~esr/f= aqs/smart-questions.html]
--00000000000043b0960602b6fbfc--