Installing packages on nanoBSD?
-
Is the the underlying bug going to be fixed by the time 2.0 is released, or is this something we're going to have to deal with until 2.1 or so?
On the surface, this sounds like it should be trivial to fix, unless there's a complex backstory to this whole thing.
Heck, makes me wonder why the Hacom people do a workaround, rather than just fixing the bug. Of course I also wonder why I need to use the Hacom version to get a VGA console on a nanoBSD version ;)Ronald
-
Is the the underlying bug going to be fixed by the time 2.0 is released, or is this something we're going to have to deal with until 2.1 or so?
Hopefully.
On the surface, this sounds like it should be trivial to fix […]
It's not.
[…] unless there's a complex backstory to this whole thing.
There is.
Heck, makes me wonder why the Hacom people do a workaround, rather than just fixing the bug. Of course I also wonder why I need to use the Hacom version to get a VGA console on a nanoBSD version ;)
-
Heck, makes me wonder why the Hacom people do a workaround, rather than just fixing the bug. Of course I also wonder why I need to use the Hacom version to get a VGA console on a nanoBSD version ;)
Wow. Nobody mentioned these in the context of the thread that eventually pointed me to the hacom versions… (unless I was asleep).
...of course, the one thing the hacom versions have: an amd64 variety, any plans for that? Things like crypto, etc. should be quite a bit faster when using the amd64 processor model, due to the compiler's ability to use more registers, and since the biggest CPU hogs on the system will be VPN and VoIP, and since my Lanner box has a 64-bit Atom CPU, that makes it somewhat desirable to go with the amd64 setup.The other question I have: how are updates handled if I install these? Theoretically, I only need the VGA for initial setup, unless something goes wrong, but then it always does when it can ;)
-
Wow. Nobody mentioned these in the context of the thread that eventually pointed me to the hacom versions… (unless I was asleep).
First I've heard of them. Nice one Jim. ;D
Steve
-
Actually a commercial support customer requested that one so I made it and uploaded them upon their request.
If you setup you own builder vm(s) then you can make your own, too. The problem is that it never ends with requests. I made that one because they specifically requested 4gb i386… but then someone else will want amd64, and 2gb, and 1gb, and 8gb, etc, etc. and by then the originals are old enough that you need to make new ones, and so on, and so on... :-)
So due to time constraints, customer requests come first of course, always time for those. But if I have a few spare cycles I might fire up another VM and build amd64. Keep an eye on that URL, but it probably wouldn't be anytime really soon.
-
Actually a commercial support customer requested that one so I made it and uploaded them upon their request.
Ah, I see.
If you setup you own builder vm(s) then you can make your own, too. The problem is that it never ends with requests. I made that one because they specifically requested 4gb i386… but then someone else will want amd64, and 2gb, and 1gb, and 8gb, etc, etc. and by then the originals are old enough that you need to make new ones, and so on, and so on... :-)
That may be an option. What VM are you using? VirtualBox? How does the VM update its code base? gitsync?
The newer VirtualBox releases support VM cloning, so it would be easy to clone the entire VM and upload it.
Then it would be easy for people to do custom builds.So due to time constraints, customer requests come first of course, always time for those. But if I have a few spare cycles I might fire up another VM and build amd64. Keep an eye on that URL, but it probably wouldn't be anytime really soon.
I'll keep my eyes peeled…
-
If you setup you own builder vm(s) then you can make your own, too. The problem is that it never ends with requests. I made that one because they specifically requested 4gb i386… but then someone else will want amd64, and 2gb, and 1gb, and 8gb, etc, etc. and by then the originals are old enough that you need to make new ones, and so on, and so on... :-)
That may be an option. What VM are you using? VirtualBox? How does the VM update its code base? gitsync?
The newer VirtualBox releases support VM cloning, so it would be easy to clone the entire VM and upload it.
Then it would be easy for people to do custom builds.I believe GeekGod (@sullrich on twitter) had posted some builder .ova files that should work in vbox/esx. I use virtualbox. Just a plain FreeBSD 8.1 VM with the builder code on it. Check the dev wiki for the particulars. I also have VMware workstation, but the fastest box in my house is a FreeBSD workstation so no VMware there, VBox does a great job for me there.
-
If you want the default behavior of pfSense on our Hacom images, just delete the file /usr/local/etc/rc.d/hacom.sh, then reboot.
…....
mount -u -ow /
rm /usr/local/etc/rc.d/hacom.sh
....... -
That's good to know, thanks. :)
Steve
-
I believe GeekGod (@sullrich on twitter) had posted some builder .ova files that should work in vbox/esx. I use virtualbox. Just a plain FreeBSD 8.1 VM with the builder code on it. Check the dev wiki for the particulars. I also have VMware workstation, but the fastest box in my house is a FreeBSD workstation so no VMware there, VBox does a great job for me there.
Cool. Downloading as I write this…
Another question: why is http://redmine.pfsense.org/issues/1279 showing as "100% done" when we still have the bug?
Or is there another bug report for the current behavior? According to redmine, this was fixed 4 months ago... -
@bao:
If you want the default behavior of pfSense on our Hacom images, just delete the file /usr/local/etc/rc.d/hacom.sh, then reboot.
…....
mount -u -ow /
rm /usr/local/etc/rc.d/hacom.sh
.......Thanks for the info. On the hacom.net page it lists the following changes to the standard distribution:
We have renamed the the nanobsd version of pfSense 2.0RC3 as pfHacom. Following are the some of the features of pfHacom:
-
Dual displays: VGA and serial console. The serial console is configured for 9600 8N1.
-
Adding support for USB keyboard to accompany the VGA mode.
-
Adding "kern.cam.boot_delay=10000" to the loader.conf, since some of our systems, specifically the OpenBrick-M family, are using the USB flash drive, instead of a compact flash.
-
We remount the root filesystem as read-only, sync, noatime. The default pfSense nanobsd mounts the filesystems as write-able, sync, noatime.
This changes the "normal" behavior pf pfSense. Any write (update) operations require the root filesystem to be remounted as write-able by the shell command: "mount -u -ow /". After the changes, just reboot the system or execute the command: "sh /usr/local/etc/rc.d/hacom.sh" to mount the root filesystem back as read-only.
This is a precaution since during early testing of pfSense 2.0: both BETA5 and RC1, we have experienced major flash corruptions.
Do any of these require patches to the code base, or are these simply build-time configuration options?
If these require patches, are they folded back into the standard code base?
Are there any other changes under the hood?
If this requires patches, are they available for download somewhere? -
-
Cool. Downloading as I write this…
Another question: why is http://redmine.pfsense.org/issues/1279 showing as "100% done" when we still have the bug?
Or is there another bug report for the current behavior? According to redmine, this was fixed 4 months ago...Someone checked in a fix, which marked it 100% and feedback automatically, but the fix was reverted/changed because it broke other things, and the progress was never updated (by hand)
-
@bao:
If you want the default behavior of pfSense on our Hacom images, just delete the file /usr/local/etc/rc.d/hacom.sh, then reboot.
…....
mount -u -ow /
rm /usr/local/etc/rc.d/hacom.sh
.......Thanks for the info. On the hacom.net page it lists the following changes to the standard distribution:
We have renamed the the nanobsd version of pfSense 2.0RC3 as pfHacom. Following are the some of the features of pfHacom:
- Dual displays: VGA and serial console. The serial console is configured for 9600 8N1.
Yes, this requires a patch. We patch the builder_common.sh file to effect the change.
- Adding support for USB keyboard to accompany the VGA mode.
This is just an option in the pfsense-build.conf
…..
export EXTRA_DEVICES=${EXTRA_DEVICES:-"ukbd"}
.....- Adding "kern.cam.boot_delay=10000" to the loader.conf, since some of our systems, specifically the OpenBrick-M family, are using the USB flash drive, instead of a compact flash.
Yes, this require a patch. We patch the builder_common.sh file to effect the change.
- We remount the root filesystem as read-only, sync, noatime. The default pfSense nanobsd mounts the filesystems as write-able, sync, noatime.
This changes the "normal" behavior pf pfSense. Any write (update) operations require the root filesystem to be remounted as write-able by the shell command: "mount -u -ow /". After the changes, just reboot the system or execute the command: "sh /usr/local/etc/rc.d/hacom.sh" to mount the root filesystem back as read-only.
This is a precaution since during early testing of pfSense 2.0: both BETA5 and RC1, we have experienced major flash corruptions.
We insert the file "hacom.sh" to /usr/local/etc/rc.d. It is executed when pfSense is boot up.
Do any of these require patches to the code base, or are these simply build-time configuration options?
See comments above!
If these require patches, are they folded back into the standard code base?
The patches are very minor and specific to our hardware configuration. I can show them to Chris and Jim if they want to incorporate them back.
Are there any other changes under the hood?
There are few other cosmetic changes like renaming pfSense to pfHacom! pfSense 2.0 is very compatible to our hardware, so we don't have to patch any of the drivers. We did have major patches with the earlier version of pfSense 1.2.3 due to peculiar problems.
If this requires patches, are they available for download somewhere?
The patches are in our build system, mainly the pfsense-build.conf, the builder_common.sh file and our copy_overlay. I can send them if anybody requests them.
-
You can just use
export NANO_WITH_VGA="yes"
in the build.conf - it doesn't require patching these days.
(Edit: Fixed syntax)