Difference between revisions of "Archive/FreeBSD 64-bit HVM on XCP"

From Xen
m
(Copied with permission from author '''Egoitz Aurrekoetxea Aurre''')
Line 1: Line 1:
  +
== Instructions ==
{{TODO|Migrate content to wiki after getting ACK from Egoitz Aurrekoetxea Aurre}}
 
   
  +
In order to be able to run Freebsd 9.0-RELEASE or RELENG_9_0 on XCP you should have a
See
 
  +
XENHVM kernel and the [[#port|Xentools installed from the FreeBSD xentools port]]. So, for summarizing :
  +
  +
* Build and install HVM kernel.
  +
* Build and install xentools from the FreeBSD xentools port.
  +
* untar and place the proper location (as could be deduced) in the tar output.
  +
  +
So :
  +
<pre>
  +
x freebsd-xenservertools/
  +
x freebsd-xenservertools/etc/
  +
x freebsd-xenservertools/procfalse/
  +
x freebsd-xenservertools/usr/
  +
x freebsd-xenservertools/usr/local/
  +
x freebsd-xenservertools/usr/sbin/
  +
x freebsd-xenservertools/usr/sbin/escribe-ip-if.sh
  +
x freebsd-xenservertools/usr/sbin/escribe-meminfo.sh
  +
x freebsd-xenservertools/usr/sbin/xe-daemon
  +
x freebsd-xenservertools/usr/sbin/xe-linux-distribution
  +
x freebsd-xenservertools/usr/sbin/xe-update-guest-attrs
  +
x freebsd-xenservertools/usr/local/etc/
  +
x freebsd-xenservertools/usr/local/etc/rc.d/
  +
x freebsd-xenservertools/usr/local/etc/rc.d/xe-daemon.sh
  +
x freebsd-xenservertools/etc/freebsd-version
  +
</pre>
  +
  +
* Create /procfalse
  +
* do a ‘uname -r > /etc/freebsd-version’ from you’re shell as root.
  +
* after that, just place files in proper places as seen before.
  +
  +
Finally... after booting the machine (or doing /usr/local/etc/rc.d/xe-daemon.sh start), you would be
  +
able to enjoy of the Xen Cloud virtualization possibilities and so, you could see on right clicking on
  +
the machine in XenCenter :
  +
  +
[[Image:freebsd90-cloud-screenshot.png]]
  +
  +
that you’re able for example to suspend or migrate de FreeBSD VM.
  +
  +
This is working for me in XCP release 1.1.0 and FreeBSD RELENG_9_0.
  +
  +
I wanted to say I’m very thankful to my company SareNET who has allowed me to examine how
  +
could I run FreeBSD in XCP and very thankful too to Dave Scott from Citrix because of the initial
  +
ideas for getting this working.
  +
  +
{{Anchor|port}}
  +
== FreeBSD xentools port ==
  +
* [http://lists.xen.org/archives/html/xen-api/2012-06/tarvG0F1rJq8O.tar Tar file with FreeBSD xentools port] (according to the author available under an [http://www.openbsd.org/policy.html OpenBSD license] - please check if in doubt.
  +
  +
== Other References ==
 
* [http://lists.xen.org/archives/html/xen-api/2012-06/msg00137.html Mail Thread on xen-api]
 
* [http://lists.xen.org/archives/html/xen-api/2012-06/msg00137.html Mail Thread on xen-api]
 
* [http://lists.xen.org/archives/html/xen-api/2012-06/pdfBwuQRWpURg.pdf Instructions]
 
* [http://lists.xen.org/archives/html/xen-api/2012-06/pdfBwuQRWpURg.pdf Instructions]
  +
* [http://lists.xen.org/archives/html/xen-api/2012-06/tarvG0F1rJq8O.tar Tar file with FreeBSD xentools port]
 
  +
== Thanks To ==
  +
A big thank you to '''Egoitz Aurrekoetxea Aurre''' for working on the port and making it available.
   
 
[[Category:XCP]]
 
[[Category:XCP]]

Revision as of 16:31, 28 June 2012

Instructions

In order to be able to run Freebsd 9.0-RELEASE or RELENG_9_0 on XCP you should have a XENHVM kernel and the Xentools installed from the FreeBSD xentools port. So, for summarizing :

  • Build and install HVM kernel.
  • Build and install xentools from the FreeBSD xentools port.
  • untar and place the proper location (as could be deduced) in the tar output.

So :

x freebsd-xenservertools/
x freebsd-xenservertools/etc/
x freebsd-xenservertools/procfalse/
x freebsd-xenservertools/usr/
x freebsd-xenservertools/usr/local/
x freebsd-xenservertools/usr/sbin/
x freebsd-xenservertools/usr/sbin/escribe-ip-if.sh
x freebsd-xenservertools/usr/sbin/escribe-meminfo.sh
x freebsd-xenservertools/usr/sbin/xe-daemon
x freebsd-xenservertools/usr/sbin/xe-linux-distribution
x freebsd-xenservertools/usr/sbin/xe-update-guest-attrs
x freebsd-xenservertools/usr/local/etc/
x freebsd-xenservertools/usr/local/etc/rc.d/
x freebsd-xenservertools/usr/local/etc/rc.d/xe-daemon.sh
x freebsd-xenservertools/etc/freebsd-version
  • Create /procfalse
  • do a ‘uname -r > /etc/freebsd-version’ from you’re shell as root.
  • after that, just place files in proper places as seen before.

Finally... after booting the machine (or doing /usr/local/etc/rc.d/xe-daemon.sh start), you would be able to enjoy of the Xen Cloud virtualization possibilities and so, you could see on right clicking on the machine in XenCenter :

Freebsd90-cloud-screenshot.png

that you’re able for example to suspend or migrate de FreeBSD VM.

This is working for me in XCP release 1.1.0 and FreeBSD RELENG_9_0.

I wanted to say I’m very thankful to my company SareNET who has allowed me to examine how could I run FreeBSD in XCP and very thankful too to Dave Scott from Citrix because of the initial ideas for getting this working.

FreeBSD xentools port

Other References

Thanks To

A big thank you to Egoitz Aurrekoetxea Aurre for working on the port and making it available.