pfsense KVM virtio

pfsense KVM virtio

pfsense kvm virtio

 

In this howto i will explain you the short steps to get working pfsense KVM virtio drivers for example on Openstack or Proxmox with newest pfsense releases.

 

 

First you need to change your drive device path name since after reboot with the new driver it will change. So the lines in /etc/fstab should look like this now:

/dev/vtbd0s1a / ufs rw 1 1
/dev/vtbd0s1b none swap sw 0 0

after that add this driver values to your /boot/loader.conf:

virtio_load="YES"
virtio_pci_load="YES"
if_vtnet_load="YES"
virtio_balloon_load="YES"
virtio_blk_load="YES"

at least depending on your pfsense (check with: uname -a) kernel release you have to download the matching precompiled virtio binaries from following url: virtio binary packages

in my case i used virtio-kmod-8-0.239473.tbz for pfsense 2.1 beta so fetch http://people.freebsd.org/~kuriyama/virtio/8.3/virtio-kmod-8-0.239473.tbz and tar xvzf virtio-kmod-8-0.239473.tbz

Move to the extracted path boot/modules and cp * /boot/kernel
Finally check if the version you’ve downloaded matching your kernel version and if its running properly by kldload virtio. If the driver loads properly, shutdown your system, change your kvm disk and nic vm settings to virtio, start the vm again and reconfigure your network nics via shell gui (should now vtnet0/vtnet1..) and you’re done.

Rating: 5.0/5. From 2 votes.
Please wait...
Jules

Jules

Jules is the owner and author of ISPIRE.ME. He's a Linux System Engineer, Tech fanatic and an Open Source fan.

You may also like...

2 Responses

  1. Reset Reset says:

    Thank you very much!

    No votes yet.
    Please wait...
  2. pierre-jean metzger-gineste pierre-jean metzger-gineste says:

    For PFsense 2.2.6, you only have to modify the FSTAB file, the Virtio drivers are already built into the kernel

    No votes yet.
    Please wait...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.