Knowledge Base


FreeBSD

Building your own kernel in FreeBSD

 Your Xen VPS is setup much like standalone FreeBSD server.  We do not use a custom kernel or even any special kernel modifications or modules.  You can compile your own kernel in the same way you would on a standard FreeBSD server.On our standard VPS installation, the ...


Time synchronization and NTP

 Time synchronization is a difficult aspect of running a server in a fully virtualized environment.  In order to keep your VM's clock in sync, we recommend the following settings (FreeBSD VMs are provisioned with these by default):1) Set kern.hz="100" in /boot/loader.conf.  2) ...


How to update the ports tree

Using PortsnapAs of March, 2009 RootBSD has provided hosting for a public Portsnap mirror which can also be used as a high speed, local mirror for our customers to use. Also since this time, all new RootBSD VPS's have been configured for portsnap to utilize our mirror when performing ...


"calcru: runtime went backwards" messages

 It is common to see kernel messages related to "calcru: runtime went backwards" in a FreeBSD VPS.  These messages are related to how your FreeBSD system is running in a fully virtualized environment and does not have a precise hardware clock for timekeeping.  These messages do not pose any ...


Reset your root password in FreeBSD

If you have forgotten your root password and are unable to log in as root, do not be concerned. You are able to reset your root password using your VNC console. Simply follow these steps:Use VNC to connect to the VPS console.  Send Ctrl+Alt+Del command to reboot the system ...


ad0: TIMEOUT messages

You may see kernel messages that would suggest disk access errors when viewing dmesg. For example,Jul 2 01:23:23 example kernel: ad0: TIMEOUT - Jul 2 01:24:04 example kernel: WRITE_DMA retrying (1 retry left) LBA=10081311 Jul 2 01:24:04 example kernel: ad0: TIMEOUT - WRITE_DMA ...


IPFW sample configuration

We have put together the following sample IPFW firewall configuration for securing your FreeBSD VPS.  Here is how to set it up.First, use a text editor in your VPS (such as vi) to create the file /etc/ipfw.sh and paste in the following info.  Note to replace X.X.X.X with your public IP ...


Enabling IPv6 on your FreeBSD VPS

Enabling IPv6 on your FreeBSD VPS is simple.For stateless autoconfig, just add the one of following line to your /etc/rc.conf and reboot your VPS. Your VPS will automatically configure an IPv6 address on boot:For FreeBSD 10.x: ifconfig_xn0_ipv6="inet6 accept_rtadv" For FreeBSD ...


FreeBSD Mirrors

RootBSD currently operates FreeBSD mirrors available to the public.  Portsnap: Configure your portsnap.conf to use portsnap.rootbsd.net SVN ( http://svn.rootbsd.net ): We mirror the base, doc, and ports repositories which can be accessed over HTTP. For example, you can check out ...


Collisions on network interface re0

VPS users may notice collisions on their network interface re0 and re1, for example: Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll re0 1500 00:16:3e:d8:bc:a9 74835699 0 0 71409776 0 65006478 The reason for this is ...


Clock stops after 9.0-RELEASE upgrade

Some older VMs may see that their clock quickly stops working after upgrading to 9.0-RELEASE from older versions of FreeBSD rendering the VPS unusable.This is a result of the tickless kernel implemented into 9.0-RELEASE which can be turned off by doing the following:# sysctl ...


PF sample configuration

To setup PF you will first need enable PF and define where the rules file will reside. This can be done by editing /etc/rc.conf and adding the following lines: pf_enable="YES" pf_rules="/etc/pf.conf" Next, you must define the rule set which you will put in /etc/pf.conf . ...


Incorrect time when rebooting & clock drifting

Occassionally you may notice that your system clock is off by a few hours after rebooting, or that your clock is drifting enough that NTP can't keep up. These issues are caused as a result of running FreeBSD in a fully virtualized environment, and there are some steps you can take to ...


FreeBSD vs Linux, which one should you use?

We are often asked whether FreeBSD is better than Linux or vice versa, or whether there is any significant difference between the two. The answer to that can vary depending on project and scope so we're putting together an exclusive article series comparing FreeBSD and Linux in various ...


Mounting Failed with Error 19


No Networking after upgrade from FreeBSD 9 to FreeBSD 10

When upgrading from FreeBSD 9 to FreeBSD 10 the interface names are changed due to the installation of Xen drivers which will cause networking connectivity issues.In FreeBSD 9 major versions, you can see the interface names located in the configuration file /etc/rc.conf.They are ...