Date: Wed, 6 May 2020 02:12:14 +0200 From: Michael Gmelin <freebsd@grem.de> To: Brandon helsley <brandon.helsley@hotmail.com> Cc: Aryeh Friedman <aryeh.friedman@gmail.com>, "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: Bhyve help Message-ID: <DF13A942-B892-4339-A6B9-5A625B172F7E@grem.de> In-Reply-To: <CY4PR19MB165502C69B8A494048BC57E3F9A70@CY4PR19MB1655.namprd19.prod.outlook.com> References: <CY4PR19MB165502C69B8A494048BC57E3F9A70@CY4PR19MB1655.namprd19.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You might want to read https://blog.grem.de/ayvn It also covers using vm-bhyve to manage vms and will explain some things abo= ut configuring the network. > On 6. May 2020, at 01:55, Brandon helsley <brandon.helsley@hotmail.com> wr= ote: >=20 > =EF=BB=BFWell how do i add a tap to the bridge the VM is on as well as my p= hysical nic >=20 > Sent from Outlook Mobile<https://aka.ms/blhgte> >=20 > ________________________________ > From: Aryeh Friedman <aryeh.friedman@gmail.com> > Sent: Tuesday, May 5, 2020 5:02:50 PM > To: Brandon helsley <brandon.helsley@hotmail.com> > Cc: freebsd-virtualization@freebsd.org <freebsd-virtualization@freebsd.org= >; Robert Crowston <crowston@protonmail.com> > Subject: Re: Bhyve help >=20 > When setting up a VM you also need to add the tap it is on to the bridge a= s well your physical NIC >=20 > On Tue, May 5, 2020 at 6:28 PM Brandon helsley <brandon.helsley@hotmail.co= m<mailto:brandon.helsley@hotmail.com>> wrote: > Bhyve gets me to Network installation: "some installation files were not f= ound on the boot volume. The next few screens will allow you to configure ne= tworking so that they can be downloaded from the internet." This happens aft= er system components. >=20 > Sent from Outlook Mobile<https://aka.ms/blhgte> > ________________________________ > From: Aryeh Friedman <aryeh.friedman@gmail.com<mailto:aryeh.friedman@gmail= .com>> > Sent: Tuesday, May 5, 2020 4:08:10 AM > To: Brandon helsley <brandon.helsley@hotmail.com<mailto:brandon.helsley@ho= tmail.com>> > Cc: freebsd-virtualization@freebsd.org<mailto:freebsd-virtualization@freeb= sd.org> <freebsd-virtualization@freebsd.org<mailto:freebsd-virtualization@fr= eebsd.org>>; Robert Crowston <crowston@protonmail.com<mailto:crowston@proton= mail.com>> > Subject: Re: Bhyve help >=20 >=20 >=20 > On Tue, May 5, 2020 at 6:00 AM Brandon helsley <brandon.helsley@hotmail.co= m<mailto:brandon.helsley@hotmail.com>> wrote: > The handbook only says vmm doesn't it. I got bhyve to start without virtio= kernel module as well as the if_tap but with vmm modules. >=20 > The handbook section on virtualization (FreeBSD host) is at best awful and= misleading your best guide is the bhyve man page (especially the examples t= here) here is the modules I load for the same set up I recommended you try a= s a advanced beginners lesson in virtualization and networking. And an exa= mple script for using them: >=20 > /boot/loader.conf: >=20 > kern.geom.label.disk_ident.enable=3D"0" > kern.geom.label.gptid.enable=3D"0" > opensolaris_load=3D"YES" > zfs_load=3D"YES" > ipfw_load=3D"YES" > ipdivert_load=3D"YES" > linux_load=3D"YES" >=20 > In the real /boot/loader.conf the following are commented out because Peti= teCloud takes care of them when it loads but unless you want to get into mor= e advanced stuff (like how to install non-standard ports) you should uncomme= nt them. >=20 > vmm_load=3D"YES" > if_tap_load=3D"YES" > nmdm_load=3D"YES" >=20 > The script to load the file server VM: >=20 > #!/bin/sh > # > # Generated by PetiteCloud 0.2.6 > # >=20 > ifconfig tap12 destroy > ifconfig tap12 create > ifconfig tap12 up > sleep 5 > ifconfig bridge0 addm tap12 up > bhyvectl --destroy --vm=3Db829e56e9b4289a1 > /usr/sbin/bhyve -c cores=3D4 -m 4096 -AI -H -P -w -g 0 -s 0:0,hostbridge -= s 1,virtio-net,tap12 -s 2,ahci-hd,/vms/import/win10 -s 29,fbuf,tcp=3D0.0.0.= 0:5912<http://0.0.0.0:5912>,w=3D1920,h=3D1080 -s 30,xhci,tablet -s 31,lpc -= l com1,/dev/nmdm12B -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd b= 829e56e9b4289a1&>/dev/null > echo $!>/var/run/petitecloud/b829e56e9b4289a1 > sleep 10 >=20 > I'm at this screen:please choose the appropriate terminal type for your sy= stem.common console types are: ansi, vt100, xterm, cons25w. >=20 > Console type [vt100]: >=20 > Sent from Outlook Mobile<https://aka.ms/blhgte> > ________________________________ > From: Aryeh Friedman <aryeh.friedman@gmail.com<mailto:aryeh.friedman@gmail= .com>> > Sent: Tuesday, May 5, 2020 3:52:26 AM > To: Brandon helsley <brandon.helsley@hotmail.com<mailto:brandon.helsley@ho= tmail.com>> > Cc: freebsd-virtualization@freebsd.org<mailto:freebsd-virtualization@freeb= sd.org> <freebsd-virtualization@freebsd.org<mailto:freebsd-virtualization@fr= eebsd.org>>; Robert Crowston <crowston@protonmail.com<mailto:crowston@proton= mail.com>> > Subject: Re: Bhyve help >=20 >=20 >=20 > On Tue, May 5, 2020 at 5:21 AM Brandon helsley <brandon.helsley@hotmail.co= m<mailto:brandon.helsley@hotmail.com>> wrote: > I have re0 but the ip address is under wlan0 with my CenturyLink >=20 > In order to use vtnet and bridging (both required for bhyve networking) yo= u need to load the load the virtio kernel module as well as the if_tap and v= mm modules (the first one provides the host side of the virtual NIC and the s= econd loads the hypervisor components) >=20 > Sent from Outlook Mobile<https://aka.ms/blhgte> >=20 > ________________________________ > From: Robert Crowston <crowston@protonmail.com<mailto:crowston@protonmail.= com>> > Sent: Tuesday, May 5, 2020 3:14:43 AM > To: Brandon helsley <brandon.helsley@hotmail.com<mailto:brandon.helsley@ho= tmail.com>>; freebsd-virtualization@freebsd.org<mailto:freebsd-virtualizatio= n@freebsd.org> <freebsd-virtualization@freebsd.org<mailto:freebsd-virtualiza= tion@freebsd.org>> > Subject: Re: Bhyve help >=20 > What are your network interfaces called on your machine? You probably have= to change igb0 in the example to em0 (an Intel card) or re0 (a Realtek card= ). Type =E2=80=9Cifconfig=E2=80=9D to list all the interfaces, and look for o= nes with an ip address to figure it out. >=20 > On Tue, May 5, 2020 at 10:10, Brandon helsley <brandon.helsley@hotmail.com= <mailto:brandon.helsley@hotmail.com><mailto:brandon.helsley@hotmail.com<mail= to:brandon.helsley@hotmail.com>>> wrote: > I'm trying to set up bhyve like the example to learn and when doing the ph= ysical interface interface get the result no such file or directory the comm= and is: >=20 > ifconfig bridge0 addm igb0 addm tap0 >=20 > "In this example, the physical interface is igb0" >=20 >=20 > Sent from Outlook Mobile<https://aka.ms/blhgte> > _______________________________________________ > freebsd-virtualization@freebsd.org<mailto:freebsd-virtualization@freebsd.o= rg> mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freeb= sd.org<mailto:freebsd-virtualization-unsubscribe@freebsd.org>" >=20 >=20 > _______________________________________________ > freebsd-virtualization@freebsd.org<mailto:freebsd-virtualization@freebsd.o= rg> mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freeb= sd.org<mailto:freebsd-virtualization-unsubscribe@freebsd.org>" >=20 >=20 > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >=20 >=20 > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >=20 >=20 > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freeb= sd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DF13A942-B892-4339-A6B9-5A625B172F7E>