Update 2/10/2014: A new build updating the files to FreeNAS 9.2.1.8 which includes a bunch of samba updates, and importantly, the fixes for the bash shellshock vulnerability.
Update 17/5/2014: I’ve replaced the links on this page to a newer version, FreeNAS 9.2.1.5, and added the Upgrade file. Note for the upgrade through the FreeNAS UI, it will require the SHA256 has too, so I’ve included that as well in the links below.
Several people over on the freenas forums have had troubles building a Xen-enabled ISO of freenas 9.2, due to issues with freeBSD’s ports packages.
As a result, I’ve uploaded the iso I built using these instructions in my previous post and will host it here for a while.
Here it is:
FreeNAS-9.2.1.8-RELEASE-xen-x64.iso
FreeNAS-9.2.1.8-RELEASE-xen-x64.iso.sha256.txt
Note that its only the 64-bit version – I haven’t tried the 32-bit version I built at the same time, but I’ve been running this one myself for a while with an LSI HBA passed through to it using the xen_pciback module.
Disclaimer: This is not an official FreeNAS build. It isn’t guaranteed to be supported with future bug fixes, updates etc. and you use it at your own risk, with no liability to me.
Also, here’s the upgrade file:
FreeNAS-9.2.1.8-RELEASE-xen-x64.GUI_Upgrade.txz
FreeNAS-9.2.1.8-RELEASE-xen-x64.GUI_Upgrade.txz.sha256.txt
And lastly, the image file:
Hi There,
I’m new to Xen and FreeNAS. I created a new vm and booted it with the image. How do i configure it?
Console shows a msg “run_interrupt_driven_hooks: Still waiting after 300 sec for xenusb_nop_confighook_cb.
Thanks
Hey Wired Dad,
Man, congrats you have done wonders on this one man, been working this at home, it’s just incredible the difference between pv and non pv,
9.3 has come out? I was wondering if there was any chance you would be releasing 9.3 with your touch of magic?
Yeah, would be really nice.
+1
Hi guys!
I’ve built a 9.3 image with PVHVM support – have a look here:
https://forums.freenas.org/index.php?threads/how-i-got-a-xenhvm-kernal-and-xen-tools-working-in-freenas.15287/page-2#post-172915
I saw that – thanks.
Have you had a chance to test it?
I did get as far as compiling an image with freenas 9.3, and it built the isos, but when I tried upgrading my current install there were issues, and given 9.2 is working for my needs, I haven’t investigated any further.
Its a bit baffling that they went with 9.3 instead of just having a push to freeBSD 10. The effort would have paid major dividends in development work for the team over the next year or so, and made Xen life easier!
I’ll try upgrading a snapshot of my freenas host’s volume using your image this weekend.
Tried with Xenserver 6.2 – got to “run_interrupt_driven_hooks … still waiting after 300 seconds…” then hung
Hi wired dad! Any chance you will build the current 9.2.1.7 too?
Hi Sammy, I built it overnight – have the x64 files and will upload them after I get a chance to backup my freeNAS VM’s drive image, and verify the upgrade at least works for me 🙂
That’s the nice thing about virtualising FreeNAS – I can shut it down for a minute, snapshot the drive (using LVM), then bring it back up and I have a new image to run the upgrade on, with little downtime and no risk of destroying my running environment.
I’ll make a post once I’ve verified I’ve got a working build!
Ooroo.
Sounds great – another thing I’ve noticed running our PVHVM build is that XenTools are missing. Would it be possible to include the XenTools in some future version?
I realise the xentools are missing – I’ve tried to build the last couple of versions with it, but it causes multiple issues with the build scripts which are beyond me (see other comment conversation with Moritz below).
I was about to go upload 9.2.1.7, but notice there’s a 9.2.1.8 available now, which presumably fixes the (massive) bash vulnerability which is sweeping the world currently.
I’m re-syncing with the git repository right now and will be kicking off a PVHVM-capable 9.2.1.8 iso build.
Upgraded without a glitch – perfect.
I just ran the upgrade to 9.2.1.8 on my xen VM and it works fine. Files are uploading as I type, should be all there in about another 15 mins. Links are updated, so should just start working while I’m driving to work – I’ll log in from work and test the download links too.
Thanks for being patient!
Ooroo.
The update worked beautifully for me on Citrix Xenserver 6.2. Thanks for all your hard work!
Hi Wired Dad!
Me again, since 9.3 was released about a month ago, I’d like to ask if you are planning to provide us with a new build.
Would greatly appreciate it – thanks,
Sammy
Apologies for the long delay – I just discovered my spam folder was harbouring messages from the site (thanks gmail.. grr).
There was a post on the freenas forums a week or two ago by Ringerl who has provided a 9.3 image. I haven’t had time to look at it, or to set up a 9.3 build environment. Moving to 9.3 is on my agenda – its just lower than a bunch of other bits as my current freenas image is rock solid. I’ve been busy with pfSense 2.2 lately.
Pingback: FreeNAS on Xenserver with PVHVM support | Technicus
This is so cool. iso/update worked like a charm.
Thanks alot!!
Thanks for the positive feedback.
The version of the ISO I’ve made available includes all ther Xen PVHVM drivers to improve VM performace/cpu usage, it just doesn’t include the stuff to support the xenserver tools. Not an issue for those of us who just run our own 64-bit hypervisor 🙂
I’ve given up trying to get the xentools stuff built for now – it seems to be an issue with the build scritps (not freeBSD) and I don’t have the freenas familiarity to manually change the build scripts.
Ooroo!
Hey,
Thanks alot for your energy & time which you are investing in building & sharing these images/update-files!!
I realy apreciate it.
After successfully installing FreeNAS via your 9.2 iso my XenServer wasn’t able to recognise the xen-tools in that VM. I edited the /conf/base/etc/rc.conf to manually enable the tools () – but that didn’t made any changes. After that i tried to upgrade my FreeNAS 9.1 VM with running tools via your “xxx.Upgrade.txz”. It turned out the same as a newly installed System – no running xen-tools.
Can you give me a hint/tipp how to get the tools running in your 9.2 ?
Cheers & Greetings from Berlin
Moritz
I’m afraid I’m not running on top of Xenserver so didn’t compile with the sysutils/xen_tools port. I’m just using a baremetal Xen machine with a Centos dom0.
I’ll kick off a re-build of the iso with the sysutils/xen_tools port added and add it to my site this weekend if I can get the build done.
And thanks for the thanks!
Hey Wired Dad :-),
that would be great!
btw – all the time I thougt this vhd file (FreeNAS 9.1.x with tools) was comming from you cause i got to your blog via this link.
http://forums.freenas.org/index.php?threads/how-i-got-a-xenhvm-kernal-and-xen-tools-working-in-freenas.15287/#post-78235
thought wrong – so it couldn’t work with the xen-tools in the fist place 🙂
Hey Wired Dad 🙂
did you get the chance to re-build the iso with xen_tools ?
cheers
moritz
I had a couple of attempts at building it – the build fails and I haven’t had time to look into it further.
I’ll post about it as/when I get anything that appears to build ok!
thanks a lot !
Hey Wired Dad 🙂
any updates on this matter?
Best
moritz
Hi Moritz,
I haven’t given up – I hit a wall with the freenas build scripts and have made a couple of posts on the freenas forums to try and get help.
Unfortunately, it seems noone there is really interested in virtualising freeNAS under Xen.
I’m considering giving nas4free another try. Hopefully someone will help with the freenas issue. If I get a reply on where to look or a solution I’ll post an update.
Here’s the thread on the freenas forums:
http://forums.freenas.org/index.php?threads/how-i-got-a-xenhvm-kernal-and-xen-tools-working-in-freenas.15287/page-2#post-101771
Hi Moritz,
I have tried to installa the 9.2 iso under xenserver 6.2 but it doesn’t work.
I have used the template “Other install media” but it stops showing:
run_interrupt_drive_hooks: still waiting after 60 seconds for xenbusb_nop_confighook_cb
run_interrupt_drive_hooks: still waiting after 120 seconds for xenbusb_nop_confighook_cb
run_interrupt_drive_hooks: still waiting after 180 seconds for xenbusb_nop_confighook_cb
etc etc…
Any help?
Andrea
I’m getting this too, appears to be a CD-ROM block bug as described here:
http://comments.gmane.org/gmane.os.freebsd.xen/1543
The solutions offered “remove the CD-ROM device” obviously don’t help until the installation is complete… I’m going to try setting up some sort of PXE boot for this. Another workaround would be enlisting someone for whom it does work, and getting them to build an appliance from a freshly-installed VHD.
This MAY be related to hardware that lacks VT-d support, which is most irritating since that’s a major reason to push for PV in the first place (passthrough, etc)
I also got that issue. I was able to get around it by extracting the FreeNAS_x64.img.xz file into an .IMG file, and then using the xe vdi-import command to import that image file to the disk of my VM. The last step is to remove the DVD drive from that VM. It will then finally boot!
I outlined the details on my blog: http://techblog.jeppson.org/2014/09/freenas-on-xenserver-with-pvhvm-support/
Thanks for posting your link here Nick – glad to see the iso I built is getting some use.
The freenas guys don’t have much interest in virtualisation. Its a shame, as I’ve found virtualised freeNAS to be a very nice solution, and have been running it to provide iscsi targets for data disks on various VM’s, in addition to providing backup storage, general windows/CIFS and NFS shares etc.
I keep getting this error xenbusb_nop_confighook_cb when I try to boot from the iso. (-_-‘)
Hi Frank,
I just ran the install from the iso linked above and it worked fine for me installing onto a 2gig LVM-based partition. I can run up the installed FreeNAS9.2.1.5-xen with no issues.
Here’s the conf file I used to run the install – it creates a VNC console on the hypervisor host.
#
# Freenas 9.2 installation
#
name = 'freenas9215'
builder = 'hvm'
maxmem = 8192
memory = 8192
vcpus=2
acpi=1
apic=1
vif = [ 'bridge=xenbr0, mac=00:aa:0a:15:01:99' ]
disk = [ 'phy:/dev/vg_hdd/vm_test_freenas,xvda,w',
'file:/mnt/isos/bsd/freenas/FreeNAS-9.2.1.5-RELEASE-xen-x64.iso,hdb:cdrom,r' ]
# Boot from the cdrom device
boot='d'
vnc=1
vncunused=0
vnclisten = '0.0.0.0'
vncdisplay=5
vncconsole=1
serial='pty'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'destroy'
Here’s my current kernel and Xen versions:
3.10.34-11.el6.centos.alt.x86_64
xen-4.2.4-30.el6.centos.alt.x86_64
Pingback: FreeNAS 9.2.1.5 with Xen PVHVM support | My Wired House
Thanks for providing this. One question: How exactly did you set up the VM on xenserver to run? For me it won’t boot, however I just chose the “Other install media” template to boot the ISO, as I don’t know how to use the configuration file for the vm. Any help is appreciated.
I run the VM in HVM mode – so it boots like a non-Xen supporting OS.
However, the kernel in this ISO has native support for the Xen block devices for networking and disk access, so the Xen dom0 doesn’t have to provide the usual HVM emulated networking or disk controllers, which massively reduces the cpu overhead and increases the throughput.
I’ve only played with Xenserver briefly – I run just plain Xen with a minimal linux distro on top as the dom0. However, I recall that “Other install media” should be the correct way to install from this iso, as that uses HVM.
If its any help, this is the config files I use to run the VM:
# FreeNAS 9.2 with PVHVM support
name = 'freenas'
builder = 'hvm'
maxmem = 12000
memory = 12000
vcpus=2
acpi=1
apic=1
vif = [ 'bridge=xenbr0, mac=00:16:3e:00:99:01' ]
disk = ['phy:/dev/vg_ssd/vm_freenas,xvda,w']
# Uncomment this for install, and change 'boot=c' to 'boot=d' below
# 'file:/mnt/isos/bsd/FreeNAS-9.2.0-RELEASE-xen-x64.iso,hdb:cdrom,r' ]
boot='c'
vnc=1
vncunused=0
vnclisten = '0.0.0.0'
vncdisplay=3
vncconsole=1
serial='pty'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'destroy'
# PCI device for passthrough of LSI HBA
pci = ['02:00.0']
Would running a FreeNAS upgrade breaking anything?
I haven’t tried yet. I wasn’t aware that there was an upgrade until your question (thanks BTW).
I’ll have a go at upgrading to 9.2.1.3 when I get home – its in a VM and I have a complete image of the VM so I can duplicate it to try the ugprade, and if it fails, just shutdown and run the working VM – that’s the beauty of running FreeNAS in a virtual machine!
If the upgrade replaces the kernel, then it certainly will break the Xen support.
When FreeNAS embraces FreeBSD10, then upgrades may be possible as the freeBSD10 kernel includes Xen support (unless the freeNAS devs decide to disable it).
I’ll try an upgrade tonight and let you know!
So… how did the upgrade go? 🙂
The upgrade loses Xen PVHVM support.
The upgrade applied – but it replaces the kernel so I lost the xn0 Xen network interface, replaced with the slow and cpu-intensive ‘re0’ emulated Realtek one.
So I rolled back the upgrade (handy thing about doing it on xen with LVM), and will look at rebuilding another iso with xen support for the latest version.
My build of 9.2.1.5-RELEASE with PVHVM support is running – will find out in the morning if it completed. If it does, I’ll post the upgrade file for upgrading from FreeNAS-9.2-xen
Pingback: Building FreeNAS with Xen PVHVM support | My Wired House