From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 30 21:22:15 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B256036A for ; Tue, 30 Dec 2014 21:22:15 +0000 (UTC) Received: from host203.r-bonomi.com (host203.r-bonomi.com [204.87.227.203]) by mx1.freebsd.org (Postfix) with ESMTP id 8A0F328DC for ; Tue, 30 Dec 2014 21:22:14 +0000 (UTC) Received: (from bonomi@localhost) by host203.r-bonomi.com (8.14.9/8.14.7) id sBULDhan082070; Tue, 30 Dec 2014 15:13:43 -0600 (CST) (envelope-from bonomi) Date: Tue, 30 Dec 2014 15:13:43 -0600 (CST) From: Robert Bonomi Message-Id: <201412302113.sBULDhan082070@host203.r-bonomi.com> To: freebsd-hackers@freebsd.org Subject: passing 'config' file data to a kernel loadable module ?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2014 21:22:15 -0000 I'm hacking on an existing screen-saver module, and would like to set options in the config file that are passed to the compiler when the module is built. I can't find a decent description of the gory details of HOW 'config' works. Chapter 2 of the SMM, "Building 4.4BSD Kernels with Config" has falsehoods -- to wit: the example on page 10, under the 'options' keyword, given as 'options -DFUNNY,-DHAHA' causes 'config' to abort with a fatal error. Apparently an 'option' must be defined 'somewhere else', before config recognizes it. I've got an 'ugly' method -- "makeoptions CONF_CLFAGS+=-D{{NAME}}" -- that works for compiling the '.o' that gets linked into the kernel executable, BUT that make variable is not passed to the (separate!!) compile stage for building a.ko module. Yes, the source-code is compiled _twice_, with the resulting .o file in two separate locations, and the options passed to the compiler are *NOT* identical in both instances -- they're 'close', but not 'exactly the same'. Is there a good reason why they're different? Is there an 'approved' way for getting a supplemental 'definition' from the kernel config file passed to the compile of a loadable module? Is there a 'less ugly' way than what I described above, to get such a definition passed to compilation of a module that will be linked into the kernel? Ideally, is there a single means/method that will accomplish both tasks? Wish-list: something that does _not_ require modifying other files in the 'magic data' that config uses? Peripherally related thereunto, is there a cookbook or other example of making a 'port' for a kernel module, and what all needs to be in it? From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 03:04:18 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3AF8E2C4 for ; Wed, 31 Dec 2014 03:04:18 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0EE1E124E for ; Wed, 31 Dec 2014 03:04:17 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 5C4C3208C9 for ; Tue, 30 Dec 2014 22:04:11 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute2.internal (MEProxy); Tue, 30 Dec 2014 22:04:11 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:subject :date; s=smtpout; bh=wKBkNTEWwPPQnhzYE8zku5hSC1U=; b=Pqx6C5Q7ky5 BzXfCxi8SAnuR1niObKXZV1FRPz1Fv3Hcc+ESNPKgpMmGFU4LZI8DkUdP4kd88+G F59sRBZJiiY9I6seldzkkJTTb6uik2oA5zXuFjtQGiG6+jzVzPnM1xubsy1R/uuK qP31esq9oLFcriQ9ZPO3jmD9diSgmB9c= Received: by web3.nyi.internal (Postfix, from userid 99) id 3629B119EA9; Tue, 30 Dec 2014 22:04:11 -0500 (EST) Message-Id: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> X-Sasl-Enc: Hpmmsw4G+janzxcKxHK/0uT7rZrzHDrLEAhMr81X+7Zq 1419995051 From: Mark Felder To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-a039ef87 Subject: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall Date: Tue, 30 Dec 2014 21:04:11 -0600 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 03:04:18 -0000 After finding today that some of my intermittent home network problems are likely due to OpenBSD being unable to keep time* on my PC Engines APU4 firewall I am attempting yet again to run FreeBSD in this role. Here are my pain points that made me go with OpenBSD for so long: 1) No IPSEC in GENERIC 2) if_stf not having 6rd support (paging hrs@) 3) pf issues: ipv6 checksums, fragments 4) pf syntax (ok, this is really an "I wish...") I noticed net/stf-6rd-kmod now has a patch for FreeBSD 10 so I grabbed the diff and built an IPSEC kernel with this patch applied. I'm now mostly up and running except for the fact that I have no idea how to configure stf for 6rd. There don't seem to be any docs/examples anywhere. Unfortunately the man page edits in the diff don't give me any details. I'd love to see a simple example because I'm completely lost right now. In conclusion: - Let's get IPSEC into GENERIC or make it accessible for users via pkg. It will need to receive the same treatment as GENERIC's freebsd-update patches. - Can we please get 6rd support in head? I understand these shims have lost a lot of interest/momentum but native IPv6 isn't coming soon for most people. - Glad to see pf patches flowing in: ipv6, checksum, vnet, etc. Thanks everyone! I will say I'm completely baffled by one thing though: the concept of having rtadvd in base, but no dhcpd in base. That doesn't make any sense to me. Shouldn't rtadvd be moved to ports? *For those curious, OpenBSD falls behind several seconds per minute and sometimes jumps hundreds behind. It's not a hardware issue as FreeBSD runs fine. Changing time counters in OpenBSD didn't work. This probably started around the time I upgraded to OpenBSD 5.6, but I'm not sure. From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 03:42:37 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 715ADABE; Wed, 31 Dec 2014 03:42:37 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 60E41181B; Wed, 31 Dec 2014 03:42:37 +0000 (UTC) Received: from [10.0.1.20] (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 1A9A2341F854; Tue, 30 Dec 2014 19:42:37 -0800 (PST) From: Alfred Perlstein Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: How to make a FreeBSD vm in virtualbox. Date: Tue, 30 Dec 2014 19:42:36 -0800 Message-Id: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> To: re@freebsd.org, hackers@freebsd.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) Cc: Ryan Kois , Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 03:42:37 -0000 Hello Release engineering team & hackers, Ryan (cc'd) did some work on the recent FreeBSD vms that were released. Ryan is working at Norse with us and using FreeBSD now. His background = is backend development in io.js, node.js and php on Linux. He's now trying to get io.js working on FreeBSD. In doing so he wanted to setup a VM, so he downloaded the vmdk and = created a blog post on what was needed to be done in order to get it = working under virtualbox. That blog is here:=20 = http://blog.kidicarus.cool/blog/2014/12/24/freebsd-guest-on-mac-osx-host-v= ia-virtualbox/ After he linked it to me, I decided that it would make sense if this was = scripted and would really make sense as part of the release process. I've written a script that will make a .ova that you can one-click = import into Virtualbox (and I think Fusion as well) here: https://gist.github.com/splbio/84bd4d2122782e99fc5c What is the best way to get this made into part of the release process = so that we can get .ovas shipped as well. Is there a starting point for integration with the release building = process? One final question, is there a possibility we could add some changes to = the image so that it auto-dhcp's an address? Most people who just = download the image won't know to "dhclient em0" or even what an "em0" = is. =20 Funny fact about "em0": everyone I know who's not a FreeBSD person calls = it "Emo" like the "emo kids" with the funny hairstyles. Here is an = image gallery of what I'm talking about: = https://www.google.com/search?q=3Demo&es_sm=3D91&source=3Dlnms&tbm=3Disch Anyhow, I was wondering what you guys think of adding some hook to the = release process to inject a rc.conf entry to make "ifconfig_em0=3D'DHCP'" = as part of the build? Or is there a better way? Suggestions on a way = forward for this? Alfred Perlstein=20 Sr. Director, Appliance & Kernel Engineering=20 Norse=20 cell: 415 312 3931=20= From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 04:25:08 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from hub.FreeBSD.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC0103FB; Wed, 31 Dec 2014 04:25:07 +0000 (UTC) Date: Wed, 31 Dec 2014 04:24:55 +0000 From: Glen Barber To: Alfred Perlstein Subject: Re: How to make a FreeBSD vm in virtualbox. Message-ID: <20141231042455.GB53230@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gj572EiMnwbLXET9" Content-Disposition: inline In-Reply-To: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 04:25:08 -0000 --gj572EiMnwbLXET9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2014 at 07:42:36PM -0800, Alfred Perlstein wrote: > After he linked it to me, I decided that it would make sense if > this was scripted and would really make sense as part of the release > process. >=20 We already provide VMDK images. There is nothing, that I can see, that is different from how I've been testing the various images. Creating a new VM and attaching the VMDK to the disk controller is the intended workflow. > I've written a script that will make a .ova that you can one-click > import into Virtualbox (and I think Fusion as well) here: >=20 > https://gist.github.com/splbio/84bd4d2122782e99fc5c >=20 Can you send the script as an attachment? > What is the best way to get this made into part of the release > process so that we can get .ovas shipped as well. >=20 I'm inclined to think this is an overkill solution, to be honest. > One final question, is there a possibility we could add some > changes to the image so that it auto-dhcp's an address? Most people > who just download the image won't know to "dhclient em0" or even > what an "em0" is. >=20 I think 'ifconfig_DEFAULT=3D"DHCP"' in rc.conf(5) is what you want. Glen --gj572EiMnwbLXET9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUo3qSAAoJEAMUWKVHj+KTZT4P/RWKLEW3/vKIpCamipdmFlsy vb2jVnL+ASIHci9ItZZAwq/DQr3Alo41OT+Znn/VJHRyeAOCLEMdLLTmLLpvy4m1 g25ApraF5vRkxpGn/YpbCiaY71mfvdwFdGqSntvZCXGrnhbgm4bvBS1THzYswwHU ooYLN1LpocjeRrEa4nBZ/cNnjEO2HMahA+jboHrVVzE+BVf650pnyWcVzwEbsymd oWlwymvJKyxBtZmWvqgA4+K60V68PGGWxSVg5sbMcK/fu4Tqk5St8H6nzrL+fxSU OPL01kzhjVzgHtJaFO+rbKaCsSKjKdUgm7gsy5gGfvVeESu9z/Dfd7HJihFVf+vk x8F0Mwg6aQrfusS8dAdRvoq23HCFXVSh9tWnFjPKcU+duf2VVyFf371DxV3pJ66a H4KMgMPzyKq+u371rPl2oSqSoo/aR+9xG5KE8s2HunQlN4NskR4WCyLdR/+OnMHr CE0hNHWfxwLkp8vi96OBwbQqh6KwPBy3tN5lgxhO4Q1bxSvtkSRFvH7Nz6kLis2r HEUvzFxsCTl80n6uKtkHl29hc6F9FQBPsAiWg5Fo6rUvAYfmI1kKQow3ASpf13wu 4+VE/z54OO2QfSBT+PeeclmPaTYH+ggzRrbx3C0xaHMwgqzq9IZ0K4qIUafvA+tv et08aXKnw+BmfrkffaKd =h50o -----END PGP SIGNATURE----- --gj572EiMnwbLXET9-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 06:04:39 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BCFCC562; Wed, 31 Dec 2014 06:04:39 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id A5E5664F0A; Wed, 31 Dec 2014 06:04:39 +0000 (UTC) Received: from [10.0.1.20] (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 5A8FD341F854; Tue, 30 Dec 2014 22:04:39 -0800 (PST) Subject: Re: How to make a FreeBSD vm in virtualbox. Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/mixed; boundary="Apple-Mail=_19201FB0-3C19-4126-99BC-0191B1F7AE9C" From: Alfred Perlstein In-Reply-To: <20141231042455.GB53230@hub.FreeBSD.org> Date: Tue, 30 Dec 2014 22:04:38 -0800 Message-Id: <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> To: Glen Barber X-Mailer: Apple Mail (2.1283) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 06:04:39 -0000 --Apple-Mail=_19201FB0-3C19-4126-99BC-0191B1F7AE9C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Dec 30, 2014, at 8:24 PM, Glen Barber wrote: > On Tue, Dec 30, 2014 at 07:42:36PM -0800, Alfred Perlstein wrote: >> After he linked it to me, I decided that it would make sense if >> this was scripted and would really make sense as part of the release >> process. >>=20 >=20 > We already provide VMDK images. There is nothing, that I can see, = that > is different from how I've been testing the various images. Creating > a new VM and attaching the VMDK to the disk controller is the intended > workflow. The difference is that with a vmdk you must get the exact combinations = of items correct or you will wind up with a FreeBSD instance that will = not boot. With the ova, you just run a single command "VBoxManage = FreeBSD.ova" and stuff "just works", or you can even just double click = on the downloaded file from within your OS X / Windows/ whatever host = and it "just works". >=20 >> I've written a script that will make a .ova that you can one-click >> import into Virtualbox (and I think Fusion as well) here: >>=20 >> https://gist.github.com/splbio/84bd4d2122782e99fc5c >>=20 >=20 > Can you send the script as an attachment? Uh sure. It's attached. For updates you can check here: = https://github.com/splbio/freebsd-vmtools/blob/master/vbox/freebsd-vbox.sh= or here via subversion: svn co https://github.com/splbio/freebsd-vmtools/trunk I moved it to its own repo now, for updates/pull requests.=20 >=20 >> What is the best way to get this made into part of the release >> process so that we can get .ovas shipped as well. >>=20 >=20 > I'm inclined to think this is an overkill solution, to be honest. Here is why I strongly disagree. Creating a proper .ova is fraught with small errors that easily turn = users away. The most simple thing, accidentally picking 32bit BSD, has bitten many a = newcomer and just makes things unpleasant. Please read through the blog post by Ryan on the EXACT config needed for = FreeBSD to work correctly: = http://blog.kidicarus.cool/blog/2014/12/24/freebsd-guest-on-mac-osx-host-v= ia-virtualbox/ It's tiring, long and easy to get wrong.=20 By reducing steps we make it easier for people to use FreeBSD in a = virtual environment. >=20 >> One final question, is there a possibility we could add some >> changes to the image so that it auto-dhcp's an address? Most people >> who just download the image won't know to "dhclient em0" or even >> what an "em0" is. >>=20 >=20 > I think 'ifconfig_DEFAULT=3D"DHCP"' in rc.conf(5) is what you want. Do we want this by default in all images? (I would vote yes). -Alfred --Apple-Mail=_19201FB0-3C19-4126-99BC-0191B1F7AE9C Content-Disposition: attachment; filename=freebsd-vbox.sh Content-Type: application/octet-stream; x-unix-mode=0755; name="freebsd-vbox.sh" Content-Transfer-Encoding: 7bit #!/bin/sh # Make freebsd vm # fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/10.1-RELEASE/amd64/Latest/FreeBSD-10.1-RELEASE-amd64.raw.xz VM="FreeBSD10" RAW_IMG="$1" set -e if VBoxManage list vms | sed -e 's/^"//' -e 's/".*//g' | grep "^${VM}\$" ; then echo "VM '$VM' already exists. delete? (y/N)" read resp if [ "$resp" = "y" -o "$resp" = "Y" ] ; then VBoxManage unregistervm "$VM" --delete fi fi if echo "$RAW_IMG" | grep -q '.vmdk' ; then # remove .vmdk -> .2.vmdk VMDK_IMG="${RAW_IMG%.vmdk}.2.vmdk" echo copying "$RAW_IMG" to "$VMDK_IMG" set -x cp "$RAW_IMG" "$VMDK_IMG" import_vmdk="false" else set -x BASE_IMG="${RAW_IMG%.raw}" VMDK_IMG="${BASE_IMG}.vmdk" import_vmdk="true" fi OSTYPE="FreeBSD_64" OVA_IMG="${VM}.ova" set -x rm -f "${OVA_IMG}" # storage controller STORAGE_CONTROLLER_NAME="IDE Controller" if $import_vmdk ; then rm -f "${VMDK_IMG}" VBoxManage convertfromraw "${RAW_IMG}" "${VMDK_IMG}" --format VMDK fi VBoxManage createvm --name "$VM" --ostype "${OSTYPE}" --register #VBoxManage storagectl "$VM" --name "SATA Controller" --add sata --controller IntelAHCI VBoxManage storagectl "$VM" --name "${STORAGE_CONTROLLER_NAME}" --add ide --controller PIIX4 VBoxManage storageattach "$VM" --storagectl "${STORAGE_CONTROLLER_NAME}" \ --port 0 --device 0 --type hdd --medium "${VMDK_IMG}" VBoxManage modifyvm "$VM" --ioapic on --boot1 disk --memory 768 --vram 12 # XXX: NAT instead? VBoxManage modifyvm "$VM" --nic1 nat VBoxManage modifyvm "$VM" --macaddress1 auto # seems to be most stable NIC under virtualbox, might want to try virtio later? VBoxManage modifyvm "$VM" --nictype1 82540EM # Turn off PAE VBoxManage modifyvm "$VM" --pae off # Usb is nice too. Makes it easier for user to later add pass-through. VBoxManage modifyvm "$VM" --usb on # sound is nice to have case `uname` in Darwin) AUDIO="coreaudio" ;; FreeBSD) AUDIO="oss" ;; *) AUDIO="null" ;; esac # Might want to disable this line if we get errors loading the VM # on hosts, problem is that there doesn't seem to be a way to just # say "use the default driver that plays audio" instead you can only # say "none" or "null" in a platform independent way. VBoxManage modifyvm "$VM" --audio "$AUDIO" VBoxManage modifyvm "$VM" --audiocontroller ac97 VBoxManage export "$VM" -o "${VM}.ova" # Clean up the generated vm? # VBoxManage unregistervm "$VM" --delete --Apple-Mail=_19201FB0-3C19-4126-99BC-0191B1F7AE9C-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 13:23:13 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D0E44445 for ; Wed, 31 Dec 2014 13:23:13 +0000 (UTC) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6A81678ED for ; Wed, 31 Dec 2014 13:23:13 +0000 (UTC) Received: from zeppelin.tachypleus.net ([32.210.30.11]) (authenticated bits=0) by c.mail.sonic.net (8.14.9/8.14.9) with ESMTP id sBVDN40X013555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 31 Dec 2014 05:23:05 -0800 Message-ID: <54A3F893.5010700@freebsd.org> Date: Wed, 31 Dec 2014 05:22:27 -0800 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> In-Reply-To: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVYvS47u+VJz2DJc5GJX2o7yRD3/XMydIKCs6jMWT6Vjcpav2J12b50QIvwFBM6V8baeOxQY7qrO8j9wLJVazhf7jWyRpL8MC1Y= X-Sonic-ID: C;siLeJvCQ5BGWzvCsS5uE/A== M;jDCRJ/CQ5BGWzvCsS5uE/A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 13:23:13 -0000 On 12/30/14 19:04, Mark Felder wrote: > After finding today that some of my intermittent home network problems > are likely due to OpenBSD being unable to keep time* on my PC Engines > APU4 firewall I am attempting yet again to run FreeBSD in this role. > > Here are my pain points that made me go with OpenBSD for so long: > > 1) No IPSEC in GENERIC > 2) if_stf not having 6rd support (paging hrs@) I'll second this. I'd note, however, that you can get 6RD working with gif(4) perfectly well so long as you don't care about reaching other customers on your local network segment. I've been using this for the last 6 months. -Nathan > 3) pf issues: ipv6 checksums, fragments > 4) pf syntax (ok, this is really an "I wish...") > > I noticed net/stf-6rd-kmod now has a patch for FreeBSD 10 so I grabbed > the diff and built an IPSEC kernel with this patch applied. I'm now > mostly up and running except for the fact that I have no idea how to > configure stf for 6rd. There don't seem to be any docs/examples > anywhere. Unfortunately the man page edits in the diff don't give me any > details. I'd love to see a simple example because I'm completely lost > right now. > > In conclusion: > - Let's get IPSEC into GENERIC or make it accessible for users via pkg. > It will need to receive the same treatment as GENERIC's freebsd-update > patches. > - Can we please get 6rd support in head? I understand these shims have > lost a lot of interest/momentum but native IPv6 isn't coming soon for > most people. > - Glad to see pf patches flowing in: ipv6, checksum, vnet, etc. Thanks > everyone! > > > I will say I'm completely baffled by one thing though: the concept of > having rtadvd in base, but no dhcpd in base. That doesn't make any sense > to me. Shouldn't rtadvd be moved to ports? > > > > *For those curious, OpenBSD falls behind several seconds per minute and > sometimes jumps hundreds behind. It's not a hardware issue as FreeBSD > runs fine. Changing time counters in OpenBSD didn't work. This probably > started around the time I upgraded to OpenBSD 5.6, but I'm not sure. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 14:03:32 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD3E1D69 for ; Wed, 31 Dec 2014 14:03:32 +0000 (UTC) Received: from mail-qc0-f172.google.com (mail-qc0-f172.google.com [209.85.216.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89C0C64E07 for ; Wed, 31 Dec 2014 14:03:32 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id m20so11681037qcx.31 for ; Wed, 31 Dec 2014 06:03:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=f0Ei6HmVsQzdH+hSDr0yMrIAqFJOHpoGwtsO5P61ISM=; b=kx2ZdOX9sZvAP2wdRx23+sxNatlCTBbxnJXYlqOJkLtSwieSpsrHuoKFBtZdERQiv8 dfEbc76b7zYlSGy5LC4q4renI3XmQnwjMVXEidDBGAEb65UBRQt+aCvQ7An3H97uT9eY mjFbjHG0JcvtXcCPEYz1+3XexQzYckpiI7SgSXWyKjmUQHIwh1DcUJqlNc85S/c1APiN 6vdsA03+B/B6+7SJEUi4+eJQxmnyttkXGqSQZxRoMTTNPpP0bgvvN3xZKvcIKvXyEynY LK1nB6EfhjQ2PU/cnFb6RLakmAewtSAMWehxXQtsR8xJuDCZIqbIzJTw5XAOW+2pQGbQ 59qA== X-Gm-Message-State: ALoCoQn9nQbVHt8TDUGEswC/LbvJxMl6qkyb3XfGWnjSDA/loGkWa74LDLZrgX41QCI1yBT/NKlI X-Received: by 10.229.93.132 with SMTP id v4mr109262896qcm.27.1420034611078; Wed, 31 Dec 2014 06:03:31 -0800 (PST) Received: from [192.168.2.20] (ool-182c6c57.dyn.optonline.net. [24.44.108.87]) by mx.google.com with ESMTPSA id k2sm24853019qay.24.2014.12.31.06.03.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 06:03:29 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall From: Mark Saad X-Mailer: iPhone Mail (12B411) In-Reply-To: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> Date: Wed, 31 Dec 2014 09:03:28 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> To: Mark Felder Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 14:03:33 -0000 > On Dec 30, 2014, at 10:04 PM, Mark Felder wrote: >=20 > After finding today that some of my intermittent home network problems > are likely due to OpenBSD being unable to keep time* on my PC Engines > APU4 firewall I am attempting yet again to run FreeBSD in this role. >=20 > Here are my pain points that made me go with OpenBSD for so long: >=20 > 1) No IPSEC in GENERIC > 2) if_stf not having 6rd support (paging hrs@) > 3) pf issues: ipv6 checksums, fragments > 4) pf syntax (ok, this is really an "I wish...") >=20 > I noticed net/stf-6rd-kmod now has a patch for FreeBSD 10 so I grabbed > the diff and built an IPSEC kernel with this patch applied. I'm now > mostly up and running except for the fact that I have no idea how to > configure stf for 6rd. There don't seem to be any docs/examples > anywhere. Unfortunately the man page edits in the diff don't give me any > details. I'd love to see a simple example because I'm completely lost > right now. >=20 > In conclusion:=20 > - Let's get IPSEC into GENERIC or make it accessible for users via pkg. > It will need to receive the same treatment as GENERIC's freebsd-update > patches. > - Can we please get 6rd support in head? I understand these shims have > lost a lot of interest/momentum but native IPv6 isn't coming soon for > most people. > - Glad to see pf patches flowing in: ipv6, checksum, vnet, etc. Thanks > everyone! >=20 >=20 > I will say I'm completely baffled by one thing though: the concept of > having rtadvd in base, but no dhcpd in base. That doesn't make any sense > to me. Shouldn't rtadvd be moved to ports? >=20 >=20 >=20 > *For those curious, OpenBSD falls behind several seconds per minute and > sometimes jumps hundreds behind. It's not a hardware issue as FreeBSD > runs fine. Changing time counters in OpenBSD didn't work. This probably > started around the time I upgraded to OpenBSD 5.6, but I'm not sure. Mark Were you running openntpd ? Also did you apply the most recent firmware fo= r the apu ?=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"= From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 14:08:02 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6200ED1 for ; Wed, 31 Dec 2014 14:08:02 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 856DA64E74 for ; Wed, 31 Dec 2014 14:08:02 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5618120A4A for ; Wed, 31 Dec 2014 09:08:01 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute3.internal (MEProxy); Wed, 31 Dec 2014 09:08:01 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to:cc :mime-version:content-transfer-encoding:content-type:subject :date:in-reply-to:references; s=smtpout; bh=Buijn0DotWQ9+KPJ++1F 7lPvn3M=; b=n/zSOz64LahJLLXuCqE8K51POXLfgfnWKpmLUNongiQDC+arpYGs zFEv8ETfsF4gGiVlkQ7xh5oLSJpjI37OFUGxOtm3b4mDaJSkDGuHrRWHa6/0UFUc kZ9+rSHfz4E1AnilITQ5Ypsg478oorTNUyWjY+YGiELZq6t0lvbYYvA= Received: by web3.nyi.internal (Postfix, from userid 99) id 1F3EF1009D8; Wed, 31 Dec 2014 09:08:01 -0500 (EST) Message-Id: <1420034881.5194.208296793.01828EA6@webmail.messagingengine.com> X-Sasl-Enc: xX6KVKQkovM0AWrSh1zHGWIhJn1s1wWtuQ0btvZD8oKb 1420034881 From: Mark Felder To: Mark Saad MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-8f373691 Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall Date: Wed, 31 Dec 2014 08:08:01 -0600 In-Reply-To: References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 14:08:02 -0000 On Wed, Dec 31, 2014, at 08:03, Mark Saad wrote: > > Mark > Were you running openntpd ? Yes. It didn't help much, but the logs were amusing -- tons of clock adjustments anywhere from a couple seconds to 90k seconds. I also tried ISC NTPD but that won't help at all. I discovered that due to their slew rate of 500ppm it can only handle clock drift of 43 seconds per day. > Also did you apply the most recent firmware > for the apu ? > No. I have the latest "stable" firmware. There are two betas since, but I have not tried them. From their site: Build 9/8/2014 (beta, reduced "spew level") Build 7/8/2014 (beta) Build 4/5/2014 (current production) <--- Mine Build 4/1/2014 (beta) From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 15:17:36 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from hub.FreeBSD.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 708027CA; Wed, 31 Dec 2014 15:17:35 +0000 (UTC) Date: Wed, 31 Dec 2014 15:17:23 +0000 From: Glen Barber To: Alfred Perlstein Subject: Re: How to make a FreeBSD vm in virtualbox. Message-ID: <20141231151723.GA75959@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 15:17:36 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >=20 > On Dec 30, 2014, at 8:24 PM, Glen Barber wrote: >=20 > > On Tue, Dec 30, 2014 at 07:42:36PM -0800, Alfred Perlstein wrote: > >> After he linked it to me, I decided that it would make sense if > >> this was scripted and would really make sense as part of the release > >> process. > >>=20 > >=20 > > We already provide VMDK images. There is nothing, that I can see, that > > is different from how I've been testing the various images. Creating > > a new VM and attaching the VMDK to the disk controller is the intended > > workflow. >=20 > The difference is that with a vmdk you must get the exact > combinations of items correct or you will wind up with a FreeBSD > instance that will not boot. With the ova, you just run a single > command "VBoxManage FreeBSD.ova" and stuff "just works", or you can > even just double click on the downloaded file from within your OS > X / Windows/ whatever host and it "just works". >=20 >=20 > >=20 > >> I've written a script that will make a .ova that you can one-click > >> import into Virtualbox (and I think Fusion as well) here: > >>=20 > >> https://gist.github.com/splbio/84bd4d2122782e99fc5c > >>=20 > >=20 > > Can you send the script as an attachment? >=20 > Uh sure. It's attached. >=20 Your script relies on VirtualBox being installed on the build machine, which I do not like. This is one of the major reasons I'm happy Marcel added VMDK support to mkimg(1) - all the components to create the formatted disk image exist in the base system. > >> What is the best way to get this made into part of the release > >> process so that we can get .ovas shipped as well. > >>=20 > >=20 > > I'm inclined to think this is an overkill solution, to be honest. >=20 > Here is why I strongly disagree. >=20 > Creating a proper .ova is fraught with small errors that easily > turn users away. >=20 Such as? > The most simple thing, accidentally picking 32bit BSD, has bitten > many a newcomer and just makes things unpleasant. >=20 Isn't the default FreeBSD version in VirtualBox still the 32-bit version? > Please read through the blog post by Ryan on the EXACT config > needed for FreeBSD to work correctly: >=20 I did. > It's tiring, long and easy to get wrong.=20 >=20 > By reducing steps we make it easier for people to use FreeBSD in > a virtual environment. >=20 What we need, then, is a utility to create the ova.xml file from the specified disk image. I strongly oppose depending on building VirtualBox (which has implications of its own) for producing VM images, especially when the disk image can be created using base utilities alone. Given that, relying on a third-party utility is a step backwards. > >=20 > >> One final question, is there a possibility we could add some > >> changes to the image so that it auto-dhcp's an address? Most people > >> who just download the image won't know to "dhclient em0" or even > >> what an "em0" is. > >>=20 > >=20 > > I think 'ifconfig_DEFAULT=3D"DHCP"' in rc.conf(5) is what you want. >=20 > Do we want this by default in all images? (I would vote yes). >=20 I'd actually argue 'no.' As a sysadmin, I don't want any system doing anything I don't expect it to do, virtual machine or not. Glen --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUpBODAAoJEAMUWKVHj+KTL1cP/00CN/uAb9tIMiw/JsAxXbJk GPxrI9h4wGTNy6ADCv/GxyV/160LguWhXdss+6MZQKwDQfsKc+Y6hbBf5iPBF78q yX7uDYqMu46ULQu1sXbzsUzfpODsZBHcaqxsWjQemAzqzZCNGAiMOj21lL1IARHO VcxnPfb5PWMbLqi+zY2dPn07OcRolHK23B2kZ3uXCVUZR39acZhA1+Y8rOJydedk 3ngps6rjX6PFeR6W+C9Rid3nC2YI8JwfoKw4+rPrMw9otZrZFfuR79SWEw/tgi22 sxuVqyaIhY/HJqMLEL+94v3UAbw5Yy+dz4NashdiV6ZhaTmM79SF9FHuDd3ccCst EcRAU+JQ0xYp9S6UK7EKY9/GIjuaDiJgozNWo0kgesoNAC8+MoTl5E+sVGPKEvrN JQLKeX06JkwtMm0q9f8Ozm/8n0X3IhzCmig5gclfGZOGNhCNB/m5CM40yq150PBO Qp7WSM0mmH/eFigZl2GTv60NTw3dCGTt1J7bJW1qjW4S89pSYIQ01fHYjUoCRmQh qZyYBrwqtqejB3qS1KeR0HdY+ACQicbMeR/YFO1uUCX4ysciWiKhRefcTE+kZVGt sdPBRZlZBaE38yQ7z+WnEXXys7BO+ZRKkUwnOZt8Oe+tvcjZiqMmqVu1zhYKEhA0 JXx3VydoaQf9FPlYVXRh =eQCt -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 15:48:04 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 818F3CFC; Wed, 31 Dec 2014 15:48:04 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 301962F35; Wed, 31 Dec 2014 15:48:04 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id sBVFm1QO041127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 31 Dec 2014 08:48:01 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id sBVFm1xf041124; Wed, 31 Dec 2014 08:48:01 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 31 Dec 2014 08:48:01 -0700 (MST) From: Warren Block To: Glen Barber Subject: Re: How to make a FreeBSD vm in virtualbox. In-Reply-To: <20141231151723.GA75959@hub.FreeBSD.org> Message-ID: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 31 Dec 2014 08:48:01 -0700 (MST) Cc: hackers@freebsd.org, Ryan Kois , Alfred Perlstein , re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 15:48:04 -0000 On Wed, 31 Dec 2014, Glen Barber wrote: > On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >>> >>> I think 'ifconfig_DEFAULT="DHCP"' in rc.conf(5) is what you want. >> >> Do we want this by default in all images? (I would vote yes). >> > > I'd actually argue 'no.' As a sysadmin, I don't want any system doing > anything I don't expect it to do, virtual machine or not. It can have security implications. And I've never tested what happens when there is more than one interface. First one wins, probably. How about adding it to rc.conf, but commented? From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 16:15:42 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from hub.FreeBSD.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B2DFB7C; Wed, 31 Dec 2014 16:15:41 +0000 (UTC) Date: Wed, 31 Dec 2014 16:15:29 +0000 From: Glen Barber To: Warren Block Subject: Re: How to make a FreeBSD vm in virtualbox. Message-ID: <20141231161529.GB75959@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="St7VIuEGZ6dlpu13" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event User-Agent: Mutt/1.5.23 (2014-03-12) Cc: hackers@freebsd.org, Ryan Kois , Alfred Perlstein , re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 16:15:42 -0000 --St7VIuEGZ6dlpu13 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2014 at 08:48:01AM -0700, Warren Block wrote: > On Wed, 31 Dec 2014, Glen Barber wrote: > >On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: > >>> > >>>I think 'ifconfig_DEFAULT=3D"DHCP"' in rc.conf(5) is what you want. > >> > >>Do we want this by default in all images? (I would vote yes). > >> > > > >I'd actually argue 'no.' As a sysadmin, I don't want any system doing > >anything I don't expect it to do, virtual machine or not. >=20 > It can have security implications. And I've never tested what happens wh= en > there is more than one interface. First one wins, probably. >=20 > How about adding it to rc.conf, but commented? >=20 I think this would be the least objectionable solution, with a note in motd mentioning how to enable networking. Glen --St7VIuEGZ6dlpu13 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUpCEhAAoJEAMUWKVHj+KTf7AP/25OHl0n5H3I642x9iOj3oF+ AZnW7GaIql7TLIgVSU3s/SXyQGQZv9BuO/bGvA95+pdohKZ6t4fDTZliIVkFovip 53gM4WuZy85RceFEdirs1UYfXPFYrXMG0wqB9skwX4env+PCcp3Vf3fS+PPozX15 0L2ziDTgbXnYqPahd1LoNE0EiW+zLfdpVpcuuyxIfSaCjsI/E3LjyumLihy4thkC nkHBOydm+P4Kwh90tR7IRm9u3BfRYvFkxRkKtr/mfZEezTuYm1PgwUhxMo8vVyrz bXhrUMiPQVG8YOz/zriHkSKjxykquOmwKBo6sKSBYCn7RRGZQ8HwqVfcHweeww8k 5k4qo0OaKo5CHp4CIKqMWah9NLAN1gfnKcoffwFIqIez2Jo/FZ//0ulWN12dSiZm wZVitHQ5g6LJKmOujq5dqVFfYHvWpWQ15t3ITH6PgEZwHhJFo9192q1mtzV29GYU Vq2zZqQ832TKqK4JiQ0GFaOIvj0N48maNKkCggjX+9BIx+VxPpmkIyJOSCtSfssj 9JS3aa0TxQs8GtGLIFfZiJ481vWvFsgg6mRmU2OB4wdUHVHlBm6I9jsj9KbWSFSg JSasEoYqo9bZ1be62mvpgEmtnf2r7hP+QHqpKvgrojVgtBegbWo+3Sehmrwk8qb/ IZIFr5njIBlJ6aC25ZZM =7DlM -----END PGP SIGNATURE----- --St7VIuEGZ6dlpu13-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 17:48:22 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D744968 for ; Wed, 31 Dec 2014 17:48:22 +0000 (UTC) Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CBBFC253D for ; Wed, 31 Dec 2014 17:48:21 +0000 (UTC) Received: by mail-qg0-f49.google.com with SMTP id a108so11704628qge.36 for ; Wed, 31 Dec 2014 09:48:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=BJO7rOSPoOWNW5FswAqCIjFz5NMG1QgjMtrD52GbYI8=; b=K5GBM7aNN9E9piQvAhZIDtAWNfvlucDBz2M2adJayBJSlRctisWXDGc9Mv7katvLxB p/Tnyf4ZG790W56+Fl3+81eKTGwt41o/P3WGdol/9NB09KKDZcnupBBHhYshs3csDTe8 V4kMsRVJjtmc1d1ux4cRnycf6zZtVJhmhSGEKY37iX8gPvfZBHxJDnR3WiW/BNKv97hK Zsyz1RQElYEo22Bw4nrWAZFTBQkTf2hW4lbZkLmN9Kk+2mlLMRJxB9HO4LMamToDDL7A Zp5x3pQk0VRgr39aE+zT3HbLCcDSnwQRJen2dZUON8CsAqtHKg36HhwAhLZyiIJV0G3u oGrQ== X-Gm-Message-State: ALoCoQkLcyQm8rjY8DgCO8XgMNh/fz+kOb25XihI3rEuc3qWJvDSv/iLKcAqxTJlNyRqdDQcBAtV MIME-Version: 1.0 X-Received: by 10.224.79.212 with SMTP id q20mr111841177qak.4.1420048100583; Wed, 31 Dec 2014 09:48:20 -0800 (PST) Received: by 10.140.88.103 with HTTP; Wed, 31 Dec 2014 09:48:20 -0800 (PST) In-Reply-To: <20141231151723.GA75959@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> Date: Wed, 31 Dec 2014 10:48:20 -0700 Message-ID: Subject: Re: How to make a FreeBSD vm in virtualbox. From: Will Andrews To: Glen Barber Content-Type: text/plain; charset=UTF-8 Cc: hackers@freebsd.org, Ryan Kois , Alfred Perlstein , re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 17:48:22 -0000 On Wed, Dec 31, 2014 at 8:17 AM, Glen Barber wrote: >> The difference is that with a vmdk you must get the exact >> combinations of items correct or you will wind up with a FreeBSD >> instance that will not boot. With the ova, you just run a single >> command "VBoxManage FreeBSD.ova" and stuff "just works", or you can >> even just double click on the downloaded file from within your OS >> X / Windows/ whatever host and it "just works". What about shipping Vagrant boxes instead? I've found those easy to build automation on top of. > Your script relies on VirtualBox being installed on the build machine, > which I do not like. This is one of the major reasons I'm happy Marcel > added VMDK support to mkimg(1) - all the components to create the > formatted disk image exist in the base system. [...] > I strongly oppose depending on building VirtualBox (which has > implications of its own) for producing VM images, especially when the > disk image can be created using base utilities alone. Given that, > relying on a third-party utility is a step backwards. Requiring that all tools used in the release process ship with the base system means FreeBSD will never offer any first-party images for use with third party tools, obstructing community development around them. That would be a shame. --Will. From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 17:57:11 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from hub.FreeBSD.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E8FBB27; Wed, 31 Dec 2014 17:57:10 +0000 (UTC) Date: Wed, 31 Dec 2014 17:56:58 +0000 From: Glen Barber To: Will Andrews Subject: Re: How to make a FreeBSD vm in virtualbox. Message-ID: <20141231175658.GD75959@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pQhZXvAqiZgbeUkD" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event User-Agent: Mutt/1.5.23 (2014-03-12) Cc: hackers@freebsd.org, Ryan Kois , Alfred Perlstein , re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 17:57:11 -0000 --pQhZXvAqiZgbeUkD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2014 at 10:48:20AM -0700, Will Andrews wrote: > On Wed, Dec 31, 2014 at 8:17 AM, Glen Barber wrote: > >> The difference is that with a vmdk you must get the exact > >> combinations of items correct or you will wind up with a FreeBSD > >> instance that will not boot. With the ova, you just run a single > >> command "VBoxManage FreeBSD.ova" and stuff "just works", or you can > >> even just double click on the downloaded file from within your OS > >> X / Windows/ whatever host and it "just works". >=20 > What about shipping Vagrant boxes instead? I've found those easy to > build automation on top of. >=20 I have not had luck with creating these. > > Your script relies on VirtualBox being installed on the build machine, > > which I do not like. This is one of the major reasons I'm happy Marcel > > added VMDK support to mkimg(1) - all the components to create the > > formatted disk image exist in the base system. > [...] > > I strongly oppose depending on building VirtualBox (which has > > implications of its own) for producing VM images, especially when the > > disk image can be created using base utilities alone. Given that, > > relying on a third-party utility is a step backwards. >=20 > Requiring that all tools used in the release process ship with the > base system means FreeBSD will never offer any first-party images for > use with third party tools, obstructing community development around > them. That would be a shame. >=20 My objection isn't necessarily that the tools are not in the base system, but something with such a large dependency footprint like VirtualBox is a non-ideal solution, when its alternative, mkimg(1) in this case, requires nothing extra. Prior to mkimg(1), qemu-img was used. And qemu has a significantly lower dependency footprint. Glen --pQhZXvAqiZgbeUkD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUpDjqAAoJEAMUWKVHj+KTSd0P/174RuAIBtH1vIdTyVNFzJ90 u1tbilYVOGqH7J5hwfy86GL5jFfIDZFtWms8OUkET2F/Yo+lfobeITRVCScw+6YU 66nTcIbXTzeO6z+9e/Z28NvvOLWJ1SY/xJiSDPJtjJnzvK3ybIqmU73vfM0dgu+/ +bXNbJaaDSRMQtG8tC+IntT1pTA0rwY9c9FKNnfRLSzZCm8A7C0rnVj1RkuPKDUO 0h3f+fw8hoUDajdXINWr4sHZssa24OOjVorelE3nPwXmIs0z8rk4Ks4aC1/Oaqry I62RseVHHhSrnL/lNOVELoYuMifxgE96VNCIIwH5aZeXa6ksJ2xz1lvToea4cNCU qNOSRy7bbcKSkQ7CV2VsETCc5sya8Ku6gBJSnM0KDsNvMuJ7bYJl4oUjMeVuBMom CKTduuj77uTriUWuQJB2Or3WimwZftar8dpOS5+6cSgJnAxInS8KAfaosp/PuiOO KwsyjwQA6GU+TooKnify/K7h6UW6UHrVswroY1emR0sJ8ndmFOaybeJxz2bGRP74 0XnkgRYKH1XjoskoUyzeI2/rgsq7WzG7ig+GapyufwnXLTpdCW/mYAvGrmWKvN67 nLWc0W66PbFaG0u1yd0gPTs3GLrf3bLkQid05l9vfk7bVsCFleMTCs11LS1fVM/W OwOoR/FytBxASJhLhnyw =u3M7 -----END PGP SIGNATURE----- --pQhZXvAqiZgbeUkD-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:06:45 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 37629D0C; Wed, 31 Dec 2014 18:06:45 +0000 (UTC) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C79D92805; Wed, 31 Dec 2014 18:06:44 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id k11so2689850wes.34; Wed, 31 Dec 2014 10:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=eiGu2sadveR795mkSTCseiC9ZR8fDjVvZkBULmzMYNE=; b=DzTldZm6NCTHKd4IpMHTRaVZXeoV4rF6QUN3bkrgY8OZ9v/zbDhOmOjcyAIG2Wvsa9 uTxIzDseFe8R+bJSAf0bCa5erivRXfc4PgUmGqxlQLhSwr4xPD7b6JaXOpp4fk0TYFLO gG1SbrWT8Qp5bkFU35mim6Gspsd3xq7+ddlkv0lJP9GeGskMmwzoaSrwJxK+xx2nO7BC mVIcxbFndjEp2sZPkaq6ywTukSuBOWQyWgzn3N8gAb2Xd/KQdLzCn2QQMGLYk4pxIa2A cRNN/iXRbgo8p/r3UAfb1M9rMH1ztPKpA2UdaCHchZOGSWqVoBLqs8jPxk+rYdtRH26X gZvw== X-Received: by 10.180.39.204 with SMTP id r12mr73675960wik.11.1420049203067; Wed, 31 Dec 2014 10:06:43 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id h13sm47909846wiw.4.2014.12.31.10.06.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Dec 2014 10:06:41 -0800 (PST) Sender: Baptiste Daroussin Date: Wed, 31 Dec 2014 19:06:39 +0100 From: Baptiste Daroussin To: Glen Barber Subject: Re: How to make a FreeBSD vm in virtualbox. Message-ID: <20141231180639.GE43180@ivaldir.etoilebsd.net> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+SfteS7bOf3dGlBC" Content-Disposition: inline In-Reply-To: <20141231151723.GA75959@hub.FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: hackers@freebsd.org, Ryan Kois , Alfred Perlstein , re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:06:45 -0000 --+SfteS7bOf3dGlBC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2014 at 03:17:23PM +0000, Glen Barber wrote: > On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: > >=20 > > On Dec 30, 2014, at 8:24 PM, Glen Barber wrote: > >=20 > > > On Tue, Dec 30, 2014 at 07:42:36PM -0800, Alfred Perlstein wrote: > > >> After he linked it to me, I decided that it would make sense if > > >> this was scripted and would really make sense as part of the release > > >> process. > > >>=20 > > >=20 > > > We already provide VMDK images. There is nothing, that I can see, th= at > > > is different from how I've been testing the various images. Creating > > > a new VM and attaching the VMDK to the disk controller is the intended > > > workflow. > >=20 > > The difference is that with a vmdk you must get the exact > > combinations of items correct or you will wind up with a FreeBSD > > instance that will not boot. With the ova, you just run a single > > command "VBoxManage FreeBSD.ova" and stuff "just works", or you can > > even just double click on the downloaded file from within your OS > > X / Windows/ whatever host and it "just works". > >=20 > >=20 > > >=20 > > >> I've written a script that will make a .ova that you can one-click > > >> import into Virtualbox (and I think Fusion as well) here: > > >>=20 > > >> https://gist.github.com/splbio/84bd4d2122782e99fc5c > > >>=20 > > >=20 > > > Can you send the script as an attachment? > >=20 > > Uh sure. It's attached. > >=20 >=20 > Your script relies on VirtualBox being installed on the build machine, > which I do not like. This is one of the major reasons I'm happy Marcel > added VMDK support to mkimg(1) - all the components to create the > formatted disk image exist in the base system. >=20 Long ago I had created the quick and really dirty: https://people.freebsd.org/~bapt/vmdkimage-srcs/ This created ova files ready to be used in virtualbox (I had problem with v= mware I don't remember why) basically an ova file is a tar file in a given order with a template (FreeBSD.ovf) and a manifest with checksums) This is really easy to produce and I agree it would be nice if we could pro= duce one. The matter for having something that worked both in vbox and vmware was pla= ying with the disk controler. What I did back in the time was generating an ova from vbox extracting the = =2Eovf reducing to the minimum required the final ovf and ask people to import in = in vmware (I do not have access to any vmware) Now that we have mkimg that should be rather easy to create an ova generato= r at least for virtualbox (vmware compatible might be more tricky) The interesting part is that the ova format is normalized and used by lots = of the virtualisation tools out there Best regards, Bapt --+SfteS7bOf3dGlBC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlSkOy0ACgkQ8kTtMUmk6Eyv3QCeOvcWrKW+YbIrctzX2s+Y2oRF ll8AoMJ2N8YGDMOfvV3fqqu4cftsW4B/ =4NyT -----END PGP SIGNATURE----- --+SfteS7bOf3dGlBC-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:12:45 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A62DF5B; Wed, 31 Dec 2014 18:12:45 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E1A3328D; Wed, 31 Dec 2014 18:12:17 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id k14so4562884wgh.16; Wed, 31 Dec 2014 10:12:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=KkiuLST07T+OexEmzSAZcHQz9EGhWSeiCpi1KMTumXw=; b=xaQ6826nsQJtovM5RSRH4p/w5XFVUMo5d1i995UfJTLXK1OapR8c16VCKeyjZW94f7 epmxKmY4CbZpC9mq/hm2LfN8cCUT7/XdclOC0aM+JDbCG+oVN6Hy2DyqcCpRdDsJiXCE ZcVjqvZ0Yfw1k2nGdXIortRLMC92Rcootg6RM5bSTfsYBOU4jA3XE7cGYccG17tAGXfs MVPUgkk4G/R3LFgAolNzIZL7ww/GFburDkgzSRkJLrtXWiquwCgMyVWMJ9itg/Ws7Z70 MBnreouuZ1wVZLlJ4qCyllG8ACEPj5OtgCsurTN2GbUeXtOAjbj/3FE7fdHRNnLYyX5c d7AA== MIME-Version: 1.0 X-Received: by 10.194.5.37 with SMTP id p5mr10540951wjp.20.1420049535823; Wed, 31 Dec 2014 10:12:15 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.195 with HTTP; Wed, 31 Dec 2014 10:12:15 -0800 (PST) In-Reply-To: <20141231175658.GD75959@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231175658.GD75959@hub.FreeBSD.org> Date: Wed, 31 Dec 2014 10:12:15 -0800 X-Google-Sender-Auth: G_e5bzH_N0vJ6AdaibKHnC_JLek Message-ID: Subject: Re: How to make a FreeBSD vm in virtualbox. From: Adrian Chadd To: Glen Barber Content-Type: text/plain; charset=UTF-8 Cc: Ryan Kois , FreeBSD Release Engineering Team , Alfred Perlstein , Claudia Yadathi , "freebsd-hackers@freebsd.org" , Will Andrews X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:12:45 -0000 I'm confused by this discussion. The basic image generation doesn't need to use any third-party tools. We can always have a transformation step /after/ those images are generated that uses third party tools to generate other images. Much like Alfred's shell script. I know it sucks, but unless someone wants to write BSD versions of all of those configuration pieces, we're going to be stuck using external tools to do things. And those things will get eyeballs. -adrian From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:15:50 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E2C7E5 for ; Wed, 31 Dec 2014 18:15:50 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 0C8943816 for ; Wed, 31 Dec 2014 18:15:49 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 6CB1B8A371 for ; Wed, 31 Dec 2014 18:15:43 +0000 (UTC) Message-ID: <54A43D56.4030306@freebsd.org> Date: Wed, 31 Dec 2014 13:15:50 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231180639.GE43180@ivaldir.etoilebsd.net> In-Reply-To: <20141231180639.GE43180@ivaldir.etoilebsd.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qoSnanvcoASsirU71pedhm9tuV64PLFJf" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:15:50 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qoSnanvcoASsirU71pedhm9tuV64PLFJf Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2014-12-31 13:06, Baptiste Daroussin wrote: > On Wed, Dec 31, 2014 at 03:17:23PM +0000, Glen Barber wrote: >> On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >>> >>> On Dec 30, 2014, at 8:24 PM, Glen Barber wrote: >>> >>>> On Tue, Dec 30, 2014 at 07:42:36PM -0800, Alfred Perlstein wrote: >>>>> After he linked it to me, I decided that it would make sense if >>>>> this was scripted and would really make sense as part of the releas= e >>>>> process. >>>>> >>>> >>>> We already provide VMDK images. There is nothing, that I can see, t= hat >>>> is different from how I've been testing the various images. Creatin= g >>>> a new VM and attaching the VMDK to the disk controller is the intend= ed >>>> workflow. >>> >>> The difference is that with a vmdk you must get the exact >>> combinations of items correct or you will wind up with a FreeBSD >>> instance that will not boot. With the ova, you just run a single >>> command "VBoxManage FreeBSD.ova" and stuff "just works", or you can >>> even just double click on the downloaded file from within your OS >>> X / Windows/ whatever host and it "just works". >>> >>> >>>> >>>>> I've written a script that will make a .ova that you can one-click >>>>> import into Virtualbox (and I think Fusion as well) here: >>>>> >>>>> https://gist.github.com/splbio/84bd4d2122782e99fc5c >>>>> >>>> >>>> Can you send the script as an attachment? >>> >>> Uh sure. It's attached. >>> >> >> Your script relies on VirtualBox being installed on the build machine,= >> which I do not like. This is one of the major reasons I'm happy Marce= l >> added VMDK support to mkimg(1) - all the components to create the >> formatted disk image exist in the base system. >> >=20 > Long ago I had created the quick and really dirty: > https://people.freebsd.org/~bapt/vmdkimage-srcs/ >=20 > This created ova files ready to be used in virtualbox (I had problem wi= th vmware > I don't remember why) >=20 > basically an ova file is a tar file in a given order with a template > (FreeBSD.ovf) and a manifest with checksums) >=20 > This is really easy to produce and I agree it would be nice if we could= produce > one. >=20 > The matter for having something that worked both in vbox and vmware was= playing > with the disk controler. >=20 > What I did back in the time was generating an ova from vbox extracting = the .ovf > reducing to the minimum required the final ovf and ask people to import= in in > vmware (I do not have access to any vmware) >=20 > Now that we have mkimg that should be rather easy to create an ova gene= rator at > least for virtualbox (vmware compatible might be more tricky) >=20 > The interesting part is that the ova format is normalized and used by l= ots of > the virtualisation tools out there >=20 > Best regards, > Bapt >=20 I was going to say, I thought a .ova file was just a .tar of the .vmdk and a .xml config file It doesn't seem like virtualbox would be required if the .xml file was generated and then checked into the tree --=20 Allan Jude --qoSnanvcoASsirU71pedhm9tuV64PLFJf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJUpD1ZAAoJEJrBFpNRJZKf1f4QAMSAsmS0FJE8fEzVvcNelMS0 mW6MJMPBj9L6ZCjMjNXyMipPrQrJUOW+jfMPwKAnVWAwyuqJvZxyYVUEz4UjZtGx A3SjZuh1RolszvQ6gxUvVG72R8V2edBzEiQGRYK2UhDJjwK/WmV2SxS+s4s0siIC p4bdZbNNadw/+mH56abO+Tg8tK8QacU5WZGKQkjRVJE8bA/98cmy59olP00vACEu 8Of/f5nfTXMrwtAMcrRlKwHDxLO7EbE3Qd5Bpzcjulrs3aKUWgQN1/eooquSELWG /OiawqYtY9xFi0Ao7t2J/JHM6xyhi/ffZprj8eUi5RZL9kzzgoMJwIN0GXz2CJ2O pSDzsr8jvx+4qVEPgzFrEIqjW5p1aoYZlIi9GFg2mFFM6SF+K0JShbPI9ddSsmLY xF4NKCBZH0cUTv6sMQ//MadpHhgtNyMsiIwuLcqFeZGqyjOD7JoCvlsb7eW+vU4I ZFIbXzE0ORvDS/V8dJBULZbkEdjXWzrn/KoBA4kG9iE2tfjjZtVj1/wDepHTHLlM YvoMSP/7KMn/lj9b3JUiM7Te8sq4Uxz9RIW+wfyYmNYcUtrv+7fVDNu7wKEAzIw0 ljqnMVR04LRlCzFEPOg4Rb4+Wjra3v9htrEzjyXtXjA+2aX9z9aVZzu4ubEhizSA oy5JJrbvk55C8hWxfk5V =W2QX -----END PGP SIGNATURE----- --qoSnanvcoASsirU71pedhm9tuV64PLFJf-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:20:17 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 834CA2DE; Wed, 31 Dec 2014 18:20:17 +0000 (UTC) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F4A2386B; Wed, 31 Dec 2014 18:20:17 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id q58so2730772wes.12; Wed, 31 Dec 2014 10:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=bBoJwZUeNlIRyj2d2yBN5xUQ4GXvie5dm9xygbzzCmc=; b=RULG21tTh5mTlM5RtghLEIuykrUfVOiYJQ9o968HUZM9KHqH36+EjL9pQxJieXp2D7 x/z2CYVanRfOqT/9XO6MgndgkgwiHZU3D9zWFQRtHLMozEfn9qrXoBBypbw5LvV2a7OO 0Y8BuS0JtbKNTw6EcS/JoFrDjiLlB9lvvDUo9mlxd7Qj94yXS4R6keTHFL1cL0TzZJRk M+TcfRxB3sXN45MCCJr4x7Sfo1tTWXUarnPSqPblQtCbHdj3ttKEJW8TG+LD/1TCLFFb W1aZtkNKLmngksQfpIvD2JeglEOpz4UNLOtpGHOaGDLzLiDDr7nApvUP/P6NZFK1hj61 0nhw== MIME-Version: 1.0 X-Received: by 10.180.14.136 with SMTP id p8mr80339583wic.20.1420050015389; Wed, 31 Dec 2014 10:20:15 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.195 with HTTP; Wed, 31 Dec 2014 10:20:15 -0800 (PST) In-Reply-To: <54A43D56.4030306@freebsd.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231180639.GE43180@ivaldir.etoilebsd.net> <54A43D56.4030306@freebsd.org> Date: Wed, 31 Dec 2014 10:20:15 -0800 X-Google-Sender-Auth: jCRBlf2IC3ueqfX3ZUEpN_Vy998 Message-ID: Subject: Re: How to make a FreeBSD vm in virtualbox. From: Adrian Chadd To: Allan Jude Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:20:17 -0000 On 31 December 2014 at 10:15, Allan Jude wrote: > On 2014-12-31 13:06, Baptiste Daroussin wrote: >> On Wed, Dec 31, 2014 at 03:17:23PM +0000, Glen Barber wrote: >>> On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >>>> >>>> On Dec 30, 2014, at 8:24 PM, Glen Barber wrote: >>>> >>>>> On Tue, Dec 30, 2014 at 07:42:36PM -0800, Alfred Perlstein wrote: >>>>>> After he linked it to me, I decided that it would make sense if >>>>>> this was scripted and would really make sense as part of the release >>>>>> process. >>>>>> >>>>> >>>>> We already provide VMDK images. There is nothing, that I can see, that >>>>> is different from how I've been testing the various images. Creating >>>>> a new VM and attaching the VMDK to the disk controller is the intended >>>>> workflow. >>>> >>>> The difference is that with a vmdk you must get the exact >>>> combinations of items correct or you will wind up with a FreeBSD >>>> instance that will not boot. With the ova, you just run a single >>>> command "VBoxManage FreeBSD.ova" and stuff "just works", or you can >>>> even just double click on the downloaded file from within your OS >>>> X / Windows/ whatever host and it "just works". >>>> >>>> >>>>> >>>>>> I've written a script that will make a .ova that you can one-click >>>>>> import into Virtualbox (and I think Fusion as well) here: >>>>>> >>>>>> https://gist.github.com/splbio/84bd4d2122782e99fc5c >>>>>> >>>>> >>>>> Can you send the script as an attachment? >>>> >>>> Uh sure. It's attached. >>>> >>> >>> Your script relies on VirtualBox being installed on the build machine, >>> which I do not like. This is one of the major reasons I'm happy Marcel >>> added VMDK support to mkimg(1) - all the components to create the >>> formatted disk image exist in the base system. >>> >> >> Long ago I had created the quick and really dirty: >> https://people.freebsd.org/~bapt/vmdkimage-srcs/ >> >> This created ova files ready to be used in virtualbox (I had problem with vmware >> I don't remember why) >> >> basically an ova file is a tar file in a given order with a template >> (FreeBSD.ovf) and a manifest with checksums) >> >> This is really easy to produce and I agree it would be nice if we could produce >> one. >> >> The matter for having something that worked both in vbox and vmware was playing >> with the disk controler. >> >> What I did back in the time was generating an ova from vbox extracting the .ovf >> reducing to the minimum required the final ovf and ask people to import in in >> vmware (I do not have access to any vmware) >> >> Now that we have mkimg that should be rather easy to create an ova generator at >> least for virtualbox (vmware compatible might be more tricky) >> >> The interesting part is that the ova format is normalized and used by lots of >> the virtualisation tools out there >> >> Best regards, >> Bapt >> > > I was going to say, I thought a .ova file was just a .tar of the .vmdk > and a .xml config file > > It doesn't seem like virtualbox would be required if the .xml file was > generated and then checked into the tree Course not, but then you have two problems - .xml and "no tool to generate / modify the config programatically." -adrian From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:21:50 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from hub.FreeBSD.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E1013CE; Wed, 31 Dec 2014 18:21:48 +0000 (UTC) Date: Wed, 31 Dec 2014 18:21:37 +0000 From: Glen Barber To: Baptiste Daroussin Subject: Re: How to make a FreeBSD vm in virtualbox. Message-ID: <20141231182137.GG75959@hub.FreeBSD.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231180639.GE43180@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8bBEDOJVaa9YlTAt" Content-Disposition: inline In-Reply-To: <20141231180639.GE43180@ivaldir.etoilebsd.net> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event User-Agent: Mutt/1.5.23 (2014-03-12) Cc: hackers@freebsd.org, Ryan Kois , Alfred Perlstein , re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:21:50 -0000 --8bBEDOJVaa9YlTAt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 31, 2014 at 07:06:39PM +0100, Baptiste Daroussin wrote: > Long ago I had created the quick and really dirty: > https://people.freebsd.org/~bapt/vmdkimage-srcs/ >=20 Ding! Ding! Ding! Baptiste wins. At quick glance, this looks like exactly what I had hoped somebody had stashed away somewhere. Thank you for the link, I'll look at this next year. Glen --8bBEDOJVaa9YlTAt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUpD6xAAoJEAMUWKVHj+KTFxwQAI15an9ecHDbl8tPfuwyn54b mnCmQgk5tPsy/StkO1F3b98nTUqi2YCQLD5Yzo9oxsyZYgb94MfMmrJjCzc62s9s Rie/2a7Mj4maLId8luJVj75xyA6eFGbCNbQYu/AztqnYKcrz4tYk91oON+1LGfil WbmU9HIkCVf+zr0w1HBBWd205GvzkA/dLLdkcxw0MpmnegCUBFVHNaKL7lbvpMa9 XukRy+yqeyvNFumoHO2PSpOlm4F6lGeSuqfKCVv7rMULohWYXs1PRlqjR5bdsK13 HgAomX4CShJSHsFEC0ARMZR7cr7QVP4b8IrsIm2JH14cnqmJQBgUqa7ysZ12siNW wpvapXaC3+leuGTPQGoODYHkr6hPywHAkod/jK7TJ56CalwW6C8B9bUQh+ML+cFo WMF69xSNJTlpIbC5O9SwzQD1GA5HSb8KXqSLqviKq9QaWTmM2e+i9kowwQ6WlQ5k SjtxpT11JDHvShq96tyZnj7xC/zO8dAXikv/EgfVg8b2n6wVmBXomoukmzqyZK8R EKa75yF7bgqPagF1hK8iZeYiicK6zpTvURIlv88UCEM2YuxFC57bzSCbicKN/VYB avo/6YdnlegjXApgdCasadwcdrohEcyL5stJhflr0zWyy+B+bRTa8uuM0SEVYFiS WKHuHbdDr/6gcd9lgEcd =0+hC -----END PGP SIGNATURE----- --8bBEDOJVaa9YlTAt-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:26:58 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B0DC521 for ; Wed, 31 Dec 2014 18:26:58 +0000 (UTC) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D412E3AC2 for ; Wed, 31 Dec 2014 18:26:57 +0000 (UTC) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.14.9/8.14.9) with ESMTP id sBVIQlBA050978 for ; Wed, 31 Dec 2014 19:26:48 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: puchar.net: Host laptop.wojtek.intra [10.1.0.2] (may be forged) claimed to be [10.1.0.2] Date: Wed, 31 Dec 2014 19:26:01 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@laptop To: hackers@freebsd.org Subject: slow IMAP download - help please Message-ID: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Wed, 31 Dec 2014 19:26:48 +0100 (CET) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:26:58 -0000 i don't know if it's dovecot2 problem or FreeBSD 10 problem. All services works fine at full speed over gigabit ethernet. IMAP works fast until you download large mail over imap. peaks at 1MB/s strange - uploading over imap goes at full speed. can you please give me hints what to check? From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:30:41 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1994762D; Wed, 31 Dec 2014 18:30:41 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 027603C60; Wed, 31 Dec 2014 18:30:41 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 27DD9341F853; Wed, 31 Dec 2014 10:30:40 -0800 (PST) Message-ID: <54A44105.4080408@freebsd.org> Date: Wed, 31 Dec 2014 10:31:33 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Glen Barber , Baptiste Daroussin Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231180639.GE43180@ivaldir.etoilebsd.net> <20141231182137.GG75959@hub.FreeBSD.org> In-Reply-To: <20141231182137.GG75959@hub.FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:30:41 -0000 On 12/31/14 10:21 AM, Glen Barber wrote: > On Wed, Dec 31, 2014 at 07:06:39PM +0100, Baptiste Daroussin wrote: >> Long ago I had created the quick and really dirty: >> https://people.freebsd.org/~bapt/vmdkimage-srcs/ >> > > Ding! Ding! Ding! > > Baptiste wins. > > At quick glance, this looks like exactly what I had hoped somebody had > stashed away somewhere. Thank you for the link, I'll look at this next > year. > > Glen > Bapt mentioned that his .ova files didn't seem to work outside of virtuabox. I would suggest to re-create the .ova file using my script, but try adding one of these two options to the export command: VBoxManage export [--legacy09|--ovf09] <- these options might help? In the meanwhile I'm making a "virtualbox-ose-lite" port which will in turn have a package with many fewer deps which will in turn make this less triggering to Glen. -Alfred From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:34:31 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6DD1876F; Wed, 31 Dec 2014 18:34:31 +0000 (UTC) Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 320383E0F; Wed, 31 Dec 2014 18:34:31 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id fp1so21369836pdb.10; Wed, 31 Dec 2014 10:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=JKXwojBn/3lsjmxev2MAkcrCBZjVQtwEtrvXQXnKOoQ=; b=DNk/LSAF9oTiadpjy5imQ4xwOU0tuQ0JpMShpQyutTBYSun05/uuV/kkPpOBzARQzH 52SZ7a0CqQ8JRwMzqX2tiy4FOxnSnWsUv8yQNUDvvyzW5wf7Ks77zhbJnWrLo+fIrAoZ RhgB/Iu2D3miPCoPfw8LZjMv0jzNXUO02VIuamqKUq60MIY4NH4VEdtRw9k8RJRA4Kwa VjikXxUayDjLj0Nc1Yjru+ew8X1+SBujXeWELBNXVyajVxN7uHJtZLg6WJHZFkH9QGcv nx5tfmf5sC0y3a//HH9syNbtIGBxj4VhpvLi9Y0diC4q70ThUL7+vEWfxrxMGHx+ki4e ZaCg== X-Received: by 10.70.6.164 with SMTP id c4mr109436799pda.63.1420050870629; Wed, 31 Dec 2014 10:34:30 -0800 (PST) Received: from [192.168.20.5] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id gx1sm41808194pbd.57.2014.12.31.10.34.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 10:34:30 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_107B3EA5-DD9A-4A2C-9A26-A204F2A30FB4"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Garrett Cooper In-Reply-To: <20141231161529.GB75959@hub.FreeBSD.org> Date: Wed, 31 Dec 2014 10:34:28 -0800 Message-Id: <54AD08E1-588F-4FFC-9F30-5EBF524A7045@gmail.com> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231161529.GB75959@hub.FreeBSD.org> To: Glen Barber X-Mailer: Apple Mail (2.1878.6) Cc: Ryan Kois , re@freebsd.org, Alfred Perlstein , Claudia Yadathi , hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:34:31 -0000 --Apple-Mail=_107B3EA5-DD9A-4A2C-9A26-A204F2A30FB4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 31, 2014, at 8:15, Glen Barber wrote: > On Wed, Dec 31, 2014 at 08:48:01AM -0700, Warren Block wrote: >> On Wed, 31 Dec 2014, Glen Barber wrote: >>> On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >>>>>=20 >>>>> I think 'ifconfig_DEFAULT=3D"DHCP"' in rc.conf(5) is what you = want. >>>>=20 >>>> Do we want this by default in all images? (I would vote yes). >>>>=20 >>>=20 >>> I'd actually argue 'no.' As a sysadmin, I don't want any system = doing >>> anything I don't expect it to do, virtual machine or not. >>=20 >> It can have security implications. And I've never tested what = happens when >> there is more than one interface. First one wins, probably. >>=20 >> How about adding it to rc.conf, but commented? >>=20 >=20 > I think this would be the least objectionable solution, with a note in > motd mentioning how to enable networking. Why not do what a lot of OSes do and give folks a dialog that says, =93I saw you haven=92t setup networking =97 do you want to do so now?=94 It=92s already in bsdinstall=85 moving it into the boot process earlier = on seems like an acceptable thing to do. Thanks! --Apple-Mail=_107B3EA5-DD9A-4A2C-9A26-A204F2A30FB4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUpEG0AAoJEMZr5QU6S73eFWQH/0i1R6wxCZYOt6xy6hP/Jf3r i6KxN212heT0P/qYK55tTax6EtusSKqdNZT2QVNYqNwxHlC0eeGpzUsEUA6YAjAc XCxmsMuBmOTuUdatWEhjJHsDjMJt0ugAiolEGGanV5SzsfA5mWjpmAsL0Vnctsd4 0zHFDua2+rjOxcx3rBO9JRKSQp1JU0rQz96n3nXfF2TJdqx3I5ybFxblVBUHdkmd zVMCXOcsQ/t7gVE3yV0cpHGJMyrcP5S8vWFSrgHc2R69mvasKr8blVaedOThPcqq latytJQzq8rYPw/IYdJDvsworYBDQNS3oG6J9W5inLyg/bfgetltIkPpA9lBscQ= =8Wi6 -----END PGP SIGNATURE----- --Apple-Mail=_107B3EA5-DD9A-4A2C-9A26-A204F2A30FB4-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:37:18 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E94C8900; Wed, 31 Dec 2014 18:37:18 +0000 (UTC) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B7DC3E7E; Wed, 31 Dec 2014 18:37:18 +0000 (UTC) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.14.9/8.14.9) with ESMTP id sBVIbF8j051244; Wed, 31 Dec 2014 19:37:15 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: puchar.net: Host laptop.wojtek.intra [10.1.0.2] (may be forged) claimed to be [10.1.0.2] Date: Wed, 31 Dec 2014 19:37:10 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@laptop To: Alfred Perlstein Subject: Re: How to make a FreeBSD vm in virtualbox. In-Reply-To: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> Message-ID: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Wed, 31 Dec 2014 19:37:16 +0100 (CET) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:37:19 -0000 > One final question, is there a possibility we could add some changes to the image so that it auto-dhcp's an address? Most people who just download the image won't know to "dhclient em0" or even what an "em0" is. doesn't ifconfig_em0=DHCP do this? From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:40:12 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A87BCA8D; Wed, 31 Dec 2014 18:40:12 +0000 (UTC) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A5043EF5; Wed, 31 Dec 2014 18:40:12 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id et14so21749130pad.29; Wed, 31 Dec 2014 10:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=dt5a8Zy0GYfiKptBcqXAsUUGv1Wv1HqeC4XCG4kqPV4=; b=JyDECZ8K7q8ZZhDyzdIqZjqdzmRqMJsm4kFfgGGmys1aX6QSrq7XFnF5LZ6pmYgCh7 Iv1tDnBE1yPYeyo5vNNKByt94wnuI/VoXsXv0mwvVt1594FhJTfj7wjcpZ5y89k+3C0I KF13K0eYtm3qLjZ8tqVNl5NrRqWqFsFKKl8fIf7nkiFspyu80gGDYWqWDJ3NL4il0+0L 1nljy7znIdEb54eadNYKC4aGGNtXO6ne6z9LjzcwTUlvRIVwul8U2rKDX0NuGWE49cci LfoQRrnaFBxD1xm+dVBQVd4N0AbkpXF6bUm8kwWDZ8+Xy/92w8s+515C2ac3SUgCd4aW b/NA== X-Received: by 10.66.156.38 with SMTP id wb6mr91610717pab.139.1420051212020; Wed, 31 Dec 2014 10:40:12 -0800 (PST) Received: from [192.168.20.5] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id ws4sm41824268pbc.53.2014.12.31.10.40.10 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 10:40:11 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_A7204547-8E0B-459F-9E7F-F85F2E7C7A6E"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Garrett Cooper In-Reply-To: Date: Wed, 31 Dec 2014 10:40:09 -0800 Message-Id: <35F27CF1-A230-49AC-B077-2C7621C47D85@gmail.com> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231175658.GD75959@hub.FreeBSD.org> To: Adrian Chadd X-Mailer: Apple Mail (2.1878.6) Cc: Ryan Kois , FreeBSD Release Engineering Team , Alfred Perlstein , Claudia Yadathi , Glen Barber , "freebsd-hackers@freebsd.org" , Will Andrews X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:40:12 -0000 --Apple-Mail=_A7204547-8E0B-459F-9E7F-F85F2E7C7A6E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 31, 2014, at 10:12, Adrian Chadd wrote: > I'm confused by this discussion. >=20 > The basic image generation doesn't need to use any third-party tools. >=20 > We can always have a transformation step /after/ those images are > generated that uses third party tools to generate other images. Much > like Alfred's shell script. >=20 > I know it sucks, but unless someone wants to write BSD versions of all > of those configuration pieces, we're going to be stuck using external > tools to do things. And those things will get eyeballs. It=92s really unfortunate that the VMware option requires linux compat = (at least) in order to work: = https://my.vmware.com/web/vmware/details?productId=3D352&downloadGroup=3DO= VFTOOL350 Is there anyone who=92s been working with VMware directly to add FreeBSD = support? If so, I think that opensourcing this tool (or at least having = a binary) would potentially be the best win of all in the short-term. Thanks! --Apple-Mail=_A7204547-8E0B-459F-9E7F-F85F2E7C7A6E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUpEMJAAoJEMZr5QU6S73etKoIAK/cdVF+FLKaQXydCub/rlUB umFVF8IHi9UC3kKoe/I+E0HYjoTaatkwzPW55WDOMuYzFIOc8Zq3nQS1OzXovjQv GciT8sojwaG8Sasp7wNi5PZ0Zzh2B97+RsZzmwJ8GnjAwIESFKh3a15tvytCaNVE fqtJH7l87C/DS9QyhXW1SANMjOqvx7KAdbTEsXdxy+3QEs2L2JzCSmpvzbAF/Nkt jR8LDva8VHtYUlwXNQKWZYuSLfe2PGRdMtRjPS2JFA9F6XeBAyLL2wBXhisIuHZU Gt/5YO4PAFgekzCwiFhgOt8YVKkWDyti3FL+PYJaEPIh/aCBrsdH7ZhqN3iMq70= =mbX1 -----END PGP SIGNATURE----- --Apple-Mail=_A7204547-8E0B-459F-9E7F-F85F2E7C7A6E-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:43:15 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FAA4B92; Wed, 31 Dec 2014 18:43:15 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 67DED3FD6; Wed, 31 Dec 2014 18:43:15 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 79C06341F854; Wed, 31 Dec 2014 10:43:14 -0800 (PST) Message-ID: <54A443F7.2060700@freebsd.org> Date: Wed, 31 Dec 2014 10:44:07 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Garrett Cooper , Glen Barber Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231161529.GB75959@hub.FreeBSD.org> <54AD08E1-588F-4FFC-9F30-5EBF524A7045@gmail.com> In-Reply-To: <54AD08E1-588F-4FFC-9F30-5EBF524A7045@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:43:15 -0000 On 12/31/14 10:34 AM, Garrett Cooper wrote: > On Dec 31, 2014, at 8:15, Glen Barber wrote: > >> On Wed, Dec 31, 2014 at 08:48:01AM -0700, Warren Block wrote: >>> On Wed, 31 Dec 2014, Glen Barber wrote: >>>> On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >>>>>> I think 'ifconfig_DEFAULT="DHCP"' in rc.conf(5) is what you want. >>>>> Do we want this by default in all images? (I would vote yes). >>>>> >>>> I'd actually argue 'no.' As a sysadmin, I don't want any system doing >>>> anything I don't expect it to do, virtual machine or not. >>> It can have security implications. And I've never tested what happens when >>> there is more than one interface. First one wins, probably. >>> >>> How about adding it to rc.conf, but commented? >>> >> I think this would be the least objectionable solution, with a note in >> motd mentioning how to enable networking. > Why not do what a lot of OSes do and give folks a dialog that says, > > “I saw you haven’t setup networking — do you want to do so now?” > > It’s already in bsdinstall… moving it into the boot process earlier on seems like an acceptable thing to do. > > Thanks! That is fucking brilliant... seriously. If you user picks "no" you can just make a sentinal file (that expert users can make be default if they are rolling their own releases). -Alfred From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:46:58 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 493FCC9B; Wed, 31 Dec 2014 18:46:58 +0000 (UTC) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C02F64035; Wed, 31 Dec 2014 18:46:58 +0000 (UTC) Received: by mail-pa0-f45.google.com with SMTP id lf10so21678337pab.32; Wed, 31 Dec 2014 10:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=wjsJOUzIT7+i3b3G+0wlMR9aXA01rDWZKngjNLXZBgA=; b=UlQkEpp0hKL6F4PYwkWQ/e2xk/j/bHWht+sueo9GgTAxkB3Kd5Tw26PC0xa9sEedB8 S7bErOVg5KeIXNW9kHREFjxKmwrHP35TnTbl/fpGEGcHVon6W3RNdotL48u2hj0iE8Is q/pFNHfSiPGLc8MQr4L0Np1w8go2Llpb0YDaxnbKg6H5K+jEz2ZS1a7ewGdZYHKVsrM6 johnwSDJC0mAUy4k4zDGWShNxdU6nZ9zZRw1G2UlQugaWLll/bbqywGDEx8BNQOzHWV5 06qD5hIus2KVLkU/LpLzw3FwpCWfVDSiaOeMC1+Ia40S/3tFDZiplrXAcCmzoSQsMtbY zOBw== X-Received: by 10.70.40.139 with SMTP id x11mr109618625pdk.124.1420051617573; Wed, 31 Dec 2014 10:46:57 -0800 (PST) Received: from [192.168.20.5] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id pd9sm41918118pdb.35.2014.12.31.10.46.56 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 10:46:57 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_2FCC12BF-9EAA-44A8-AA2F-5F9646F10FC5"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Garrett Cooper In-Reply-To: <54A443F7.2060700@freebsd.org> Date: Wed, 31 Dec 2014 10:46:55 -0800 Message-Id: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231161529.GB75959@hub.FreeBSD.org> <54AD08E1-588F-4FFC-9F30-5EBF524A7045@gmail.com> <54A443F7.2060700@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: Ryan Kois , re@freebsd.org, Claudia Yadathi , Glen Barber , hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:46:58 -0000 --Apple-Mail=_2FCC12BF-9EAA-44A8-AA2F-5F9646F10FC5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 31, 2014, at 10:44, Alfred Perlstein wrote: > On 12/31/14 10:34 AM, Garrett Cooper wrote: >> On Dec 31, 2014, at 8:15, Glen Barber wrote: >>=20 >>> On Wed, Dec 31, 2014 at 08:48:01AM -0700, Warren Block wrote: >>>> On Wed, 31 Dec 2014, Glen Barber wrote: >>>>> On Tue, Dec 30, 2014 at 10:04:38PM -0800, Alfred Perlstein wrote: >>>>>>> I think 'ifconfig_DEFAULT=3D"DHCP"' in rc.conf(5) is what you = want. >>>>>> Do we want this by default in all images? (I would vote yes). >>>>>>=20 >>>>> I'd actually argue 'no.' As a sysadmin, I don't want any system = doing >>>>> anything I don't expect it to do, virtual machine or not. >>>> It can have security implications. And I've never tested what = happens when >>>> there is more than one interface. First one wins, probably. >>>>=20 >>>> How about adding it to rc.conf, but commented? >>>>=20 >>> I think this would be the least objectionable solution, with a note = in >>> motd mentioning how to enable networking. >> Why not do what a lot of OSes do and give folks a dialog that says, >>=20 >> =93I saw you haven=92t setup networking =97 do you want to do so = now?=94 >>=20 >> It=92s already in bsdinstall=85 moving it into the boot process = earlier on seems like an acceptable thing to do. >>=20 >> Thanks! >=20 > That is fucking brilliant... seriously. Thanks :) > If you user picks "no" you can just make a sentinal file (that expert = users can make be default if they are rolling their own releases). Yeah, that would be nice. We could also add a timeout of 3-5 seconds or something to the dialog = (that might be possible with some of the changes that dteske has done = with dpv?), so it proceeds on to the login prompt if not prompted so = non-interactive installs still work. Or we could formalize the non-interactive install process, but that = seems like a larger task because it would potentially require some = redesign of bsdinstall. --Apple-Mail=_2FCC12BF-9EAA-44A8-AA2F-5F9646F10FC5 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUpESfAAoJEMZr5QU6S73e8CkIAJge3RL7+n2zFvqmdDVpfyYq DrDjFYtrFsE8GCJs8AZudzxdR6GMKabt4CiNiO/hla/AaSz5iKFB2cvx1Vxr+JmO 6RbNlblAKNGFwUIgW5q9bx8592QDWeitOOAcKf6iFgAtPI4dQ+44+/f0MOUCNbBH MXQvnB6QHtQ9UckKi2mRwF0qDhhuAL0BRb7NQsNvOQUjy1QCDUaIORtpMQ9Ax4L0 qvp3hIYy4fRDRoYfHXk04FJ20OPj/jNDjrl2YpD8DQ4bdV/verV5ROeF+fqYupDE 6QZUxb/w0H5tKmXOTJdiZcGjiHx4i88WC7+bwESKUUsegK6SAAk18T/WPkdMU38= =5xo9 -----END PGP SIGNATURE----- --Apple-Mail=_2FCC12BF-9EAA-44A8-AA2F-5F9646F10FC5-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 18:56:17 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E73FAE1D; Wed, 31 Dec 2014 18:56:17 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id CD34064196; Wed, 31 Dec 2014 18:56:17 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id A9409341F854; Wed, 31 Dec 2014 10:56:16 -0800 (PST) Message-ID: <54A44705.6000005@freebsd.org> Date: Wed, 31 Dec 2014 10:57:09 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Garrett Cooper , Adrian Chadd Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231175658.GD75959@hub.FreeBSD.org> <35F27CF1-A230-49AC-B077-2C7621C47D85@gmail.com> In-Reply-To: <35F27CF1-A230-49AC-B077-2C7621C47D85@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: Ryan Kois , FreeBSD Release Engineering Team , Claudia Yadathi , Glen Barber , "freebsd-hackers@freebsd.org" , Will Andrews X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 18:56:18 -0000 On 12/31/14 10:40 AM, Garrett Cooper wrote: > On Dec 31, 2014, at 10:12, Adrian Chadd wrote: > >> I'm confused by this discussion. >> >> The basic image generation doesn't need to use any third-party tools. >> >> We can always have a transformation step /after/ those images are >> generated that uses third party tools to generate other images. Much >> like Alfred's shell script. >> >> I know it sucks, but unless someone wants to write BSD versions of all >> of those configuration pieces, we're going to be stuck using external >> tools to do things. And those things will get eyeballs. > > It’s really unfortunate that the VMware option requires linux compat (at least) in order to work: > > https://my.vmware.com/web/vmware/details?productId=352&downloadGroup=OVFTOOL350 > > Is there anyone who’s been working with VMware directly to add FreeBSD support? If so, I think that opensourcing this tool (or at least having a binary) would potentially be the best win of all in the short-term. > > Thanks! > https://my.vmware.com/web/vmware/details?productId=353&downloadGroup=OVFTOOL350_OSS ? -Alfred From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 19:03:06 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3AC8238; Wed, 31 Dec 2014 19:03:06 +0000 (UTC) Received: from mail-pa0-x235.google.com (mail-pa0-x235.google.com [IPv6:2607:f8b0:400e:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 942C864310; Wed, 31 Dec 2014 19:03:06 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id kq14so21365525pab.26; Wed, 31 Dec 2014 11:03:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=E+gG8XNVNlUFvaDiqEqmQ2agY/sJRjNuhb4ZHbfyAVM=; b=Ibd7+CPCqdPQVniJuxP7jIYuKme4hTIbhtN1yR2O/Nt47lmtqwON8hPfBEgUyhtov4 iMxIQfeYh1TLvOgVpiMQ+AeVM445kQ4nCDxagQBz3+0+5kJ/5L3/ejYhkadebi0pNATP 5Heokbj3LMZ38pmQTGTRPZ7mBJbnciflXh+btx+JkW2Kyp6h8F/SYrOC7n1Uw2mHL/tZ WnTBR4+flsqCQBA/yfQ4NJd/oIAcwlaPV1BE5gAPeq7mysDpXGCqFczquY1EIZZcrKtM LZtkLGeHwvWaId/bkSYZXe7KdaguWTVi8+95MELRHUcE1J0Fkj1jqtgVu1iISXriiECX 93eA== X-Received: by 10.70.101.165 with SMTP id fh5mr104677568pdb.148.1420052586238; Wed, 31 Dec 2014 11:03:06 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:89e5:192b:a505:2a25? ([2601:8:ab80:7d6:89e5:192b:a505:2a25]) by mx.google.com with ESMTPSA id j10sm41849220pdr.92.2014.12.31.11.03.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 11:03:05 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_1AA20F66-8BBB-47F6-88DA-13FD2D9357FF"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Garrett Cooper In-Reply-To: <54A44705.6000005@freebsd.org> Date: Wed, 31 Dec 2014 11:03:04 -0800 Message-Id: <60DD8B3D-B499-4F0D-8AD4-AF85F902489A@gmail.com> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231175658.GD75959@hub.FreeBSD.org> <35F27CF1-A230-49AC-B077-2C7621C47D85@gmail.com> <54A44705.6000005@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: Adrian Chadd , FreeBSD Release Engineering Team , Ryan Kois , Claudia Yadathi , Glen Barber , "freebsd-hackers@freebsd.org" , Will Andrews X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 19:03:07 -0000 --Apple-Mail=_1AA20F66-8BBB-47F6-88DA-13FD2D9357FF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 31, 2014, at 10:57, Alfred Perlstein wrote: > On 12/31/14 10:40 AM, Garrett Cooper wrote: >> On Dec 31, 2014, at 10:12, Adrian Chadd wrote: >>=20 >>> I'm confused by this discussion. >>>=20 >>> The basic image generation doesn't need to use any third-party = tools. >>>=20 >>> We can always have a transformation step /after/ those images are >>> generated that uses third party tools to generate other images. Much >>> like Alfred's shell script. >>>=20 >>> I know it sucks, but unless someone wants to write BSD versions of = all >>> of those configuration pieces, we're going to be stuck using = external >>> tools to do things. And those things will get eyeballs. >>=20 >> It=92s really unfortunate that the VMware option requires linux = compat (at least) in order to work: >>=20 >> = https://my.vmware.com/web/vmware/details?productId=3D352&downloadGroup=3DO= VFTOOL350 >>=20 >> Is there anyone who=92s been working with VMware directly to add = FreeBSD support? If so, I think that opensourcing this tool (or at least = having a binary) would potentially be the best win of all in the = short-term. >>=20 >> Thanks! >>=20 >=20 > = https://my.vmware.com/web/vmware/details?productId=3D353&downloadGroup=3DO= VFTOOL350_OSS That works too! Now all we need to do is make that into a port... --Apple-Mail=_1AA20F66-8BBB-47F6-88DA-13FD2D9357FF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUpEhoAAoJEMZr5QU6S73eg3wH/3gRsoQgond1pRzXadlh6sOQ W1m9skvVmOlEZ76qD+bQdYNMN/vGVq8/I1RjkBSAN/0ITk6Xp44erTsQzbOe/Awp /KTvH+3cWWrIyhIJzvr1FYjUO3Ikf8QccRZ80SnGUOUqIstTn8ruxnSXyGyMlscT 6FQQG13pkbACKsqgOyG/DAN6u81Xa37OFfrCuwtg2ZI+S+eu+qfeiZJcamuMVviH rB9+/30P1YFRH4zJaS9WtL8TCKE8fksNifPN/5qgaElzduHq4Z/9WQDijMRhcNu6 HvY0Dbk9ovLXSi8PHv7T7YemIK+VpFTOalwVhc9ohy2ViNlJ9Uk8Uriqw0jIT30= =QyQG -----END PGP SIGNATURE----- --Apple-Mail=_1AA20F66-8BBB-47F6-88DA-13FD2D9357FF-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 19:05:24 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B905933D; Wed, 31 Dec 2014 19:05:24 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 9D95B6434B; Wed, 31 Dec 2014 19:05:24 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id F2747341F874; Wed, 31 Dec 2014 11:05:23 -0800 (PST) Message-ID: <54A44928.4050701@freebsd.org> Date: Wed, 31 Dec 2014 11:06:16 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Garrett Cooper Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231175658.GD75959@hub.FreeBSD.org> <35F27CF1-A230-49AC-B077-2C7621C47D85@gmail.com> <54A44705.6000005@freebsd.org> <60DD8B3D-B499-4F0D-8AD4-AF85F902489A@gmail.com> In-Reply-To: <60DD8B3D-B499-4F0D-8AD4-AF85F902489A@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: Adrian Chadd , FreeBSD Release Engineering Team , Ryan Kois , Claudia Yadathi , Glen Barber , "freebsd-hackers@freebsd.org" , Will Andrews X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 19:05:24 -0000 On 12/31/14 11:03 AM, Garrett Cooper wrote: > On Dec 31, 2014, at 10:57, Alfred Perlstein wrote: > >> On 12/31/14 10:40 AM, Garrett Cooper wrote: >>> On Dec 31, 2014, at 10:12, Adrian Chadd wrote: >>> >>>> I'm confused by this discussion. >>>> >>>> The basic image generation doesn't need to use any third-party tools. >>>> >>>> We can always have a transformation step /after/ those images are >>>> generated that uses third party tools to generate other images. Much >>>> like Alfred's shell script. >>>> >>>> I know it sucks, but unless someone wants to write BSD versions of all >>>> of those configuration pieces, we're going to be stuck using external >>>> tools to do things. And those things will get eyeballs. >>> >>> It’s really unfortunate that the VMware option requires linux compat (at least) in order to work: >>> >>> https://my.vmware.com/web/vmware/details?productId=352&downloadGroup=OVFTOOL350 >>> >>> Is there anyone who’s been working with VMware directly to add FreeBSD support? If so, I think that opensourcing this tool (or at least having a binary) would potentially be the best win of all in the short-term. >>> >>> Thanks! >>> >> >> https://my.vmware.com/web/vmware/details?productId=353&downloadGroup=OVFTOOL350_OSS > > That works too! Now all we need to do is make that into a port... > Actually we need to figure out how that file is actually the google-url library instead.... wat... ~/tmp % tar xzvf ../ovftools-3.0.1-and-3.5.0-OSS.tar.gz x google-url-r147/ x google-url-r147/LICENSE.txt x google-url-r147/third_party/ x google-url-r147/third_party/icu/ x google-url-r147/third_party/icu/build/ x google-url-r147/third_party/icu/build/using_icu.vsprops x google-url-r147/README.txt x google-url-r147/src/ x google-url-r147/src/url_parse_file.cc ... I'll ping some folks over there and see what's up. -Alfred From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 19:06:40 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62B6D42B; Wed, 31 Dec 2014 19:06:40 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7866438E; Wed, 31 Dec 2014 19:06:40 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id C75EC341F853; Wed, 31 Dec 2014 11:06:39 -0800 (PST) Message-ID: <54A44974.5080909@freebsd.org> Date: Wed, 31 Dec 2014 11:07:32 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Wojciech Puchar Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 19:06:40 -0000 On 12/31/14 10:37 AM, Wojciech Puchar wrote: >> One final question, is there a possibility we could add some changes >> to the image so that it auto-dhcp's an address? Most people who just >> download the image won't know to "dhclient em0" or even what an "em0" >> is. > doesn't > > ifconfig_em0=DHCP > > do this? > I know that. You know that. Do non-freebsd people know that? What do other distro's OS's do? In this day and age, any OS trying to stay relevant will autoconfigure. -Alfred From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 19:08:13 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D9925532; Wed, 31 Dec 2014 19:08:12 +0000 (UTC) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A07016440A; Wed, 31 Dec 2014 19:08:12 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id v10so21417585pde.29; Wed, 31 Dec 2014 11:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=tBdTMq6DwPYU1JajEf3FRlTUKK/YaoTlJRFZ1Yr4wOU=; b=Ie8c8AxZp/JJ8DrOzlolsAa5PuY9MxIq7LaDbafcdxOtvuZOejkwvome9altg/V/Ab 2ft3G0ZcqMaFacJgFuE+hk0waadN+6o2PJEzrS3A4LpRU91I+uGyYiVhUvihq+vATNxr yufq9NEYZhMXa4PTMkXne2k57HAFYByPRUqPVNhK1XnDgiL4+qp/ArK5pKuG14fez4z7 ZJ4sJqFyLoh8Bfp7FYPQGbG9gSfodY9S4IoL481Tag1vyDoNOZgFpdcIwMYDUNkF1X7L hGwNjfSal323GUJcNp76dOv8FMCOLPIXhM/vLKCRXTAxzT/nvJXUwDyjIyYt1ILIij2F 2CSQ== X-Received: by 10.70.95.133 with SMTP id dk5mr76785474pdb.98.1420052892115; Wed, 31 Dec 2014 11:08:12 -0800 (PST) Received: from [192.168.20.5] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id fz15sm41889058pdb.71.2014.12.31.11.08.10 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 11:08:11 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_FB31EA16-44E6-47E1-BFC7-47D32DE97329"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Garrett Cooper In-Reply-To: <54A44974.5080909@freebsd.org> Date: Wed, 31 Dec 2014 11:08:09 -0800 Message-Id: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <54A44974.5080909@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi , Wojciech Puchar X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 19:08:13 -0000 --Apple-Mail=_FB31EA16-44E6-47E1-BFC7-47D32DE97329 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 31, 2014, at 11:07, Alfred Perlstein wrote: > On 12/31/14 10:37 AM, Wojciech Puchar wrote: >>> One final question, is there a possibility we could add some changes = to the image so that it auto-dhcp's an address? Most people who just = download the image won't know to "dhclient em0" or even what an "em0" = is. >> doesn't >>=20 >> ifconfig_em0=3DDHCP >>=20 >> do this? >>=20 > I know that. >=20 > You know that. >=20 > Do non-freebsd people know that? >=20 > What do other distro's OS's do? In this day and age, any OS trying to = stay relevant will autoconfigure. Which is why I brought up the suggestion for the interactive network = config dialog from bsdinstall. Redhat=92s only been doing that with = Anaconda for the past=85 uh, 15 years? --Apple-Mail=_FB31EA16-44E6-47E1-BFC7-47D32DE97329 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUpEmZAAoJEMZr5QU6S73etOUH/2vRRPo+abeVmPEGHx8GpYYh NRD/lryXikL2i3upF40qgVfGdJYVOU3GS7xZDlPW3yDxLwvkhh7wvScKBb99MoOs Jty+Xx1n7oEZBsqkxLKL6zyK/4Zm9e0tbXvVDvHvDsg87F3LG4wUe67RQ7pfhqWv phPzm7BsTWyvURgDUT/VAc76R0YVw9lWp/PTt/Q6XNQc/0TE7aqyNlP5rBuZWHQS 7wnUFfZNGNQZdkp3UsOCpd8/CQuVaCKzMFDGRs2yGeKRFl6VUyHNZlLMggHZhwJ/ 0Xpadxy2DTgZ4lqJJFtMgksDN7oH0G4XX97c9O+VAWa7ag23r9ke2+RYmcxCHRY= =CwhA -----END PGP SIGNATURE----- --Apple-Mail=_FB31EA16-44E6-47E1-BFC7-47D32DE97329-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 19:10:26 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 292C97AF; Wed, 31 Dec 2014 19:10:26 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 1327E64459; Wed, 31 Dec 2014 19:10:26 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id DAF76341F85A; Wed, 31 Dec 2014 11:10:25 -0800 (PST) Message-ID: <54A44A57.1080507@freebsd.org> Date: Wed, 31 Dec 2014 11:11:19 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Garrett Cooper Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <54A44974.5080909@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi , Wojciech Puchar X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 19:10:26 -0000 On 12/31/14 11:08 AM, Garrett Cooper wrote: > On Dec 31, 2014, at 11:07, Alfred Perlstein wrote: > >> On 12/31/14 10:37 AM, Wojciech Puchar wrote: >>>> One final question, is there a possibility we could add some changes to the image so that it auto-dhcp's an address? Most people who just download the image won't know to "dhclient em0" or even what an "em0" is. >>> doesn't >>> >>> ifconfig_em0=DHCP >>> >>> do this? >>> >> I know that. >> >> You know that. >> >> Do non-freebsd people know that? >> >> What do other distro's OS's do? In this day and age, any OS trying to stay relevant will autoconfigure. > Which is why I brought up the suggestion for the interactive network config dialog from bsdinstall. Redhat’s only been doing that with Anaconda for the past… uh, 15 years? Makes a ton of sense. -Alfred From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 19:26:07 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9085C92; Wed, 31 Dec 2014 19:26:07 +0000 (UTC) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 87E002791; Wed, 31 Dec 2014 19:26:07 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id et14so21817818pad.3; Wed, 31 Dec 2014 11:26:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=KsxmlU1XnbKHZ667Yvzqh1196q70g4I+xxIAo4hj2hs=; b=CYKHBhJTi8QQ3nRC+vvm/VA+sqzEcD1EoLBd+4MVucA8zfULSU5484N9USs5RDIjBe PbVBqbwEM2iGVYmgn5OW589qdDkl2ZlkE2cpypylbgtarBuvUqqK5kvsFV1ZZbL2wGEn FzEoKHLpD4X7xgsNIGAfGwHTEVL2WxC7KSCTkf5JV/e/oP39asTHsXC7BToYrDNSnz9N BZHkh5yE8WAnwWuXJjb8amNSVyGLFSyNNKMZ0cPAE7Qleq6S3vyYR9YrSnQAj2TisMYe YX1EYUvH5T5VpHG8JhQKACTH5Ak7PG5UX9UCdmiN2MBrZeTLGmZwTnkjf6oc90jN3Zb2 Zm8A== X-Received: by 10.68.242.137 with SMTP id wq9mr53597231pbc.98.1420053967031; Wed, 31 Dec 2014 11:26:07 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:89e5:192b:a505:2a25? ([2601:8:ab80:7d6:89e5:192b:a505:2a25]) by mx.google.com with ESMTPSA id ds16sm41922457pdb.65.2014.12.31.11.26.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 11:26:06 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_F56D98BE-228D-45FD-84F9-65B6E4BA0B0F"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Garrett Cooper In-Reply-To: <54A44928.4050701@freebsd.org> Date: Wed, 31 Dec 2014 11:26:05 -0800 Message-Id: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231175658.GD75959@hub.FreeBSD.org> <35F27CF1-A230-49AC-B077-2C7621C47D85@gmail.com> <54A44705.6000005@freebsd.org> <60DD8B3D-B499-4F0D-8AD4-AF85F902489A@gmail.com> <54A44928.4050701@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: Adrian Chadd , FreeBSD Release Engineering Team , Benno Rice , Ryan Kois , Claudia Yadathi , Glen Barber , "freebsd-hackers@freebsd.org" , Will Andrews X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 19:26:07 -0000 --Apple-Mail=_F56D98BE-228D-45FD-84F9-65B6E4BA0B0F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 31, 2014, at 11:06, Alfred Perlstein wrote: > On 12/31/14 11:03 AM, Garrett Cooper wrote: >> On Dec 31, 2014, at 10:57, Alfred Perlstein = wrote: >>=20 >>> On 12/31/14 10:40 AM, Garrett Cooper wrote: >>>> On Dec 31, 2014, at 10:12, Adrian Chadd wrote: >>>>=20 >>>>> I'm confused by this discussion. >>>>>=20 >>>>> The basic image generation doesn't need to use any third-party = tools. >>>>>=20 >>>>> We can always have a transformation step /after/ those images are >>>>> generated that uses third party tools to generate other images. = Much >>>>> like Alfred's shell script. >>>>>=20 >>>>> I know it sucks, but unless someone wants to write BSD versions of = all >>>>> of those configuration pieces, we're going to be stuck using = external >>>>> tools to do things. And those things will get eyeballs. >>>>=20 >>>> It=92s really unfortunate that the VMware option requires linux = compat (at least) in order to work: >>>>=20 >>>> = https://my.vmware.com/web/vmware/details?productId=3D352&downloadGroup=3DO= VFTOOL350 >>>>=20 >>>> Is there anyone who=92s been working with VMware directly to add = FreeBSD support? If so, I think that opensourcing this tool (or at least = having a binary) would potentially be the best win of all in the = short-term. >>>>=20 >>>> Thanks! >>>>=20 >>>=20 >>> = https://my.vmware.com/web/vmware/details?productId=3D353&downloadGroup=3DO= VFTOOL350_OSS >>=20 >> That works too! Now all we need to do is make that into a port... >>=20 >=20 > Actually we need to figure out how that file is actually the = google-url library instead.... wat... >=20 > ~/tmp % tar xzvf ../ovftools-3.0.1-and-3.5.0-OSS.tar.gz > x google-url-r147/ > x google-url-r147/LICENSE.txt > x google-url-r147/third_party/ > x google-url-r147/third_party/icu/ > x google-url-r147/third_party/icu/build/ > x google-url-r147/third_party/icu/build/using_icu.vsprops > x google-url-r147/README.txt > x google-url-r147/src/ > x google-url-r147/src/url_parse_file.cc > ... >=20 > I'll ping some folks over there and see what's up. Probably VMware disclosing their modifications to source code as well as = what they statically compile into the tool *shrugs*. If I need to I=92ll try some internal channels; it=92s just a few hops = to get to the VMware folks for folks on Benno=92s team because we don=92t = work in the same geographical area as the folks do in SC. Thanks! --Apple-Mail=_F56D98BE-228D-45FD-84F9-65B6E4BA0B0F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUpE3NAAoJEMZr5QU6S73emu8H/Rx/1yaFpQbvY01dGaRa84Up z/chVIxrGmrtIabHWEcSZeMa+Lryc8wH077guYjxFk1q2tMyqHx+ur2mTuIeEGQo r5b4Prma4zc4/zxBdlv8lEXEs32Ema4FPckxll7gqxjWzoO4IkYJ21OVEX0l90mH oodcTufUP4E6zUvMxbKbtpaEm6w9mgPRjjcTWov5E8fIZnqIEqqy3NxAkdSg7n16 9H44GaWtiJiTZJ+jKZlgYMj3vmsOBFXFk8RG0OnUJjPKpr45UtqLqkQjCThJtzvm V/V7vuOFM2rdPhyGFub++AHIEsMe/NlNaCzLDl9+v4wW0WsauaQgH+t/evlzpw4= =tavd -----END PGP SIGNATURE----- --Apple-Mail=_F56D98BE-228D-45FD-84F9-65B6E4BA0B0F-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 20:26:38 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C6F2D75 for ; Wed, 31 Dec 2014 20:26:38 +0000 (UTC) Received: from away.numachi.com (away.numachi.com [66.228.38.138]) by mx1.freebsd.org (Postfix) with SMTP id 22D7D661EA for ; Wed, 31 Dec 2014 20:26:37 +0000 (UTC) Received: (qmail 31716 invoked from network); 31 Dec 2014 20:19:55 -0000 Received: from unknown (HELO meisai.numachi.com) (71.181.44.212) by away.numachi.com with SMTP; 31 Dec 2014 20:19:55 -0000 Received: (qmail 7197 invoked by uid 1001); 31 Dec 2014 20:00:46 -0000 Date: Wed, 31 Dec 2014 15:00:46 -0500 From: Brian Reichert To: Wojciech Puchar Subject: Re: slow IMAP download - help please Message-ID: <20141231200046.GW4505@numachi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 20:26:38 -0000 On Wed, Dec 31, 2014 at 07:26:01PM +0100, Wojciech Puchar wrote: > i don't know if it's dovecot2 problem or FreeBSD 10 problem. > > All services works fine at full speed over gigabit ethernet. > > IMAP works fast until you download large mail over imap. peaks at 1MB/s > > strange - uploading over imap goes at full speed. > > can you please give me hints what to check? What plug-ins are you using? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- Brian Reichert BSD admin/developer at large From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 00:33:01 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7DCA4905 for ; Thu, 1 Jan 2015 00:33:01 +0000 (UTC) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDBD6644F for ; Thu, 1 Jan 2015 00:33:01 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t010YMEo095846 for ; Wed, 31 Dec 2014 16:34:22 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: <54A3F893.5010700@freebsd.org> References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com>, <54A3F893.5010700@freebsd.org> From: "Chris H" Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall Date: Wed, 31 Dec 2014 16:34:22 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <31923e8f7993d5459dbd4df275f3c880@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 00:33:01 -0000 On Wed, 31 Dec 2014 05:22:27 -0800 Nathan Whitehorn wrote > On 12/30/14 19:04, Mark Felder wrote: > > After finding today that some of my intermittent home network problems > > are likely due to OpenBSD being unable to keep time* on my PC Engines > > APU4 firewall I am attempting yet again to run FreeBSD in this role. > > > > Here are my pain points that made me go with OpenBSD for so long: > > > > 1) No IPSEC in GENERIC > > 2) if_stf not having 6rd support (paging hrs@) > > I'll second this. I'll third this. > I'd note, however, that you can get 6RD working with > gif(4) perfectly well so long as you don't care about reaching other > customers on your local network segment. I've been using this for the > last 6 months. I've been using stf w/o gif(4) for ~1yr. First on RELENG_8, and now on RELENG_9 && 11-CURRENT, using patches kindly provided on the net@ list, when I also inquired about RA (stf) support. But, as you mentioned; with the caveat of being unable to communicate with others on the local net segment. --Chris > -Nathan > > > 3) pf issues: ipv6 checksums, fragments > > 4) pf syntax (ok, this is really an "I wish...") > > > > I noticed net/stf-6rd-kmod now has a patch for FreeBSD 10 so I grabbed > > the diff and built an IPSEC kernel with this patch applied. I'm now > > mostly up and running except for the fact that I have no idea how to > > configure stf for 6rd. There don't seem to be any docs/examples > > anywhere. Unfortunately the man page edits in the diff don't give me any > > details. I'd love to see a simple example because I'm completely lost > > right now. > > > > In conclusion: > > - Let's get IPSEC into GENERIC or make it accessible for users via pkg. > > It will need to receive the same treatment as GENERIC's freebsd-update > > patches. > > - Can we please get 6rd support in head? I understand these shims have > > lost a lot of interest/momentum but native IPv6 isn't coming soon for > > most people. > > - Glad to see pf patches flowing in: ipv6, checksum, vnet, etc. Thanks > > everyone! > > > > > > I will say I'm completely baffled by one thing though: the concept of > > having rtadvd in base, but no dhcpd in base. That doesn't make any sense > > to me. Shouldn't rtadvd be moved to ports? > > > > > > > > *For those curious, OpenBSD falls behind several seconds per minute and > > sometimes jumps hundreds behind. It's not a hardware issue as FreeBSD > > runs fine. Changing time counters in OpenBSD didn't work. This probably > > started around the time I upgraded to OpenBSD 5.6, but I'm not sure. > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 09:14:39 2015 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A3C91A4; Thu, 1 Jan 2015 09:14:39 +0000 (UTC) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A41A2E6B; Thu, 1 Jan 2015 09:14:37 +0000 (UTC) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.14.9/8.14.9) with ESMTP id t019EWNt053708; Thu, 1 Jan 2015 10:14:33 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: puchar.net: Host laptop.wojtek.intra [10.1.0.2] claimed to be [10.1.0.2] Date: Thu, 1 Jan 2015 10:14:27 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@laptop To: Alfred Perlstein Subject: Re: How to make a FreeBSD vm in virtualbox. In-Reply-To: <54A44974.5080909@freebsd.org> Message-ID: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <54A44974.5080909@freebsd.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Thu, 01 Jan 2015 10:14:33 +0100 (CET) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 09:14:39 -0000 >> > I know that. > > You know that. > > Do non-freebsd people know that? so add this in VM image to be ready. anyway - is this a right direction for unix system to do everything for a user (or more precisely - sysadmin) without even knowing? Is FreeBSD heading to compete with GUI linux distros? From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 16:01:39 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7551BB0C; Thu, 1 Jan 2015 16:01:39 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id DBEA566EB1; Thu, 1 Jan 2015 16:01:32 +0000 (UTC) Received: from [192.168.135.70] (unknown [94.19.235.70]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 1281A5C002; Thu, 1 Jan 2015 19:01:21 +0300 (MSK) Message-ID: <54A56F56.60403@FreeBSD.org> Date: Thu, 01 Jan 2015 19:01:26 +0300 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: ports@FreeBSD.org, FreeBSD Hackers Subject: CFLAGS only for clang in mixed-compiler project? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 16:01:39 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 I'm trying to update arm-eabi (microcontroller) cross-gcc port to latest version 4.9 and have one weird problem. Some part of gcc for arm (neon coprocessor machine description, to be precise) requires more than 256 nested parenthesis in version 4.9 (4.8 doesn't have this problem). Due to this parenthesis madness clang needs "-fbracket-depth=1024" option. If I add this option to CFLAGS in environment variable, I have other problem. Later in build process gcc uses newly-built gcc (xgcc) to build library. And this gcc picks up "-fbracket-depth=1024" from environment and fails due to unknown option! How could I provide options only for clang but not for gcc? - -- // Lev Serebryakov AKA Black Lion -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQJ8BAEBCgBmBQJUpW9WXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePSFMQAMgs3dCrbpQfwYLnkkzsvBWi 9WnhEjVnAi3hwQRtM6XLnkbfRhZBii8vS7w8O9Z5gmlF1GEX7XMgdMymV1CsYSm4 9ivfUSbOUTDk0f8kK/UPRKdCN3o1UIAMLDJ6DOoEoklTyHzi9cnvJmJ60jdKFXxb vULxpMJxwctQc6Je4bPd2/U1a3NIlIkOsHsnj/BQ2qc4kVoCnem/RneRQ4z++nVS dyYYy9fyOFkUM4Bfe7r/UQqeKh87BfNAOsqCi+kKzuj5jUsuglwvMhDJbcThnddn ayab8qyOnKW0Qo1jsw/3fCPFizR89Zp9UQdLyfo/EhYfVVVaRT00BCWkxM9ydavS /AkY9GpmbF4QIs2t1FQcBfLqZeHZi6uuYGR8i7HVhVmrfI7EShhygz1cWnUw8Hga sukWaxj/PcNCRQ/Vx6+GmyVF7sMslJ38p9qG6IXx5XDVIGP6+Tdl24/stGX1zKkv +fEDWT5BA7WeLqZAt0mpyWctlRIIED0wte2TIqTtxp0ggbVhsC01CW8klpWKpPMw 2sIfKCzdBgcL3LJdYuLIJn3YRAR1Yea//kl47EoAxGRVR1zP9OsDedFcwM6GTVDj 3mUOOZj2X/2vrr6IdIBI9H4SenbOU3kBTDxTy2JskKFR/oSX2zxM7D4EMuCcElw4 nXFHrmbeSHEg5EZ8dX8F =yz5y -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 16:47:02 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8011635; Thu, 1 Jan 2015 16:47:02 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7DD6B840; Thu, 1 Jan 2015 16:47:02 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Y6ito-000GFm-Tj; Thu, 01 Jan 2015 16:47:01 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t01Gkxm4052521; Thu, 1 Jan 2015 09:46:59 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+KUoBUmR4c6i8G6wNYNKOP Message-ID: <1420130819.85983.2.camel@freebsd.org> Subject: Re: CFLAGS only for clang in mixed-compiler project? From: Ian Lepore To: lev@FreeBSD.org Date: Thu, 01 Jan 2015 09:46:59 -0700 In-Reply-To: <54A56F56.60403@FreeBSD.org> References: <54A56F56.60403@FreeBSD.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.8 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 16:47:02 -0000 On Thu, 2015-01-01 at 19:01 +0300, Lev Serebryakov wrote: > I'm trying to update arm-eabi (microcontroller) cross-gcc port to > latest version 4.9 and have one weird problem. > > Some part of gcc for arm (neon coprocessor machine description, to be > precise) requires more than 256 nested parenthesis in version 4.9 (4.8 > doesn't have this problem). Due to this parenthesis madness clang > needs "-fbracket-depth=1024" option. If I add this option to CFLAGS in > environment variable, I have other problem. Later in build process gcc > uses newly-built gcc (xgcc) to build library. And this gcc picks up > "-fbracket-depth=1024" from environment and fails due to unknown option! > > How could I provide options only for clang but not for gcc? Don't set it in the env, set it in a make variable. The devel/arm-none-eabi-gcc port (which builds a bare-metal arm cross compiler and may be exactly what you need) has this: .include # The following is required for clang to bootstrap gcc. .if ${COMPILER_TYPE} == clang MAKE_ARGS+= CXXFLAGS=-fbracket-depth=512 .endif -- Ian From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 17:25:32 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0BB0574; Thu, 1 Jan 2015 17:25:32 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 84B3464DEA; Thu, 1 Jan 2015 17:25:32 +0000 (UTC) Received: from [192.168.135.70] (unknown [94.19.235.70]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id AB46D5C002; Thu, 1 Jan 2015 20:25:17 +0300 (MSK) Message-ID: <54A58302.104@FreeBSD.org> Date: Thu, 01 Jan 2015 20:25:22 +0300 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Ian Lepore Subject: Re: CFLAGS only for clang in mixed-compiler project? References: <54A56F56.60403@FreeBSD.org> <1420130819.85983.2.camel@freebsd.org> In-Reply-To: <1420130819.85983.2.camel@freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 17:25:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 01.01.2015 19:46, Ian Lepore wrote: > Don't set it in the env, set it in a make variable. The > devel/arm-none-eabi-gcc port (which builds a bare-metal arm cross > compiler and may be exactly what you need) has this: Not exactly, I'm speaking about devel/gcc-arm-embedded, which is built from ARM-released sources (and is built with multilibs, etc), but idea is the same. > # The following is required for clang to bootstrap gcc. .if > ${COMPILER_TYPE} == clang MAKE_ARGS+= CXXFLAGS=-fbracket-depth=512 > .endif Thank you, it works! - -- // Lev Serebryakov AKA Black Lion -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQJ8BAEBCgBmBQJUpYMCXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePUvUP/0w42M/vipIRu0abkDBb6xk5 ltXypbDZN394sjLNSaRBgPpBkSS6YMGWzx7DiqO/urB4anT3KS2xsBcjteaTZgbo 7Dsvj7oFEnGAaJftokDarT/4U/0TARXl9CJDkP1jDPP+PeoW0ZE17dtN7U3i/AVI ArS8tqr5EfAeOJLH1IxNmfZCxp/jhCjxUEDcnLNmFC7tKXsl/ytXAZA0BWZ0FhFj e1e4ujQKd5Nqg1426zEgXEcnQFrRamCErV1dzxnsxjOk1Z6nvPDphB2qCKZ6P5zv 9J81qSUA5jHqIsLMqPXHy4/7CnwiCjQ9qbg6TRR9K1qy+MFCQ4nC4NnJmMenzqaq 7Q0sEr6kGFr7yy6/K33axlcpmdJK3YrYCd8mESx9cGnCa2hPA92jbDWq/WSDD8+w D1Y7COZsZvPB+1zYr+IEwBLjHCr4irrtJH9EJvAsIKakWcWJcSkEUveBi9Gl3S/F 11WV4oL1eonn6HrPUaPhzt2NilBZBd3G4+KGSYT2Z7aPyE6y5yhWwTCi7/gcOZrt s/4gg+PzZUQ2HAEt+WMkNSV9QY7pYfYGPTYTinwlUDfq5IpIWPtKigXbH5poLlV2 Spu6wYE2RPK5qD2lLcUA6Cx30YMmYdc8HvTCvLde7OnLzs6ds5v5rlH+x+bXRRgh yc5guwmaKyKUsJzGJve6 =7TI2 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 19:06:53 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C78559D; Thu, 1 Jan 2015 19:06:53 +0000 (UTC) Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu [18.7.68.34]) by mx1.freebsd.org (Postfix) with ESMTP id A2436C39; Thu, 1 Jan 2015 19:06:52 +0000 (UTC) X-AuditID: 12074422-f79476d000000d9e-fa-54a59ac4ac76 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP id 5B.B7.03486.5CA95A45; Thu, 1 Jan 2015 14:06:45 -0500 (EST) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id t01J6iRh020538; Thu, 1 Jan 2015 14:06:44 -0500 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t01J6gMl025883 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 1 Jan 2015 14:06:43 -0500 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id t01J6fOR023556; Thu, 1 Jan 2015 14:06:41 -0500 (EST) Date: Thu, 1 Jan 2015 14:06:41 -0500 (EST) From: Benjamin Kaduk X-X-Sender: kaduk@multics.mit.edu To: freebsd-hackers@freebsd.org Subject: Last week for submitting FreeBSD 2014Q4 Status Reports Message-ID: User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsUixG6nont01tIQg74j7Ba7rp1mt5jz5gOT xfbN/xgdmD1mfJrPEsAYxWWTkpqTWZZapG+XwJVxa3k7S8Fc7or+jcfZGxhXcnYxcnJICJhI nG3YxgZhi0lcuLceyObiEBJYzCTR197ADOFsYJRYOvUyE4RzkEli+e63jCAtQgL1Esu6/oG1 swhoSex8cIAZxGYTUJN4vLeZFWKsosTmU5OA4hwcIgLyEgvO24OEmYHM/1dAZnJyCAvYS3y6 dg/M5hVwlDh1+BULiC0qoCOxev8UFoi4oMTJmU9YIHq1JJZP38YygVFgFpLULCSpBYxMqxhl U3KrdHMTM3OKU5N1i5MT8/JSi3RN9XIzS/RSU0o3MYID0kVpB+PPg0qHGAU4GJV4eDdMWhIi xJpYVlyZe4hRkoNJSZT32cylIUJ8SfkplRmJxRnxRaU5qcWHGCU4mJVEePvkgMp5UxIrq1KL 8mFS0hwsSuK8m37whQgJpCeWpGanphakFsFkZTg4lCR4T4EMFSxKTU+tSMvMKUFIM3Fwggzn ARr+FqSGt7ggMbc4Mx0if4pRUUqcdx1IQgAkkVGaB9cLSxivGMWBXhHmZQSmDyEeYLKB634F NJgJaHD+psUgg0sSEVJSDYxKn04Hr47+GWsZJ8Rpanf/LFOevOUzhcv55atkduvMsDBeJLW/ qOvFKuElq0Ok8+/cb+Ndafj1OMvilwpbHvK1LOvlCgoVDruzRX6ixfwAYeU8uUj5I9zLGWeL xLpmV/7cIDidNyrGb7ms+a8vh6W25NhO/mnyZ774uhJfm0tZfy5uZJh9IVKJpTgj0VCLuag4 EQCetkFM8wIAAA== Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 19:06:53 -0000 Dear FreeBSD Community, Less than a week remains before the deadline for submissions to the next FreeBSD Quarterly Status Report. Submissions are due on January 7, 2015, covering work done in October through December. Status report submissions do not have to be very long. They may be about anything happening in the FreeBSD project and community, and provide a great way to inform FreeBSD users and developers about what you're working on. Submission of reports is not restricted to committers. Anyone doing anything interesting and FreeBSD-related can -- and should -- write one! The preferred and easiest submission method is to use the XML generator [1] with the results emailed to the status report team at monthly at freebsd.org . There is also an XML template [2] which can be filled out manually and attached if preferred. For the expected content and style, please study our guidelines on how to write a good status report [3]. You can also review previous issues [4][5] for ideas on the style and format. We are looking forward to all of your 2014Q4 reports! Thanks, Ben (on behalf of monthly@) [1] http://www.freebsd.org/cgi/monthly.cgi [2] http://www.freebsd.org/news/status/report-sample.xml [3] http://www.freebsd.org/news/status/howto.html [4] http://www.freebsd.org/news/status/report-2014-04-2014-06.html [5] http://www.freebsd.org/news/status/report-2014-07-2014-09.html From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 19:27:27 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5AF9B09; Thu, 1 Jan 2015 19:27:27 +0000 (UTC) Received: from mail.myota.org (mail.myota.org [85.10.206.105]) by mx1.freebsd.org (Postfix) with ESMTP id 58BF464DCC; Thu, 1 Jan 2015 19:27:26 +0000 (UTC) Received: from e181048074.adsl.alicedsl.de (e181048074.adsl.alicedsl.de [85.181.48.74]) (authenticated bits=128) by mail.myota.org (8.14.9/8.14.9) with ESMTP id t01JMKMi018488; Thu, 1 Jan 2015 20:22:26 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: from stationary.client ([192.168.128.2]) by gate.local (8.14.9/8.14.9) with ESMTP id t01JMJcO061422; Thu, 1 Jan 2015 20:22:19 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: from submit.client ([127.0.0.1]) by voyager.local (8.14.9/8.14.8) with ESMTP id t01JMJ1r046661; Thu, 1 Jan 2015 20:22:19 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: (from user@localhost) by voyager.local (8.14.9/8.14.9/Submit) id t01JMJdb046660; Thu, 1 Jan 2015 20:22:19 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Date: Thu, 1 Jan 2015 20:22:19 +0100 From: Andre Albsmeier To: freebsd-x11@freebsd.org, freebsd-hackers@freebsd.org Subject: [PATCH] Fixing panic in vt_fb_blank() if fb_size is not a multiple of fb_stride Message-ID: <20150101192219.GA46601@voyager> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Echelon: Military, CIO, Embassy, Compsec, NSA X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Not delayed on 85.10.206.105, ACL: AUTH(59), Origin: DE, OS: FreeBSD 9.x X-Greylist: Not delayed on 192.168.128.1, ACL: RFC_Nets(54), Origin: , OS: unknown X-Virus-Scanned: clamav-milter 0.98.5 at colo X-Virus-Status: Clean X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 19:27:28 -0000 [Crossposting to -hackers and -x11 as this is vt and i915kms related] I can reliably crash an older notebook (Fujitsu E8310) with Intel graphics (GM965) by loading i915kms after having booted but only if vt(4) is used instead of old syscons. Reason for the crash is a page fault in vt_fb_blank() which is in /sys/dev/vt/hw/fb/vt_fb.c: #7 0xc08c929e in bcopy () at /src/src-9/sys/i386/i386/support.s:198 #8 0xc08d93e0 in memmove (dest=0xedfd3c00, src=0xeda30000, n=5632) at /src/src-9/sys/libkern/memmove.c:36 #9 0xc053fac7 in vt_fb_mem_copy (sc=0xc6919500, offset_to=5913600, offset_from=0, size=5632) at /src/src-9/sys/dev/fb/fbd.c:205 #10 0xc060370e in vt_fb_blank (vd=0xc09c3c40, color=) at /src/src-9/sys/dev/vt/hw/fb/vt_fb.c:179 #11 0xc0603b10 in vt_fb_init (vd=0xc09c3c40) at /src/src-9/sys/dev/vt/hw/fb/vt_fb.c:306 #12 0xc06098db in vt_allocate (drv=0xc09c3b80, softc=0xc6919500) at /src/src-9/sys/dev/vt/vt_core.c:1970 in vt_fb_blank() we find: for (o = info->fb_stride; o < info->fb_size; o += info->fb_stride) { info->copy(info, o, 0, info->fb_stride); } fb_size gets calculated in intelfb_create() which is in /sys/dev/drm2/i915/intel_fb.c as size = mode_cmd.pitches[0] * mode_cmd.height; size = roundup2(size, PAGE_SIZE); with fb_stride being the result of mode_cmd.pitches[0] = roundup2( (mode_cmd.width * ((sizes->surface_bpp + 7) / 8), 64); So with my funky resolution of 1400 x 1050 @32bit we get fb_stride = 5632 fb_size = 5914624 We see that fb_stride won't fit into fb_size in whole numbers (5914624 / 5632 = 1050.18181818181818181818) so this is why the loop runs beyond fb_size and gives a page fault. I am now using this modified loop in vt_fb_blank() which does not try to run to the end of the fb by replacing info->fb_size by info->fb_height * info->fb_stride for (o = info->fb_stride; o < info->fb_height * info->fb_stride; o += info->fb_stride) { info->copy(info, o, 0, info->fb_stride); } All this is on 9.3-STABLE. I have no idea if this is the correct solution but at least I can use vt instead of sc on this notebook. -Andre From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 1 21:34:55 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 927AD604; Thu, 1 Jan 2015 21:34:55 +0000 (UTC) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32097F79; Thu, 1 Jan 2015 21:34:55 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id x13so5652251wgg.12; Thu, 01 Jan 2015 13:34:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=OxUvvoJDvrgopbpJ2FzKVsAWtnYAe0dFOCIc2FW971U=; b=qN1tz2clorO45TdgZX5+O7usvTNwMvcsd030ZjNdfEnbJdMbTqfb8yP8TYti6DPL8C nvUG/KOChmcF+U5P8IQ4JdM9Zi7r4xCJBFagP+EtAzTa5nPg9z2CRckgKOXGlNgKN4Q3 cku9l8ZFfLjhJHzizPPZiZemG9wmpZJyPWHsGEB5sm6IfeIX89rjXNOUIRULoWjc/SGy MySbGcz6Im0N8MDpdX+R26hSNznw8bg1LR76JjPeRxYaGI1x/NSdEj/cGcDqD++SGx9q 9IfNGn7kAmIlGhAdW20s3SzKubMPnk+ya2IIVJjWAapp1PsCoarcueTM/RVB3WBZJRG6 z+Lw== MIME-Version: 1.0 X-Received: by 10.194.5.37 with SMTP id p5mr21546962wjp.20.1420148093461; Thu, 01 Jan 2015 13:34:53 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.195 with HTTP; Thu, 1 Jan 2015 13:34:53 -0800 (PST) In-Reply-To: <20150101192219.GA46601@voyager> References: <20150101192219.GA46601@voyager> Date: Thu, 1 Jan 2015 13:34:53 -0800 X-Google-Sender-Auth: jWolSM7QIqYpgu_y285v0p9hmmY Message-ID: Subject: Re: [PATCH] Fixing panic in vt_fb_blank() if fb_size is not a multiple of fb_stride From: Adrian Chadd To: Andre Albsmeier Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" , freebsd-x11@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 21:34:55 -0000 oh cool! Would you mind filing a PR? This is a pretty nifty find, good work! (https://bugs.freebsd.org/submit/) -adrian On 1 January 2015 at 11:22, Andre Albsmeier wrote: > [Crossposting to -hackers and -x11 as this is vt and i915kms related] > > I can reliably crash an older notebook (Fujitsu E8310) with Intel > graphics (GM965) by loading i915kms after having booted but only > if vt(4) is used instead of old syscons. > > Reason for the crash is a page fault in vt_fb_blank() which is > in /sys/dev/vt/hw/fb/vt_fb.c: > > #7 0xc08c929e in bcopy () at /src/src-9/sys/i386/i386/support.s:198 > #8 0xc08d93e0 in memmove (dest=0xedfd3c00, src=0xeda30000, n=5632) at /src/src-9/sys/libkern/memmove.c:36 > #9 0xc053fac7 in vt_fb_mem_copy (sc=0xc6919500, offset_to=5913600, offset_from=0, size=5632) at /src/src-9/sys/dev/fb/fbd.c:205 > #10 0xc060370e in vt_fb_blank (vd=0xc09c3c40, color=) at /src/src-9/sys/dev/vt/hw/fb/vt_fb.c:179 > #11 0xc0603b10 in vt_fb_init (vd=0xc09c3c40) at /src/src-9/sys/dev/vt/hw/fb/vt_fb.c:306 > #12 0xc06098db in vt_allocate (drv=0xc09c3b80, softc=0xc6919500) at /src/src-9/sys/dev/vt/vt_core.c:1970 > > in vt_fb_blank() we find: > > for (o = info->fb_stride; o < info->fb_size; o += info->fb_stride) { > info->copy(info, o, 0, info->fb_stride); > } > > fb_size gets calculated in intelfb_create() which is in > /sys/dev/drm2/i915/intel_fb.c as > > size = mode_cmd.pitches[0] * mode_cmd.height; > size = roundup2(size, PAGE_SIZE); > > with fb_stride being the result of > > mode_cmd.pitches[0] = roundup2( (mode_cmd.width * ((sizes->surface_bpp + 7) / 8), 64); > > So with my funky resolution of 1400 x 1050 @32bit we get > > fb_stride = 5632 > fb_size = 5914624 > > We see that fb_stride won't fit into fb_size in whole numbers > (5914624 / 5632 = 1050.18181818181818181818) so this is why > the loop runs beyond fb_size and gives a page fault. > > I am now using this modified loop in vt_fb_blank() which does > not try to run to the end of the fb by replacing > > info->fb_size > > by > > info->fb_height * info->fb_stride > > for (o = info->fb_stride; o < info->fb_height * info->fb_stride; o += info->fb_stride) { > info->copy(info, o, 0, info->fb_stride); > } > > All this is on 9.3-STABLE. I have no idea if this is the correct > solution but at least I can use vt instead of sc on this notebook. > > -Andre > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 00:59:10 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0B27C99 for ; Fri, 2 Jan 2015 00:59:10 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DF2E64C98 for ; Fri, 2 Jan 2015 00:59:10 +0000 (UTC) Received: by mail-ig0-f178.google.com with SMTP id a13so4296215igq.17 for ; Thu, 01 Jan 2015 16:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=xoZ1ItJ0qlT+wk2g3RnTfsnUBTnMLHfybyyWyiXmFXU=; b=zT/jd6zJ6LE2Gy5kODYQkcLuxW4B0AuQhM42Gj5PeBDcTz7pSZfY6grZ97tJMpwH7r 180lnc0ZfT2lMO+2GhS52p8MGCz1K0gQJAYBH3eapI4KOjNnjeLnjb3j1xoe5LwbHV1J 8xmifDQwo1lxM+mzZ88RslYzeaOJwDKdUYzE76i0V67VIlBSX8FibD+UqXJgbIQSiLgN UoKqTeBA0OENSi4Y1pFBY8gXvJQ7ucttGx2r5soBi80aLoQ2TwR5ElZHnb7giKeg1o+E fvUW76L8CvZiv/89zExRZjDV/rFDWyb7wZovgKk4cJPsE1NTdDhdndcopjGcxG1iQ7IP UsNg== X-Received: by 10.42.107.211 with SMTP id e19mr54028633icp.27.1420160349851; Thu, 01 Jan 2015 16:59:09 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.0.85 with HTTP; Thu, 1 Jan 2015 16:58:49 -0800 (PST) In-Reply-To: <20150101192219.GA46601@voyager> References: <20150101192219.GA46601@voyager> From: Ed Maste Date: Thu, 1 Jan 2015 19:58:49 -0500 X-Google-Sender-Auth: MPY-Xc3W7ubc-5dxT_llutJxQ1I Message-ID: Subject: Re: [PATCH] Fixing panic in vt_fb_blank() if fb_size is not a multiple of fb_stride To: Andre Albsmeier Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 00:59:11 -0000 On 1 January 2015 at 14:22, Andre Albsmeier wrote: > [Crossposting to -hackers and -x11 as this is vt and i915kms related] > > I can reliably crash an older notebook (Fujitsu E8310) with Intel > graphics (GM965) by loading i915kms after having booted but only > if vt(4) is used instead of old syscons. > > Reason for the crash is a page fault in vt_fb_blank() which is > in /sys/dev/vt/hw/fb/vt_fb.c: > ... > > in vt_fb_blank() we find: > > for (o = info->fb_stride; o < info->fb_size; o += info->fb_stride) { > info->copy(info, o, 0, info->fb_stride); > } Thank you for the report and investigation. This is fixed in HEAD by r268771 and r268796, which rework vt_fb_blank. There are a number of other vt(4) changes that are not in stable/9; I will see if most/all of it may be feasibly merged back, or otherwise commit a change for this problem. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 02:07:17 2015 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 402DE622; Fri, 2 Jan 2015 02:07:17 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 2C52516A1; Fri, 2 Jan 2015 02:07:16 +0000 (UTC) Received: from [10.0.1.110] (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id CFFEB341F854; Thu, 1 Jan 2015 18:07:15 -0800 (PST) Subject: Re: How to make a FreeBSD vm in virtualbox. Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Alfred Perlstein In-Reply-To: Date: Thu, 1 Jan 2015 18:11:02 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <7CF09D63-7784-45ED-AECD-CC4A9A79465A@freebsd.org> References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <54A44974.5080909@freebsd.org> To: Wojciech Puchar X-Mailer: Apple Mail (2.1283) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 02:07:17 -0000 On Jan 1, 2015, at 1:14 AM, Wojciech Puchar wrote: >> I know that. >>=20 >> You know that. >>=20 >> Do non-freebsd people know that? >=20 > so add this in VM image to be ready. >=20 > anyway - is this a right direction for unix system to do everything = for a user (or more precisely - sysadmin) without even knowing? Maybe it is! But I'm not sure dhcp is exactly the slippery slope that = this statement would suggest it is. ;) >=20 > Is FreeBSD heading to compete with GUI linux distros? >=20 >=20 I'm not sure how auto configuring interfaces, particularly in the case = of VMs distributed) leads to a GUI discussion, but in fact we already = do. Have you tried PCBSD? The end goal of this is that anyone can grab a freebsd install and have = it be useful and do work with it without having to know a whole lot = about it. =20 -Alfred= From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 07:23:19 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A9DF87D; Fri, 2 Jan 2015 07:23:19 +0000 (UTC) Received: from mail.myota.org (mail.myota.org [85.10.206.105]) by mx1.freebsd.org (Postfix) with ESMTP id 265AD1248; Fri, 2 Jan 2015 07:23:18 +0000 (UTC) Received: from g229017217.adsl.alicedsl.de (g229017217.adsl.alicedsl.de [92.229.17.217]) (authenticated bits=128) by mail.myota.org (8.14.9/8.14.9) with ESMTP id t027MxmM059688; Fri, 2 Jan 2015 08:23:05 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: from submit.client ([127.0.0.1]) by gate.local (8.14.9/8.14.9) with ESMTP id t027MwGL065837; Fri, 2 Jan 2015 08:22:58 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: (from user@localhost) by gate.local (8.14.9/8.14.9/Submit) id t027MwPh065836; Fri, 2 Jan 2015 08:22:58 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Date: Fri, 2 Jan 2015 08:22:58 +0100 From: Andre Albsmeier To: Ed Maste Subject: Re: [PATCH] Fixing panic in vt_fb_blank() if fb_size is not a multiple of fb_stride Message-ID: <20150102072258.GA65505@gate> References: <20150101192219.GA46601@voyager> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Echelon: 767, Compsec, USSS, MD4, detonator X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Not delayed on 85.10.206.105, ACL: AUTH(59), Origin: DE, OS: FreeBSD 9.x X-Greylist: Not delayed, ACL: localhost(52) X-Virus-Scanned: clamav-milter 0.98.5 at colo X-Virus-Status: Clean Cc: Andre Albsmeier , "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 07:23:19 -0000 On Thu, 01-Jan-2015 at 19:58:49 -0500, Ed Maste wrote: > On 1 January 2015 at 14:22, Andre Albsmeier wrote: > > [Crossposting to -hackers and -x11 as this is vt and i915kms related] > > > > I can reliably crash an older notebook (Fujitsu E8310) with Intel > > graphics (GM965) by loading i915kms after having booted but only > > if vt(4) is used instead of old syscons. > > > > Reason for the crash is a page fault in vt_fb_blank() which is > > in /sys/dev/vt/hw/fb/vt_fb.c: > > > ... > > > > in vt_fb_blank() we find: > > > > for (o = info->fb_stride; o < info->fb_size; o += info->fb_stride) { > > info->copy(info, o, 0, info->fb_stride); > > } > > Thank you for the report and investigation. This is fixed in HEAD by > r268771 and r268796, which rework vt_fb_blank. There are a number of I should have looked there instead of wasting 3 hours debugging that ;-). But at least I did something against my clumsiness in debugging KLDs... > other vt(4) changes that are not in stable/9; I will see if most/all Right ;-) One thing is the ALT_BREAK_TO_DEBUGGER feature: http://lists.freebsd.org/pipermail/freebsd-hackers/2014-December/046682.html And we also need this one: http://lists.freebsd.org/pipermail/svn-src-all/2014-December/095666.html > of it may be feasibly merged back, or otherwise commit a change for > this problem. That would be great, thanks. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 07:26:40 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFE979A2; Fri, 2 Jan 2015 07:26:40 +0000 (UTC) Received: from mail.myota.org (mail.myota.org [85.10.206.105]) by mx1.freebsd.org (Postfix) with ESMTP id 623C11294; Fri, 2 Jan 2015 07:26:39 +0000 (UTC) Received: from g229017217.adsl.alicedsl.de (g229017217.adsl.alicedsl.de [92.229.17.217]) (authenticated bits=128) by mail.myota.org (8.14.9/8.14.9) with ESMTP id t027QKwK059692; Fri, 2 Jan 2015 08:26:26 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: from submit.client ([127.0.0.1]) by gate.local (8.14.9/8.14.9) with ESMTP id t027QKDx065869; Fri, 2 Jan 2015 08:26:20 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Received: (from user@localhost) by gate.local (8.14.9/8.14.9/Submit) id t027QKqU065868; Fri, 2 Jan 2015 08:26:20 +0100 (CET) (envelope-from andre@fbsd.ata.myota.org) Date: Fri, 2 Jan 2015 08:26:20 +0100 From: Andre Albsmeier To: Adrian Chadd Subject: Re: [PATCH] Fixing panic in vt_fb_blank() if fb_size is not a multiple of fb_stride Message-ID: <20150102072620.GB65505@gate> References: <20150101192219.GA46601@voyager> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Echelon: 767, Compsec, USSS, MD4, detonator X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Not delayed on 85.10.206.105, ACL: AUTH(59), Origin: DE, OS: FreeBSD 9.x X-Greylist: Not delayed, ACL: localhost(52) X-Virus-Scanned: clamav-milter 0.98.5 at colo X-Virus-Status: Clean Cc: Andre Albsmeier , freebsd-x11@freebsd.org, "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 07:26:41 -0000 On Thu, 01-Jan-2015 at 13:34:53 -0800, Adrian Chadd wrote: > oh cool! > > Would you mind filing a PR? This is a pretty nifty find, good work! Thanks ;-) Given the fact that emaste@ apparently fixed that in -head already do you think the PR is still needed (for documentation purposes or otherwise)? -Andre > > On 1 January 2015 at 11:22, Andre Albsmeier wrote: > > [Crossposting to -hackers and -x11 as this is vt and i915kms related] > > > > I can reliably crash an older notebook (Fujitsu E8310) with Intel > > graphics (GM965) by loading i915kms after having booted but only > > if vt(4) is used instead of old syscons. > > > > Reason for the crash is a page fault in vt_fb_blank() which is > > in /sys/dev/vt/hw/fb/vt_fb.c: > > > > #7 0xc08c929e in bcopy () at /src/src-9/sys/i386/i386/support.s:198 > > #8 0xc08d93e0 in memmove (dest=0xedfd3c00, src=0xeda30000, n=5632) at /src/src-9/sys/libkern/memmove.c:36 > > #9 0xc053fac7 in vt_fb_mem_copy (sc=0xc6919500, offset_to=5913600, offset_from=0, size=5632) at /src/src-9/sys/dev/fb/fbd.c:205 > > #10 0xc060370e in vt_fb_blank (vd=0xc09c3c40, color=) at /src/src-9/sys/dev/vt/hw/fb/vt_fb.c:179 > > #11 0xc0603b10 in vt_fb_init (vd=0xc09c3c40) at /src/src-9/sys/dev/vt/hw/fb/vt_fb.c:306 > > #12 0xc06098db in vt_allocate (drv=0xc09c3b80, softc=0xc6919500) at /src/src-9/sys/dev/vt/vt_core.c:1970 > > > > in vt_fb_blank() we find: > > > > for (o = info->fb_stride; o < info->fb_size; o += info->fb_stride) { > > info->copy(info, o, 0, info->fb_stride); > > } > > > > fb_size gets calculated in intelfb_create() which is in > > /sys/dev/drm2/i915/intel_fb.c as > > > > size = mode_cmd.pitches[0] * mode_cmd.height; > > size = roundup2(size, PAGE_SIZE); > > > > with fb_stride being the result of > > > > mode_cmd.pitches[0] = roundup2( (mode_cmd.width * ((sizes->surface_bpp + 7) / 8), 64); > > > > So with my funky resolution of 1400 x 1050 @32bit we get > > > > fb_stride = 5632 > > fb_size = 5914624 > > > > We see that fb_stride won't fit into fb_size in whole numbers > > (5914624 / 5632 = 1050.18181818181818181818) so this is why > > the loop runs beyond fb_size and gives a page fault. > > > > I am now using this modified loop in vt_fb_blank() which does > > not try to run to the end of the fb by replacing > > > > info->fb_size > > > > by > > > > info->fb_height * info->fb_stride > > > > for (o = info->fb_stride; o < info->fb_height * info->fb_stride; o += info->fb_stride) { > > info->copy(info, o, 0, info->fb_stride); > > } > > > > All this is on 9.3-STABLE. I have no idea if this is the correct > > solution but at least I can use vt instead of sc on this notebook. > > > > -Andre > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- The day Micro$oft makes a product that doesn't suck is the day they make a vacuum cleaner. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 09:38:34 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C5B2F70; Fri, 2 Jan 2015 09:38:34 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C77011BA; Fri, 2 Jan 2015 09:38:33 +0000 (UTC) Received: from Julian-MBP3.local (ppp121-45-233-252.lns20.per1.internode.on.net [121.45.233.252]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t029cSm2084191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 2 Jan 2015 01:38:31 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <54A6670E.8060302@freebsd.org> Date: Fri, 02 Jan 2015 17:38:22 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Allan Jude , freebsd-hackers@freebsd.org Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231180639.GE43180@ivaldir.etoilebsd.net> <54A43D56.4030306@freebsd.org> In-Reply-To: <54A43D56.4030306@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 09:38:34 -0000 On 1/1/15 2:15 AM, Allan Jude wrote: > I was going to say, I thought a .ova file was just a .tar of the > .vmdk and a .xml config file It doesn't seem like virtualbox would > be required if the .xml file was generated and then checked into the > tree that makes sense... The bit that I'd like to see is some wiki page that details all the options you need fo rall the differnet hypervisors.. I know some share drives (e.g. bhyve and whatever else uses the same drivers) but from my hunting the information is not all in one concise place.. in some table. (if it exists I just haven't found it yet..) From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 09:39:20 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02636E2; Fri, 2 Jan 2015 09:39:20 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C7B8F11E7; Fri, 2 Jan 2015 09:39:19 +0000 (UTC) Received: from Julian-MBP3.local (ppp121-45-233-252.lns20.per1.internode.on.net [121.45.233.252]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t029dFNd084197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 2 Jan 2015 01:39:17 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <54A6673E.1020002@freebsd.org> Date: Fri, 02 Jan 2015 17:39:10 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Allan Jude , freebsd-hackers@freebsd.org Subject: Re: How to make a FreeBSD vm in virtualbox. References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> <20141231042455.GB53230@hub.FreeBSD.org> <24520431-8E2A-4D70-BD2D-D8D76A98C762@freebsd.org> <20141231151723.GA75959@hub.FreeBSD.org> <20141231180639.GE43180@ivaldir.etoilebsd.net> <54A43D56.4030306@freebsd.org> In-Reply-To: <54A43D56.4030306@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 09:39:20 -0000 On 1/1/15 2:15 AM, Allan Jude wrote: > I was going to say, I thought a .ova file was just a .tar of the > .vmdk and a .xml config file It doesn't seem like virtualbox would > be required if the .xml file was generated and then checked into the > tree that makes sense... The bit that I'd like to see is some wiki page that details all the options you need for all the different hypervisors.. I know some share drivers (e.g. bhyve and whatever else uses the same drivers) but from my hunting, the information is not all in one concise place.. in some table. (if it exists I just haven't found it yet..) From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 15:28:52 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E2E9242; Fri, 2 Jan 2015 15:28:52 +0000 (UTC) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12D3E66151; Fri, 2 Jan 2015 15:28:51 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id et14so24367042pad.3; Fri, 02 Jan 2015 07:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=rXKgW3/BrL5XSPkKlFtwU5nP5DRl2GGbXA12Am3xEr0=; b=nfIYfncDXHUb/ul1Je/HMtYTmgIr2XnEvNSRJomthVqVtV2bESvjIAnzJqdyPvHiAN wK32tqb3Zec6U36/U4iIJEAFwnGSZ7nnIFBMhcmK9luyQuHZxUlAAqZTr6ZiUqDqhUwG cMPKPQxjPWhfFhAAU58AN4tMKLENCcP/sVZH9QkLc05m7Cn4i7JBJsWdeq3yc9bwEQxt ZwauGmq/4QMYuDCRKzddT82T5Orzj6iDBGXUrqQAYAu05I1Id7sbK265P6D0ub8cFGPs BH5ULtltcgIUvjfbCbQhxVYeCaNlp8BB2EZzbIr2MyREPPGplX/LM5//PG1jZGh/nCH+ foBw== X-Received: by 10.66.249.99 with SMTP id yt3mr110987112pac.59.1420212531532; Fri, 02 Jan 2015 07:28:51 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:9169:6ee3:34aa:95ad? ([2601:8:ab80:7d6:9169:6ee3:34aa:95ad]) by mx.google.com with ESMTPSA id pv3sm46833877pbb.56.2015.01.02.07.28.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Jan 2015 07:28:50 -0800 (PST) References: <20150101192219.GA46601@voyager> <20150102072620.GB65505@gate> Mime-Version: 1.0 (1.0) In-Reply-To: <20150102072620.GB65505@gate> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <9F362787-EC79-4ADC-B414-4EDBF592B868@gmail.com> X-Mailer: iPhone Mail (12B440) From: Garrett Cooper Subject: Re: [PATCH] Fixing panic in vt_fb_blank() if fb_size is not a multiple of fb_stride Date: Fri, 2 Jan 2015 07:28:46 -0800 To: Andre Albsmeier Cc: "freebsd-hackers@freebsd.org" , Adrian Chadd , "freebsd-x11@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 15:28:52 -0000 > On Jan 1, 2015, at 23:26, Andre Albsmeier wrote: > >> On Thu, 01-Jan-2015 at 13:34:53 -0800, Adrian Chadd wrote: >> oh cool! >> >> Would you mind filing a PR? This is a pretty nifty find, good work! > > Thanks ;-) Given the fact that emaste@ apparently fixed that in > -head already do you think the PR is still needed (for documentation > purposes or otherwise)? The status should be changed to In-Progress and the appropriate MFC keywords should be added to the bug. Cheers! From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 15:41:15 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 366AC734 for ; Fri, 2 Jan 2015 15:41:15 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 07D6C66309 for ; Fri, 2 Jan 2015 15:41:14 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A299C2099D for ; Fri, 2 Jan 2015 10:41:13 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute3.internal (MEProxy); Fri, 02 Jan 2015 10:41:13 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=sqW8NgmXrce7QMYnpKgnZ0ro JFM=; b=P/YAUMuZ3TCkavZS6yRJnLCSic4It4R+496koq4aOxrbDu+yeN78Tne3 Pvtmn6mNUxg2uPa9BHc3Kp/0i9kBHpgvdVeLzmYoSAIWGx3lXLOs4ZG9PE9ArFiu GJa+j7PzgQJ3REoNrSjqxb879lwm+xW5k8iGJwz9wSraJiWdswU= Received: by web3.nyi.internal (Postfix, from userid 99) id 7A816112D8D; Fri, 2 Jan 2015 10:41:13 -0500 (EST) Message-Id: <1420213273.622796.208841861.04300699@webmail.messagingengine.com> X-Sasl-Enc: TeLgYx5MqjFPbvtnWyNmTqda0O9hwur14x204Zyk88+z 1420213273 From: Mark Felder To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-0b895a96 In-Reply-To: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall Date: Fri, 02 Jan 2015 09:41:13 -0600 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 15:41:15 -0000 UPDATE: I have everything working except QoS, so thanks for the 6rd gif tunnel workaround Nathan. ALTQ being absent from GENERIC is another sore spot that should be investigated. I've been encouraged to use ipfw and dummynet, but converting my firewall rules again is not something I'm enthusiastic about. I'll note that FreeBSD is often praised for including pf while ipfw is completely overlooked; our own Handbook even puts pf before ipfw. That certainly sends a message that we may not be intending to send and should be considered carefully. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 16:53:37 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 537F85DF; Fri, 2 Jan 2015 16:53:37 +0000 (UTC) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D50FB1D60; Fri, 2 Jan 2015 16:53:36 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id u56so4742257wes.16; Fri, 02 Jan 2015 08:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=FwyOTiNWNVty8e339TSGAG2X7xDgOiui5LGZ3BmcVfM=; b=yxMMPf5eWLJSkjFfFVwGXAAeeW/3pKUIe8XjT43rWV/CfQh2j0wu5HzCUTj/dIq922 K1Veka7NKkISBqrBaNe48KfrkPAbpDKgSfK2i3FDKID7culS9EzBD7LJFxsRoek057rH wrxKsBmZaRjM1AaLIlMJUmxuayGG9AgsuRVJVkpHnp0f5vQePlKilSIIplx4Hoo20DHt Va7urX470fQN6c+Qdi0NOtVhbfK++hUHs98rQRA9wz66NzeQHWbrmtERZ6iOcVikTzEi Qmt1RjhhSPNTmn/NTf70amqGODJEo3NImcBANsx9lM1XVNRpxm5gyavvDsGAhbxUdRU5 BL8w== MIME-Version: 1.0 X-Received: by 10.180.87.36 with SMTP id u4mr132813187wiz.20.1420217614940; Fri, 02 Jan 2015 08:53:34 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Fri, 2 Jan 2015 08:53:34 -0800 (PST) In-Reply-To: <1420213273.622796.208841861.04300699@webmail.messagingengine.com> References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> <1420213273.622796.208841861.04300699@webmail.messagingengine.com> Date: Fri, 2 Jan 2015 08:53:34 -0800 X-Google-Sender-Auth: 0LCd7GzYfP5VZjR5YNWsS3OVZjg Message-ID: Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall From: Adrian Chadd To: Mark Felder Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 16:53:37 -0000 On 2 January 2015 at 07:41, Mark Felder wrote: > UPDATE: > > I have everything working except QoS, so thanks for the 6rd gif tunnel > workaround Nathan. ALTQ being absent from GENERIC is another sore spot > that should be investigated. I'm waiting for Gleb to do up his ifnet changes so we can do ninja replacements of altq with something that won't cause massive normal performance problems even if it's not being used. (altq isn't compatible with the if_transmit method of doing transmit handling, so drivers that support altq end up implementing the older if_start method - that's a single queue and simply locked. It just doesn't work well for 10g and above. > I've been encouraged to use ipfw and dummynet, but converting my > firewall rules again is not something I'm enthusiastic about. I'll note > that FreeBSD is often praised for including pf while ipfw is completely > overlooked; our own Handbook even puts pf before ipfw. That certainly > sends a message that we may not be intending to send and should be > considered carefully. Well, I bet the handbook updates were written by a pf-loving person. :) ipfw is pretty awesome today. -adrian From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 16:58:54 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 62201955 for ; Fri, 2 Jan 2015 16:58:54 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 314BA1DE4 for ; Fri, 2 Jan 2015 16:58:53 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 05DA2209C7 for ; Fri, 2 Jan 2015 11:58:52 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute4.internal (MEProxy); Fri, 02 Jan 2015 11:58:52 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to:cc :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=i30337/UR6sypzDo9ZmcxYRF p7Q=; b=CtlTc7SacxHUPYeLfSl+6qnFn+C79wZoFoR9BPAw/blaJcJuNmkUTtfZ 63AGB5E7DL94dIuM3ZJjL5HrZR162LhXrH7MXIm4Hu1u82QqnWbf2ZuKyYmBA/T0 10braXZiVrtfGgrsbXpOaXDihPeuRMlTbu+prwB/Bz+oNN/L/1E= Received: by web3.nyi.internal (Postfix, from userid 99) id C45F4112F8F; Fri, 2 Jan 2015 11:58:51 -0500 (EST) Message-Id: <1420217931.644299.208866757.1E61E223@webmail.messagingengine.com> X-Sasl-Enc: icvDBs4s6GzRKdDYSK+cQRJVYLS+0J+DcOtnOmCtJ0lf 1420217931 From: Mark Felder To: Adrian Chadd MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-0b895a96 In-Reply-To: References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> <1420213273.622796.208841861.04300699@webmail.messagingengine.com> Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall Date: Fri, 02 Jan 2015 10:58:51 -0600 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 16:58:54 -0000 On Fri, Jan 2, 2015, at 10:53, Adrian Chadd wrote: > > Well, I bet the handbook updates were written by a pf-loving person. :) > > ipfw is pretty awesome today. > Statements like this send me on a quest to master something new. Stop it. :-) From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 17:53:47 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D1FCD94; Fri, 2 Jan 2015 17:53:47 +0000 (UTC) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB4E26662F; Fri, 2 Jan 2015 17:53:46 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id q58so4780290wes.4; Fri, 02 Jan 2015 09:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=qVOCm85f10rFJKKw44BlN4+O5ZicUvLT9aR72R4Mh/0=; b=FKNe2mG2pT10ZiyHAkuyYT/SlT088gjP1CB6ex5zzDWbmGqHLpySVl0VF89ShrSfZq dCdMzHKdCduH5xx8JUaaqCwjddnhFdyKJchlaZQpdBVixQyPHNNhFnNyTv4PZKY1GXLA HAzPoIYw4D5lzgMBLRnR3pBQJvIWswCiwXMfBluPVOmdS0Uk6+BIchk3Ek26RIQwAeQs yJKNcsanFPLDgT9KQY3GdzcmLSBwLDURjyZlt4Z8Kl0XYKv+XiB90uRD4e6xzfdD8xAD QqIh14aheMRiwsTqaZNCjleDY78PiDZqgez09ivCs8msSu6zBbBmv4Fy9wcG6NonjRYi i2sA== MIME-Version: 1.0 X-Received: by 10.180.7.198 with SMTP id l6mr136547292wia.26.1420221224266; Fri, 02 Jan 2015 09:53:44 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Fri, 2 Jan 2015 09:53:44 -0800 (PST) In-Reply-To: <1420217931.644299.208866757.1E61E223@webmail.messagingengine.com> References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> <1420213273.622796.208841861.04300699@webmail.messagingengine.com> <1420217931.644299.208866757.1E61E223@webmail.messagingengine.com> Date: Fri, 2 Jan 2015 09:53:44 -0800 X-Google-Sender-Auth: HsAsyKJ15S_-QDek2U0Pxm3PBOk Message-ID: Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall From: Adrian Chadd To: Mark Felder Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 17:53:47 -0000 On 2 January 2015 at 08:58, Mark Felder wrote: > > > On Fri, Jan 2, 2015, at 10:53, Adrian Chadd wrote: >> >> Well, I bet the handbook updates were written by a pf-loving person. :) >> >> ipfw is pretty awesome today. >> > > Statements like this send me on a quest to master something new. Stop > it. :-) Pish. :) -adrian From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 18:17:21 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6ED8F481; Fri, 2 Jan 2015 18:17:21 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 46C1B1821; Fri, 2 Jan 2015 18:17:21 +0000 (UTC) Received: by be-well.ilk.org (Postfix, from userid 1147) id AD75933C22; Fri, 2 Jan 2015 13:08:21 -0500 (EST) From: Lowell Gilbert To: Adrian Chadd Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> <1420213273.622796.208841861.04300699@webmail.messagingengine.com> Date: Fri, 02 Jan 2015 13:08:21 -0500 In-Reply-To: (Adrian Chadd's message of "Fri, 2 Jan 2015 08:53:34 -0800") Message-ID: <44387tcay2.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 18:17:21 -0000 Adrian Chadd writes: > On 2 January 2015 at 07:41, Mark Felder wrote: >> I've been encouraged to use ipfw and dummynet, but converting my >> firewall rules again is not something I'm enthusiastic about. I'll note >> that FreeBSD is often praised for including pf while ipfw is completely >> overlooked; our own Handbook even puts pf before ipfw. That certainly >> sends a message that we may not be intending to send and should be >> considered carefully. > > Well, I bet the handbook updates were written by a pf-loving person. :) I just took a quick look at that Handbook chapter (for the first time in quite a few years), and I didn't notice anything I'd consider a problem. All three firewalls are mentioned and (*very* lightly) compared in the Synopsis that begins the chapter. pf does come before ipfw, but *something* has to come first; it's not like anyone would go for a suggestion like periodically re-ordering the sections... From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 18:40:53 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E92AD67; Fri, 2 Jan 2015 18:40:53 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 067341C91; Fri, 2 Jan 2015 18:40:52 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id t02IepIX017135; Fri, 2 Jan 2015 13:40:51 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <54A6E60B.5060000@sentex.net> Date: Fri, 02 Jan 2015 13:40:11 -0500 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> <1420213273.622796.208841861.04300699@webmail.messagingengine.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 18:40:53 -0000 On 1/2/2015 11:53 AM, Adrian Chadd wrote: > On 2 January 2015 at 07:41, Mark Felder wrote: >> UPDATE: >> >> I have everything working except QoS, so thanks for the 6rd gif tunnel >> workaround Nathan. ALTQ being absent from GENERIC is another sore spot >> that should be investigated. > > I'm waiting for Gleb to do up his ifnet changes so we can do ninja > replacements of altq with something that won't cause massive normal > performance problems even if it's not being used. What is to replace pf+altq ? pf+DUMMYNET ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 19:17:56 2015 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2C5957A; Fri, 2 Jan 2015 19:17:55 +0000 (UTC) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C0CB86428E; Fri, 2 Jan 2015 19:17:54 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id t02J3Aqw057269; Fri, 2 Jan 2015 19:03:10 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.102] (gateway.kientzle.com [192.168.1.65]) by kientzle.com with SMTP id yeh7zr3rfr9zuu378xxa9dquc2; Fri, 02 Jan 2015 19:03:10 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: How to make a FreeBSD vm in virtualbox. From: Tim Kientzle In-Reply-To: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> Date: Fri, 2 Jan 2015 11:03:10 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <13C55A7B-4010-40FA-901B-DF8ED6BADD87@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1993) Cc: Ryan Kois , hackers@freebsd.org, re@freebsd.org, Claudia Yadathi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 19:17:56 -0000 > On Dec 30, 2014, at 7:42 PM, Alfred Perlstein = wrote: >=20 > Hello Release engineering team & hackers, >=20 > Ryan (cc'd) did some work on the recent FreeBSD vms that were = released. >=20 > Ryan is working at Norse with us and using FreeBSD now. His = background is backend development in io.js, node.js and php on Linux. >=20 > He's now trying to get io.js working on FreeBSD. >=20 > In doing so he wanted to setup a VM, so he downloaded the vmdk and = created a blog post on what was needed to be done in order to get it = working under virtualbox. That blog is here:=20 >=20 > = http://blog.kidicarus.cool/blog/2014/12/24/freebsd-guest-on-mac-osx-host-v= ia-virtualbox/ >=20 > After he linked it to me, I decided that it would make sense if this = was scripted and would really make sense as part of the release process. Crochet has had support (for about a year now) for building VMWare = images directly (the full image, not just the vmdk). Such images can be = booted directly in Fusion with no extra effort. For a while, I used = that to upgrade my FreeBSD dev environment (build a new image with = appropriate password and an fstab that NFS mounts all the home and = source directories) rather than doing in-place source upgrades. If anyone wants to rip that code out into a separate tool that accepts a = pre-built vmdk, the code is pretty self-contained: = https://github.com/kientzle/crochet-freebsd/tree/master/board/VMWareGuest I also looked at generating Parallels images but the format is = undocumented and considerably more complex. Never looked at .ova. Tim From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 2 21:28:55 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77E3E477; Fri, 2 Jan 2015 21:28:55 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 234B718FD; Fri, 2 Jan 2015 21:28:55 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id t02LSpqn075735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 2 Jan 2015 14:28:52 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id t02LSp4P075732; Fri, 2 Jan 2015 14:28:51 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Fri, 2 Jan 2015 14:28:51 -0700 (MST) From: Warren Block To: Lowell Gilbert Subject: Re: [FreeBSD 11 Wishlist] Replacing an OpenBSD Firewall In-Reply-To: <44387tcay2.fsf@be-well.ilk.org> Message-ID: References: <1419995051.3716640.208176841.1676669A@webmail.messagingengine.com> <1420213273.622796.208841861.04300699@webmail.messagingengine.com> <44387tcay2.fsf@be-well.ilk.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 02 Jan 2015 14:28:52 -0700 (MST) Cc: "freebsd-hackers@freebsd.org" , Adrian Chadd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2015 21:28:55 -0000 On Fri, 2 Jan 2015, Lowell Gilbert wrote: > Adrian Chadd writes: > >> On 2 January 2015 at 07:41, Mark Felder wrote: >>> I've been encouraged to use ipfw and dummynet, but converting my >>> firewall rules again is not something I'm enthusiastic about. I'll note >>> that FreeBSD is often praised for including pf while ipfw is completely >>> overlooked; our own Handbook even puts pf before ipfw. That certainly >>> sends a message that we may not be intending to send and should be >>> considered carefully. >> >> Well, I bet the handbook updates were written by a pf-loving person. :) > > I just took a quick look at that Handbook chapter (for the first time in > quite a few years), and I didn't notice anything I'd consider a > problem. All three firewalls are mentioned and (*very* lightly) compared > in the Synopsis that begins the chapter. pf does come before ipfw, but > *something* has to come first; it's not like anyone would go for a > suggestion like periodically re-ordering the sections... Before the reorganization, I think ipf was first. (And we were so close to losing it altogether...) From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 3 15:37:36 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1CAA4DC6 for ; Sat, 3 Jan 2015 15:37:36 +0000 (UTC) Received: from COL004-OMC2S13.hotmail.com (col004-omc2s13.hotmail.com [65.55.34.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E38AF2956 for ; Sat, 3 Jan 2015 15:37:35 +0000 (UTC) Received: from COL127-W17 ([65.55.34.73]) by COL004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sat, 3 Jan 2015 07:37:34 -0800 X-TMN: [3EBqQm6eGpHuxSASb6V1wZv+BH3xA4oR] X-Originating-Email: [victorfranlopes@outlook.com] Message-ID: From: =?iso-8859-1?B?VmljdG9yIEZyYW7nYQ==?= To: "freebsd-hackers@freebsd.org" Subject: kqueue nonblocking socket timeout with siege Date: Sat, 3 Jan 2015 18:37:34 +0300 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 03 Jan 2015 15:37:34.0793 (UTC) FILETIME=[32053390:01D0276B] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 15:37:36 -0000 I'm trying to create a server that works with multiple connections using kq= ueue. After much research=2C I developed my code to test the technology.=20 So I started testing with the siege=2C however=2C after an average of 300 r= equests=2C the server begins to become unstable=2C sometimes the siege poin= ts timeout=2C sometimes it can get the answer. =0A= I 'm using the g ++ to compile. =0A= Here is my code. #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= #include =0A= =0A= using namespace std=3B=0A= =0A= struct client_s {=0A= int fd=3B=0A= int type=3B=0A= socklen_t addrlen=3B=0A= struct sockaddr addr=3B=0A= int bufflen=3B=0A= }=3B=0A= =0A= int main (int argc=2C char *argv[]) {=0A= =0A= int portN=2C sockFD=2C sockOPT=2C eveCT=2C optRET=2C bindRET=2C listenR= ET=2C kernelQUE=2C nev=2C connectionFlags=2C numBT=3B=0A= struct sockaddr_in sockADDR=3B=0A= struct kevent events[2]=3B=0A= struct kevent changes[2]=3B=0A= =0A= if (argc < 2) {=0A= cerr << "Argument required: [port]" << endl=3B =0A= return -1=3B=0A= }=0A= =0A= portN =3D atoi(argv[1])=3B=0A= =0A= sockFD =3D socket(AF_INET=2C SOCK_STREAM | SOCK_NONBLOCK=2C IPPROTO_TCP= )=3B=0A= =0A= if (sockFD < 0) {=0A= cerr << "Error while opening socket: " << strerror(errno) << endl= =3B=0A= return -1=3B=0A= } else=0A= clog << "Socket openend. Nonblock socket defined." << endl=3B=0A= =0A= sockOPT =3D 1=3B=0A= =0A= optRET =3D setsockopt(sockFD=2C SOL_SOCKET=2C SO_REUSEADDR=2C &sockOPT= =2C sizeof(sockOPT))=3B // Avoid TIME_WAIT=0A= if (optRET < 0) {=0A= cerr << "Error while setting flag SO_REUSEADDR: " << strerror(errno= ) << endl=3B=0A= return -1=3B=0A= } else=0A= clog << "SO_REUSEADDR flag ok." << endl=3B=0A= =0A= optRET =3D setsockopt(sockFD=2C IPPROTO_TCP=2C TCP_NODELAY=2C &sockOPT= =2C sizeof(sockOPT))=3B // Avoid socket buffer=0A= if (optRET < 0) {=0A= cerr << "Error while setting flag TCP_NODELAY: " << strerror(errno)= << endl=3B=0A= return -1=3B=0A= } else=0A= clog << "TCP_NODELAY flag ok." << endl=3B=0A= =0A= memset(&sockADDR=2C 0=2C sizeof(struct sockaddr_in))=3B=0A= =0A= sockADDR.sin_family =3D AF_INET=3B=0A= sockADDR.sin_port =3D htons(portN)=3B=0A= sockADDR.sin_addr.s_addr =3D INADDR_ANY=3B=0A= =0A= bindRET =3D bind(sockFD=2C (struct sockaddr*)&sockADDR=2C sizeof(sockAD= DR))=3B=0A= =0A= if (bindRET < 0) {=0A= cerr << "Error while binding socket: " << strerror(errno) << endl= =3B=0A= return -1=3B=0A= } else=0A= clog << "Socket binded." << endl=3B=0A= =0A= listenRET =3D listen(sockFD=2C 1000)=3B=0A= =0A= if (listenRET < 0) {=0A= cerr << "Error while start listening the port: " << strerror(errno)= << endl=3B=0A= return -1=3B=0A= } else=0A= clog << "Socket is listening the port " << argv[1] << endl=3B=0A= =0A= kernelQUE =3D kqueue()=3B=0A= =0A= if (kernelQUE < 0) {=0A= cerr << "Error on creating kqueue." << endl=3B=0A= return -1=3B=0A= } else=0A= clog << "Starting kernel queue." << endl=3B=0A= =0A= memset(events=2C 0=2C sizeof(events))=3B=0A= memset(changes=2C 0=2C sizeof(changes))=3B=0A= =0A= EV_SET(&changes[0]=2C sockFD=2C EVFILT_READ=2C EV_ADD | EV_ENABLE=2C 0= =2C 0=2C 0)=3B=0A= =0A= eveCT =3D 1=3B=0A= for (=3B=3B) {=0A= =0A= nev =3D kevent(kernelQUE=2C changes=2C eveCT=2C events=2C eveCT=2C = NULL)=3B=0A= =0A= if (nev < 0) {=0A= cerr << "Error resolving event." << endl=3B=0A= return -1=3B=0A= }=0A= =0A= for (int i =3D 0=3Bi <=3D nev=3B i++) {=0A= struct client_s * client =3D static_cast(malloc(siz= eof(struct client_s)))=3B=0A= =0A= if (events[i].ident =3D=3D sockFD && events[i].filter =3D=3D EV= FILT_READ) {=0A= client->fd =3D accept4(sockFD=2C &client->addr=2C &client->= addrlen=2C SOCK_NONBLOCK)=3B=0A= =0A= if (client->fd < 0) {=0A= cerr << "Error while accepting new connection." << stre= rror(errno) << endl=3B=0A= free(client)=3B=0A= } else {=0A= client->type =3D 2=3B=0A= client->bufflen =3D 0=3B =0A= EV_SET(&changes[1]=2C client->fd=2C EVFILT_READ=2C EV_A= DD | EV_ENABLE=2C 0=2C 0=2C client)=3B=0A= eveCT=3D2=3B=0A= }=0A= }=0A= =0A= if (events[i].filter =3D=3D EVFILT_READ && events[i].udata && e= vents[i].data > 0) {=0A= client =3D static_cast(events[i].udata)=3B=0A= if (client->type =3D=3D 2) {=0A= =0A= client->type++=3B=0A= char *buffer =3D new char[events[i].data]=3B=0A= client->bufflen =3D events[i].data=3B=0A= numBT =3D recv(client->fd=2C buffer=2C events[i].data= =2C 0)=3B=0A= delete[] buffer=3B=0A= if (numBT =3D=3D events[i].data) {=0A= EV_SET(&changes[1]=2C client->fd=2C EVFILT_READ=2C = EV_DISABLE=2C 0=2C 0=2C 0)=3B=0A= kevent(kernelQUE=2C &changes[1]=2C 1=2C NULL=2C 0= =2C 0)=3B =0A= EV_SET(&changes[1]=2C client->fd=2C EVFILT_WRITE=2C= EV_ADD | EV_ENABLE=2C 0=2C 0=2C client)=3B=0A= } else=0A= cerr << "Error while reading." << strerror(errno) <= < endl=3B=0A= }=0A= } else if (events[i].filter =3D=3D EVFILT_WRITE && events[i].ud= ata) {=0A= client =3D static_cast(events[i].udata)=3B=0A= if (client->type =3D=3D 3) { =0A= string query("HTTP/1.1 200 OK\r\n\r\nKernel events=2C b= aby!"=3B)=3B=0A= numBT =3D send(client->fd=2C query.c_str()=2C query.siz= e()=2C 0)=3B=0A= if (numBT =3D=3D query.size()) {=0A= EV_SET(&changes[1]=2C client->fd=2C EVFILT_WRITE=2C= EV_DISABLE=2C 0=2C 0=2C 0)=3B=0A= kevent(kernelQUE=2C &changes[1]=2C 1=2C NULL=2C 0= =2C 0)=3B=0A= memset(&changes[1]=2C 0=2C sizeof(struct kevent))= =3B=0A= shutdown(client->fd=2C SHUT_RDWR)=3B=0A= close(client->fd)=3B=0A= free(client)=3B=0A= eveCT=3D1=3B=0A= } else=0A= cerr << "Error while writing." << strerror(errno) <= < endl=3B=0A= }=0A= }=0A= }=0A= }=0A= =0A= shutdown(sockFD=2C SHUT_RDWR)=3B=0A= close(sockFD)=3B=0A= =0A= return 0=3B=0A= } =