Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Dec 2015 23:26:27 +0900
From:      "Daisuke Aoyama" <aoyama@peach.ne.jp>
To:        <freebsd-xen@freebsd.org>
Cc:        <freebsd-current@freebsd.org>
Subject:   Xen/dom0/FreeBSD + NAS4Free WebGUI.
Message-ID:  <86DF039090BD474AA2CB2795F6C7A0C7@ad.peach.ne.jp>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_001E_01D14034.D7E410A0
Content-Type: text/plain;
	format=flowed;
	charset="iso-2022-jp";
	reply-type=original
Content-Transfer-Encoding: 7bit

Hi all,

I'm creating NAS4Free dom0 edition.
This is simple wrapper of Xen/dom0/FreeBSD.

You can upgrade by same way of NAS4Free.
You can manage HDD, ZFS, iSCSI target, NFS share by same way of NAS4Free.
You can manage DomU(VM) via WebGUI.

Japanese blog:
http://shell.peach.ne.jp/aoyama/archives/3149
http://shell.peach.ne.jp/aoyama/archives/3135

NAS4Free dom0 topic in English:
http://forums.nas4free.org/viewtopic.php?f=17&t=10028

Latest download:
http://www.peach.ne.jp/archives/nas4free/test/2244-dom0/

How to install:
1.Download LiveCD iso image.
2.Burn to CD/DVD-RW blank disc.
3.Boot from it.
(if your server don't have an optical drive, please use an external USB optical drive)
4.Install to USB Flash drive (2GB or more) from menu #9.
5.Reboot the server after ejecting CD/DVD media.

How to upgrade:
1.Navigate to System|Firmware in global menu from web browser.
2.Click "Enable Firmware Update".
3.Select NAS4Free-dom0-embedded-*.img.xz. (don't decompress the image)
4.Click "Upgrade Firmware".

Note:
At least you need a bridge interface before using.
Please create it from Network|Interface Management|Bridge.
You can change boot parameters from System|Advanced|loader.conf.
If you are interested in the xl.cfg, it is created in /usr/local/etc/xen/vm-<VMNAME>.cfg.

Known issues:
uuid generation of ports/sysutils/xen-tools is broken. You cannot control by UUID.
(quick hack patch is attached this mail)
xnb device performance is terrible.
(it eats 100% CPU on intr while transferring via bridged 10GbE)
----------------------------------------------------------------------
If you don't know about NAS4Free, here is the key feature of NAS4Free:

multiple architecture image for amd64, i386, rpi, rpi2, odroid-c1.
running on memory disk. (no write access on boot device)
minimum memory requirement is 512MB.
single configuration file. (except extra service like vbox, syncthing)
one click disk import. (easy hardware switchable)

For more, please visit:
http://www.nas4free.org/
----------------------------------------------------------------------

Enjoy Xen dom0 and NAS4Free collaboration!
Thanks,
-- 
Daisuke Aoyama
 
------=_NextPart_000_001E_01D14034.D7E410A0
Content-Type: application/octet-stream;
	name="extra-patch-tools_libxl_xl_cmdimpl.c-n4f"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="extra-patch-tools_libxl_xl_cmdimpl.c-n4f"

--- tools/libxl/xl_cmdimpl.c.orig	2015-11-03 18:11:18.000000000 +0900=0A=
+++ tools/libxl/xl_cmdimpl.c	2015-12-20 01:09:26.172162000 +0900=0A=
@@ -35,6 +35,9 @@=0A=
 #include <inttypes.h>=0A=
 #include <limits.h>=0A=
 #include <xen/hvm/e820.h>=0A=
+#ifdef __FreeBSD__=0A=
+#include <sys/endian.h>=0A=
+#endif=0A=
 =0A=
 #include "libxl.h"=0A=
 #include "libxl_utils.h"=0A=
@@ -978,6 +981,15 @@=0A=
     }else{=0A=
         libxl_uuid_generate(&c_info->uuid);=0A=
     }=0A=
+#ifdef __FreeBSD__=0A=
+    /*=0A=
+     * don't want little endian as raw data at this point=0A=
+     * sys/uuid.h uses uint32_t and uint16_t but libxl_uuid expects =
uint8_t stream=0A=
+     */=0A=
+    c_info->uuid.uuid.time_low =3D htobe32(c_info->uuid.uuid.time_low);=0A=
+    c_info->uuid.uuid.time_mid =3D htobe16(c_info->uuid.uuid.time_mid);=0A=
+    c_info->uuid.uuid.time_hi_and_version =3D =
htobe16(c_info->uuid.uuid.time_hi_and_version);=0A=
+#endif=0A=
 =0A=
     xlu_cfg_get_defbool(config, "oos", &c_info->oos, 0);=0A=
 =0A=

------=_NextPart_000_001E_01D14034.D7E410A0--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86DF039090BD474AA2CB2795F6C7A0C7>