Date: Sat, 12 Aug 2023 13:05:46 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: freebsd-virtualization@freebsd.org Subject: Re: Starting the bhyve journey Message-ID: <CAAdA2WOpv1jw-=Ut%2BTwV=%2BxfWK2vuKrguhp7FNpWdYgMc1Ai%2BA@mail.gmail.com> In-Reply-To: <CAAdA2WPwjJV=qDyx_NEi_CFYgvfKz6FjySBb9PrfMYYa%2BBpFCw@mail.gmail.com> References: <CAAdA2WPwjJV=qDyx_NEi_CFYgvfKz6FjySBb9PrfMYYa%2BBpFCw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <odhiambo@gmai= l.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: 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > ifmaxaddr 0 port 2 priority 128 path cost 20000 > groups: bridge vm-switch viid-4c918@ > nd6 options=3D9<PERFORMNUD,IFDISABLED> > tap0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric= 0 > mtu 1492 > description: vmnet/debian12/0/public > options=3D80000<LINKSTATE> > 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<PERFORMNUD,AUTO_LINKLOCAL> > > 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 <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Sat, Aug 12, 2023 at 12:24=E2=80= =AFPM Odhiambo Washington <<a href=3D"mailto:odhiambo@gmail.com">odhiamb= o@gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"ltr">Hello all.<div><br></div><div>I am new to bhyve= and have read a lot about it, so I decided to try creating a few VMs.</div= ><div>I found a HOWTO that is detailed and which appears to be the easiest = to follow:=C2=A0<a href=3D"https://klarasystems.com/articles/from-0-to-bhyv= e-on-freebsd-13-1/" target=3D"_blank">https://klarasystems.com/articles/fro= m-0-to-bhyve-on-freebsd-13-1/</a></div><div>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).</div><div>I have gotten stuck midway and = cannot figure out why: I cannot boot the VMs I create.</div><div>I have tri= ed creating a Windows2019 as well as a Debian12 VM, but both don't boot= .</div><div><br></div><div>vm-public: flags=3D8843<UP,BROADCAST,RUNNING,= SIMPLEX,MULTICAST> metric 0 mtu 1492<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ethe= r ce:6f:18:51:d4:51<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 id 00:00:00:00:00:00 pri= ority 32768 hellotime 2 fwddelay 15<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 maxage 2= 0 holdcnt 6 proto rstp maxaddr 2000 timeout 1200<br>=C2=A0 =C2=A0 =C2=A0 = =C2=A0 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0<br>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 member: em1 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,= AUTOPTP><br>=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<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 = groups: bridge vm-switch viid-4c918@<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opt= ions=3D9<PERFORMNUD,IFDISABLED><br></div><div>tap0: flags=3D8943<U= P,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1492<br>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 description: vmnet/debian12/0/public<br>=C2=A0 =C2= =A0 =C2=A0 =C2=A0 options=3D80000<LINKSTATE><br>=C2=A0 =C2=A0 =C2=A0 = =C2=A0 ether 58:9c:fc:10:ff:ed<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::5= a9c:fcff:fe10:ffed%tap0 prefixlen 64 scopeid 0x6<br>=C2=A0 =C2=A0 =C2=A0 = =C2=A0 groups: tap vm-port<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: Ethernet a= utoselect<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: no carrier<br>=C2=A0 =C2= =A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL><br></di= v><div><br></div><div>1.=C2=A0 Windows2019 VM:</div><div>=C2=A0 =C2=A0 vm c= reate -t uefi -s 100G -m 8G -c8 windows2019</div><div>=C2=A0 =C2=A0=C2=A0vm= install windows2019 /usr/local/bhyve-vms/.iso/server2019.iso</div><div><br= ></div><div>2. Debian12 VM:</div><div>=C2=A0 =C2=A0=C2=A0vm create -s 60G -= m 8G -c 8 debian12</div><div>=C2=A0 =C2=A0=C2=A0vm install debian12 .iso/de= bian-12.0.0-amd64-DVD-1.iso</div><div><br></div><div>root@gw:/usr/local/bhy= ve-vms # vm list<br>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 STATE<br= >debian12 =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)<br>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<br></div><div><br></div><div>From the above output of `vm list`, you can = see that none of them is booting up.</div><div><br></div><div>What is it th= at I could be missing?</div></div></blockquote><div><br></div><div>I found = the problem. The .templates/uefi.conf had a wrong value for=C2=A0=C2=A0netw= ork0_switch.</div><div>It should be "vm-public" instead of "= public".</div><div></div></div><div><br></div><br clear=3D"all"><div><= br></div><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"l= tr" class=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div>Best r= egards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 22= 74 3223<br>"<span style=3D"font-size:12.8px">Oh, the cruft.</span><spa= n style=3D"font-size:12.8px">",=C2=A0</span><span style=3D"font-size:1= 2.8px">egrep -v '^$|^.*#'=C2=A0</span><span style=3D"background-col= or:rgb(34,34,34);color:rgb(238,238,238);font-family:"Lucida Console&qu= ot;,Consolas,"Courier New",monospace;font-size:13.6px">=C2=AF\_(= =E3=83=84)_/=C2=AF</span><span style=3D"font-size:12.8px">=C2=A0:-)</span><= /div><div><span style=3D"font-size:12.8px">[How to ask smart questions:=C2= =A0</span><span style=3D"font-size:12.8px"><a href=3D"http://www.catb.org/~= esr/faqs/smart-questions.html" target=3D"_blank">http://www.catb.org/~esr/f= aqs/smart-questions.html</a>]</span></div></div></div></div></div> --00000000000043b0960602b6fbfc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WOpv1jw-=Ut%2BTwV=%2BxfWK2vuKrguhp7FNpWdYgMc1Ai%2BA>