Montag, 19. Mai 2008

aufs with openvz and ubuntu

openvz on ubuntu currently only works with linux-image-2.6.24-17-openvz and linux-ubuntu-modules-2.6.24-17-openvz available through "deb http://ppa.launchpad.net/compbrain/ubuntu hardy main".

Thes packages don't contain the aufs module, so it has to be compiled seperately:
apt-get install aufs-source
cd /usr/src
tar xjf aufs.tar.bz2
cd modules/aufs

Apply the following patch:
*** vfsub.h~    2008-02-05 04:44:50.000000000 +0100
--- vfsub.h 2008-05-19 01:45:01.000000000 +0200
***************
*** 33,38 ****
--- 33,39 ----
#include
#endif

+ #define CONFIG_SECURITY_APPARMOR
/* ---------------------------------------------------------------------- */

struct aufs_hin_ignore;


Then compile:
/usr/bin/make -C /usr/src/linux M=/usr/src/modules/aufs modules modules_install

Keine Kommentare: