How to install FreeBSD on a KVM VPS

by Ruchira on January 10, 2013



If you are bored with Linux and want to dive in to the Unix BSD world,  FreeBSD is the OS you should start with. On this guide I’m going to explain you how to install FreeBSD on your KVM, VPS server. If you got a dedicated server don’t worry you can avoid the first few steps of this guide which is about configuring the drivers of KVM VPS, and start from there.

If you purchased a KVM  VPS from a hosting company, mostly likely it will be handled through SolusVM control panel. So here I’m assuming that you got SolusVM login’s and lets start

Set the boot sequence and drivers on SolusVM ( skip this if you aren’t on KVM VPS )

Log in to the SolusVM and you will see the option to mount a CD-ROM to your VPS, On this we are going to mount the FreeBSD ROM

kvm cd rom

Here, I have mounted the FreeBSD 9.0 Netinstall ROM, Depending on your provider you might have the FreeBSD 9.1 which is the newest. But installation method for FreeBSD is the same. So choose the ROM and click Mount.

Then we need to set boot sequence of the VPS, On default, Hard Disk drive is set as first boot device but we need to change it to CD ROM then Hard disk to continue with the install


set ide instead of virtio


Also as you can see on the screenshot above, set the disk driver to IDE ( default ) instead of virtio, or depending on the freebsd version, the install might fail when you get in to the partitioning step.

That’s it on SolusVM. Now you need to log in to the server via VNC client. I use “gtk VNC Viewer” on my Ubuntu PC ( search application center for gtk if you want to install it on Ubuntu ).  You can use tightvnc client if you are on windows. Login information to VNC will be given to you by your provider when you setup the server.

Now you need to issue a reboot on your VPS and log in to VNC

Log in via VNC to continue with FreeBSD installation


freebsd boot screen


This FreeBSD boot screen will be presented to you on your VNC viewer after you reboot the server on previous step. Press 1 to continue with the boot, or after 5 seconds it will autoboot

Then it will ask what to do choose the “Install” option and hit Enter button

freebsd netinstall


Remember moving through these options is done by arrow keys on your keyboard. Selecting is done by space bar and choosing it is done by Enter key.


On next step it will ask that if you want to set non-default mapping . simply choose No. Then it will ask for the hostname and enter the hostname that you want to use here.


hostname freebsd


On next step it will ask if you want to install additional documentation, games etc. On default games option is selected and you can save up some space by deselecting it by using the space bar. Then click Enter to go next step.




My CD-ROM is the FreeBSD netinstall version. Probably yours will be the same, Thats why its asking to download installation files from internet. Just choose OK.

And then it will ask to configure the network card and you can click enter.


freebsd ip setup


Then it will present you the option to setup IPv4 and choose yes. IPv4 setup is easy, on next step when it asks to setup using DHCP choose yes.

Next it will ask for IPv6 setup. If you don’t have IPv6 addresses on your VPS or if you don’t want to setup IPv6 you can select No. IF you got IPv6 choose yes and proceed.

Then it will ask to choose the mirror. Choose suitable one and proceed.

choose mirrors freebsd


After choosing the mirror, you will have to choose the partitioning method. Choose guided partitioning because it easy for a new bie.

On next step choose “Use entire partition” because this is the only OS that we are installing on the server.


freebsd paritioning


As you can see from above screenshot, it will display the partition table and you can choose “Finish” . Then choose the option “Commit” and the installer will start downloading the files from freebsd servers.


downloading freebsd


Simply wait until this finishes, it will take time depending how fast your server’s internet connection is. After it finishes it will ask you to set root password like this


root password freebsd


Simply set your root password and on next steps it will ask you to setup time etc. these are  straightforward so im not going to explain about that here

Then it will ask to make any final changes by using shell and lets choose NO

freebsd install finished


Congratulations its done. On next step it will ask to reboot and do it. But remember the first boot device is still set as the CD rom. Go back to SolusVM and choose Hard drive as first boot device, otherwise the installed freeBSD wont load.



I'm Ruchira Sahan and all posts on this blog are completely my thoughts and writings. I love DIY and Technology. So feel free to contact me for anything about this blog and don't forget to add a comment if this blog helped you! Thanks
View all posts by Ruchira

{ 1 comment… read it below or add one }

1 Jon January 23, 2013 at 6:22 AM

great blog mate, i used the IMT Website Submitter, off your blog 🙂


Leave a Comment

Previous post:

Next post: