From owner-freebsd-virtualization@freebsd.org Tue May 5 10:08:23 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 8B1B72E014D for ; Tue, 5 May 2020 10:08:23 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Gb5f5Qy6z3CSY for ; Tue, 5 May 2020 10:08:22 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd33.google.com with SMTP id k18so549278ion.0 for ; Tue, 05 May 2020 03:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vvDSM2Jbb/+nkvgiBoMpx1spwi8ttZ+3x2RiRCqgX18=; b=Mhsr22h5UTJ0yZ442Z8ILOq6J2F3BFvU5yavdaz+G0doSiExn3XFhqtszjYY+la0B0 efMoQno9Zf3iyR1jDt+5xDHAAcJ/CAxSkJACCwlvQbaShtohl04ji0K8/f+oa2YgnqNy JpFgpME1r+KWXQPL6G5nmBspNx9aRMP8wViGYhsxsowQ2TDz8FM5klpG4KR87rFn6EQD 8dJYxIdoZuZyQbT7Ymc1gMmQ013vPIXYfhCZz/m7K2iFGSCnd5ny8ISf6M0tfAjmumHf IwJv5AdqP+eCYw4/YwU2RidMgVFAvHVN/kIErV7gXk/+jv78ZjKlxMaAEubUzq0zm9zQ Jy/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vvDSM2Jbb/+nkvgiBoMpx1spwi8ttZ+3x2RiRCqgX18=; b=FeY+xq5xcwBO23Iw/CoSpcmydTMyI9XOgrMV243+EMmcLbCBbK3w0hS9a7NwnTOiZh 598hFwgGObYSpbfrxNF9W8g/CJcmWBHlJovWypxGVNuoxS9+CN3V9du93QKuHn6HnbAZ od6L4jJmRdGAIDuYQEqwMQyDJDodO46PV7s+4AIwmXhbX6kh5FZ/JAk4PaDoXFeiiDnP zNYdpQkZwyUMFMHq95JSTqUVxoGoD9OAHiWJZV1wgczmCcHDuZHc0dKOwYmPfW9UvHnH mg33uW4DxqMitGWAoSQlL1r2Z/wif2usK7TrKG8ZNvukS8gpRnSeK+03PrC+3orrEMm1 ZQyA== X-Gm-Message-State: AGi0Puatog5/L9gTVg/zqnj8fW95PqX6GaPLai9yZk8cnKV9EfmAJOuX MFKqKPiD/DElesB+Pryj3VB8Ps3fgocAmfWzN+8= X-Google-Smtp-Source: APiQypL8cgNxQw55SGaSRbaIK93nDe2IqsX12j5fnBF9XRMyQxKtDeYI6d9c40y7B3JMooqsmz6rrnMsp43SPWBWmes= X-Received: by 2002:a02:9f94:: with SMTP id a20mr2666966jam.40.1588673301381; Tue, 05 May 2020 03:08:21 -0700 (PDT) MIME-Version: 1.0 References: <1NVr2edzkfBDrm41NUc1i3czldPuT_tn_7Y1mlj7ef_uTSXRpKo1BV5wvWTr9F8K14KqN09d5Sy8BjnnaJ9EsAMTQ6rvJl1IiD2TNWcTf2Y=@protonmail.com> In-Reply-To: From: Aryeh Friedman Date: Tue, 5 May 2020 06:08:10 -0400 Message-ID: Subject: Re: Bhyve help To: Brandon helsley Cc: "freebsd-virtualization@freebsd.org" , Robert Crowston X-Rspamd-Queue-Id: 49Gb5f5Qy6z3CSY X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Mhsr22h5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[21]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; HTTP_TO_IP(1.00)[]; IP_SCORE(0.00)[ip: (-5.88), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2]; 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: Tue, 05 May 2020 10:08:23 -0000 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 virti= o > kernel module as well as the if_tap but with vmm modules. > The handbook section on virtualization (FreeBSD host) is at best awful and misleading your best guide is the bhyve man page (especially the examples there) here is the modules I load for the same set up I recommended you try as a advanced beginners lesson in virtualization and networking. And an example script for using them: /boot/loader.conf: 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" In the real /boot/loader.conf the following are commented out because PetiteCloud takes care of them when it loads but unless you want to get into more advanced stuff (like how to install non-standard ports) you should uncomment them. vmm_load=3D"YES" if_tap_load=3D"YES" nmdm_load=3D"YES" The script to load the file server VM: #!/bin/sh # # Generated by PetiteCloud 0.2.6 # 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=3D 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 b829e56e9b4289a1&>/dev/null echo $!>/var/run/petitecloud/b829e56e9b4289a1 sleep 10 > > I'm at this screen:please choose the appropriate terminal type for your > system.common console types are: ansi, vt100, xterm, cons25w. > > Console type [vt100]: > > Sent from Outlook Mobile > ------------------------------ > *From:* Aryeh Friedman > *Sent:* Tuesday, May 5, 2020 3:52:26 AM > *To:* Brandon helsley > *Cc:* freebsd-virtualization@freebsd.org < > freebsd-virtualization@freebsd.org>; Robert Crowston < > crowston@protonmail.com> > *Subject:* Re: Bhyve help > > > > On Tue, May 5, 2020 at 5:21 AM Brandon helsley < > brandon.helsley@hotmail.com> wrote: > > I have re0 but the ip address is under wlan0 with my CenturyLink > > > In order to use vtnet and bridging (both required for bhyve networking) > you need to load the load the virtio kernel module as well as the if_tap > and vmm modules (the first one provides the host side of the virtual NIC > and the second loads the hypervisor components) > > > Sent from Outlook Mobile > > ________________________________ > From: Robert Crowston > Sent: Tuesday, May 5, 2020 3:14:43 AM > To: Brandon helsley ; > freebsd-virtualization@freebsd.org > Subject: Re: Bhyve help > > What are your network interfaces called on your machine? You probably hav= e > 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 lo= ok for ones with > an ip address to figure it out. > > 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 > physical interface interface get the result no such file or directory the > command is: > > ifconfig bridge0 addm igb0 addm tap0 > > "In this example, the physical interface is igb0" > > > 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@freebsd.org" > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" > > > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > --=20 Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org