Keep Da Link

To content | To menu | To search

Keyword - freebsd

Entries feed - Comments feed

-->

Feb. 28, 2012

FreeBSD vimage jails

 

I tried to use VIMAGE for jails, can be summarized as: independant network stack, firewalling, nat, a real loopback ... for your jails

First I had pf in my kernel, it does not work with VIMAGE, it will kernel panic, (as module too), so remove it (I hope it will be solved soon).

I used the package from DruidBSD: vimage boot, and used the following config:

vimage_enable="YES"     
vimage_list="testjail"
vimage_testjail_rootdir="/usr/jails/testjail"           # root directory
vimage_testjail_hostname="testjail"      # hostname
vimage_testjail_devfs_enable="YES"                      # mount devfs
vimage_testjail_vnets="vtnet1"                         # network interfaces

vtnet1 is a dedicated hard interface (from KVM) and will appears only in the jail after you start /etc/rc.d/vimage start

Nice but I need a bridge there so I needed netgraph modules, but I encounter this issue: link_elf_obj: symbol ifnet undefined, for unknown reason VIMAGE will break ng_ether if used as module, add it to your kernel then rebuild:

# Virtual networking for jail
options         VIMAGE
device          epair
device          if_bridge

option          NETGRAPH
option          NETGRAPH_ETHER

No you can use vimage_testjail_bridges="vtnet0" instead of vimage_testjail_vnets, it will automagically create a bridge visible in you jail named ng0_testjail.

Happy jailing !

 

Feb. 7, 2012

FreeBSD 9.0 ZFS root on OVH

I had so much pain to make it work so here is how to have a ZFS root with a raidz pool on 5 disks, specially with OVH without any console or kvm to debug the boot process.

The server has 5 disks that I put in raidz and boot on it, but this should apply to most installation.

Continue reading...

Oct. 14, 2011

FreeBSD 9.0 guest with virtio support in KVM

Performance are really bad for FreeBSD in KVM, one solution is to use paravirtualized driver, virIO.

Continue reading...

Install FreeBSD 9.0 with ZFS root

The "new" FreeBSD installer does not give you the options to simply install ZFS as root, so sad, here is how to do it.

Continue reading...

March 31, 2011

(Re)Discovering FreeBSD and ZFS

Since Sun's killers euh Oracle shutdown OpenSolaris, FreeBSD is becoming more and more attracting with ZFS port, you should really give it a try (We are back baby).

Here is a fast installation of FreeBSD with a ZFS root.

Continue reading...

May 23, 2008

Revue de presse, ZFS, Dtrace, Opensolaris

BSDCan 2008 ZFS internals Pawel Dawidek le porter de ZFS sur FreeBSD parle du futur commit ZFS et des nouvelles fonctionnalités, c'est aussi un article qui détaille très bien le fonctionnement interne de ZFS, slides de la présentation, voir aussi au passage la prés du portage Dtrace FreeBSD

Je parlais récemment dans ce blog de Sun xVM VirtualBox, le système de virtualisation (comme vmware) qui a des fonctionnalités intéressantes que je n'avais pas vues :

  • Les virtuals machines peuvent être configurées pour être vu en RDP, donc administrable à distance (séquence de boot inclue)
  • iSCSI initiator, des disques iSCSI peuvent être attribués à une VM
  • USB over RDP on peut connecter un device usb et le faire voir à distance par la VM


Opensolaris est plein de surprise, on peut y trouver dans /opt/DTT/Python des scripts pour dtrace, ce qui sous entend que le python d'Opensolaris a été "dtracisé".
Effectivement des probes ont été intégré depuis opensolaris snv 65 à Python 2.4.4 :

49964  python738 libpython2.4.so.1.0                  PyEval_EvalFrame function-entry
49965  python738 libpython2.4.so.1.0                      dtrace_entry function-entry
49966  python738 libpython2.4.so.1.0                  PyEval_EvalFrame function-return
49967  python738 libpython2.4.so.1.0                     dtrace_return function-return

Rappelons qu'Apple avait fait un travail similaire dans Leopard, les probes suivant étant disponibles dans Mac Os X 10.5:

20874 python28356            Python                PyEval_EvalFrameEx function-entry
20875 python28356            Python                PyEval_EvalFrameEx function-return

La doc de Sun sur Dtrace indigeste comme une doc Sun mais complète.

March 6, 2008

Revue de presse

Encore une autre liste des raccourcis sur mac Bien présentée pour une fois

FreeBSD 7.0 est sorti, performance accrue, ZFS ... Une interview très intéressantes de 2 devs FreeBSD qui listent toutes les nouvelles fonctionnalités

YUI le framework js pour les nuls sort une version 2.5.0 De nouveau layout pour la mise en place de vos widgets, un multiuploader, un image cropper ...

Une référence très précise des options de la JVM

Sun s'interesse enfin un peu plus à Python

Python-dateutil Une extension a datetime de librarie standard avec par exemple: Computing of relative deltas (next month, next year, next monday, last week of month, etc)

Solaris LDOM

Dtrace oneliner Une liste de script Dtrace sur une ligne (pour Solaris et OSX)

Des cartes de l'europe avec des criteres comme la couleur des chveux ou des yeus, ou les pays avec interdiction de fumer dans les lieux publics