- Update (20140122): FreeBSD 10 is out. Also see Improved Xen Support In FreeBSD blog post on xenproject.org
- Update (20140101): FreeBSD 10 RC1, RC2 and RC3 installs on XenServer/CloudStack without issues for both i386 and amd64 ISOs
FreeBSD-CURRENT has a ton of Hardware Assisted Virtualisation (HVM) fixes and enhancements to support the Xen Hypervisor. The 2 major issues that prevented CloudStack users from creating FreeBSD HVM templates on Xen have been addressed with the following commits…
- Revision 256423 – Allow FreeBSD to be booted from CDROM media on XenServer 6.2 and prior releases.
- Revision 256071 – Correct panic caused by attaching both Xen PV and HyperV virtualization aware drivers on Xen hypervisors that advertise support for some HyperV features.
FreeBSD 10 BETA2 and later onwards have these fixes and now work out of the box under CloudStack and XenServer with HVM support. To get started…
- Login to Apache CloudStack 4.2
- Register FreeBSD ISO from the “template” section. The OS Type must be set to “Other (64-bit). ISO images are available at http://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/10.0/. Currently at FreeBSD 10 BETA3 as of this writing.
- Wait for the ISO to download
- Start the installation
- The network interface is detected at “xn0”
- Complete installation
- Create and register a template from the running instance
- Launch more instances
root@fbsd2:~ # dmesg |grep ^x xen_et0: <Xen PV Clock> on motherboard xenpci0: <Xen Platform Device> port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 30 at device 3.0 on pci0 xenstore0: <XenStore> on xenpci0 xctrl0: <Xen Control Device> on xenstore0 xenbusb_front0: <Xen Frontend Devices> on xenstore0 xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0 xn0: Ethernet address: 02:00:37:6d:00:05 xenbusb_back0: <Xen Backend Devices> on xenstore0 xn0: backend features: feature-sg feature-gso-tcp4 xbd0: 5120MB <Virtual Block Device> at device/vbd/768 on xenbusb_front0 xbd0: attaching as ada0 xbd0: features: write_barrier xbd0: synchronize cache commands enabled.
root@fbsd2:~ # uname -a FreeBSD fbsd2 10.0-BETA2 FreeBSD 10.0-BETA2 #0 r257166: Sat Oct 26 19:23:22 UTC 2013 email@example.com:/usr/obj/usr/src/sys/GENERIC amd64
As of BETA2, there is still one pending issue. Shutting down the instance via the Stop Instance tab in CloudStack (or via XenCenter) will halt the OS but does not poweroff the instance with Xen tools running. This should get addressed in later releases. See kern/171118
- CloudStack Installation Guide
- Earlier Blog Post on running FreeBSD On XenServer
- xen-tools port