From owner-freebsd-virtualization@freebsd.org Wed May 6 00:12:20 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 530632DA3D1 for ; Wed, 6 May 2020 00:12:20 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mail.evolve.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49GxqQ63sGz3FdY for ; Wed, 6 May 2020 00:12:18 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id cbcf495f; Wed, 6 May 2020 00:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=0IGad+i4IFwtXK BAeerUSR8b6uk=; b=b6GhnSC9xKiP21MhwEp1dRjOGK/ReRuJ/NcwcivtK/GMOh mvb3uMYGSCjrhdjSzUCPLjNY1wJ2kF8U0CIvmrWoTRcSnpHkdrSvz3ovAvSTRIPl gODYylMmNvDhbG2rW3YBWtSgwvQQ/8ig++EGbW9GQPl4bfPc/62/mqSLKGHxu0RB JbvUnZyB6lPUJdmrUV9EPkcJhY8c3JJE/29bYm8o6xryNCa5tQ70Yb/zwhab1HHk 7dH0lSx29iY5iJBPP38r6+8Ih+o00r1OLrYNaVqISYE13RmE3CXDN6MNESzCMasH bO1l+3mifRv4MnisNcbS6EEnPguFK12vBWsD+L7A== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=mTKCEn5R pUzRtYUuoZO/6TPg0yL/vkd4OCuMnvQuxAVE/YsM/AIw2orFOo/4zjyyqNKmvfjX aarRpiaBlPEUgb+v8zDmqizml3/cinz2qzpTV68NurSKGKxDNrMNt5xzzUphxXsi Iu7PXbGXQIz2+Y2tIxSVyXtGj/C7mjKkzYeOhllm6OkUdYc5YvTulcM/raNzAH9l 0ymCWrCulPkVAGZkztY1N0ArHOgh3DGYCjKtuu4XVtBSvh2aauQAk8+SeVD48lj/ VysXioBtyXSV+pkPTCQLC3Ug2QcyTX/eIhOpYP9MgrnfOOYfFKIY0Z/40KR/AHEn sZVvNVe5tlWtFA== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id d9ec6471 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Wed, 6 May 2020 00:12:14 +0000 (UTC) Mime-Version: 1.0 (1.0) Subject: Re: Bhyve help From: Michael Gmelin In-Reply-To: Date: Wed, 6 May 2020 02:12:14 +0200 Cc: Aryeh Friedman , "freebsd-virtualization@freebsd.org" Message-Id: References: To: Brandon helsley X-Mailer: iPhone Mail (17E262) X-Rspamd-Queue-Id: 49GxqQ63sGz3FdY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=b6GhnSC9; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de X-Spamd-Result: default: False [-2.27 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; MV_CASE(0.50)[]; URI_COUNT_ODD(1.00)[27]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[grem.de:+]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.27)[ip: (-4.78), ipnet: 213.239.192.0/18(-0.05), asn: 24940(-1.50), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[grem.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2020 00:12:20 -0000 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 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 >=20 > ________________________________ > From: Aryeh Friedman > Sent: Tuesday, May 5, 2020 5:02:50 PM > To: Brandon helsley > Cc: freebsd-virtualization@freebsd.org ; Robert Crowston > 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 > 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 > ________________________________ > From: Aryeh Friedman > > Sent: Tuesday, May 5, 2020 4:08:10 AM > To: Brandon helsley > > Cc: freebsd-virtualization@freebsd.org >; Robert Crowston > > Subject: Re: Bhyve help >=20 >=20 >=20 > On Tue, May 5, 2020 at 6:00 AM Brandon helsley > 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,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 > ________________________________ > From: Aryeh Friedman > > Sent: Tuesday, May 5, 2020 3:52:26 AM > To: Brandon helsley > > Cc: freebsd-virtualization@freebsd.org >; Robert Crowston > > Subject: Re: Bhyve help >=20 >=20 >=20 > On Tue, May 5, 2020 at 5:21 AM Brandon helsley > 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 >=20 > ________________________________ > From: Robert Crowston > > Sent: Tuesday, May 5, 2020 3:14:43 AM > To: Brandon helsley >; freebsd-virtualization@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 >> 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 > _______________________________________________ > 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" >=20 >=20 > _______________________________________________ > 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" >=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"