Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PFSence under Linux/KVM with Libvirt

    Scheduled Pinned Locked Moved Virtualization
    1 Posts 1 Posters 5.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nuno0351
      last edited by

      There was a post regarding this (http://forum.pfsense.org/index.php?topic=9946.0) but it's locked.
      Since Scott asked for some feedback, I just wanted to let everyone know that it works fine.
      I've been running PFSense under Ubuntu server and VMWare server 2.0.x for well over a year and this week decided to do away with VMWare since apparently they are done supporting that product and move everything to KVM.  Also happens to be a good learning exercise.

      So I created a new VM with libvirt (I have an xml template that I manually edit for each new VM I want, the pfsense one is below), pointing to a 10GB qcow2 image and the pfsense ISO.  Two virtual E100 interfaces are bridged with my actual physical interfaces.
      Booted, connected to the console with VNC and just ran the install like on any other PC.  No problems whatsoever!  Wish everything was this smooth!

       <domain type="kvm"><name>FW</name>
        <uuid>08495f4e-2bc8-750c-ea19-1bd95d2909f1</uuid>
        <memory>1572864</memory>
        <currentmemory>1572864</currentmemory>
        <vcpu>2</vcpu>
        <os><type arch="x86_64" machine="pc-0.11">hvm</type></os> 
        <features><acpi><apic><pae></pae></apic></acpi></features> 
        <clock offset="localtime"><on_poweroff>destroy</on_poweroff>
        <on_reboot>restart</on_reboot>
        <on_crash>restart</on_crash>
        <devices><emulator>/usr/bin/kvm</emulator>
          <disk type="file" device="disk"><source file="/VM/FW/FW.qcow2">
            <target dev="hda" bus="ide"></target></disk> 
          <interface type="bridge"><mac address="00:16:36:11:47:20"><source bridge="br1"></mac></interface> 
          <interface type="bridge"><mac address="00:16:36:11:47:21"><source bridge="br0"></mac></interface> 
          <serial type="pty"><source path="/dev/pts/2">
            <target port="0"></target></serial> 
          <console type="pty" tty="/dev/pts/2"><source path="/dev/pts/2">
            <target port="0"></target></console> 
      
          <graphics type="vnc" port="5902" autoport="no" keymap="en-us"></graphics></devices></clock></domain> 
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.