Friday, August 28, 2009

Xen: Bringing up multiple dummy network interfaces

A first attempt was to use the usual modprobe to load the dummy module with the alias dummy1
modprobe -o dummy1--ignore-install dummy
The response was quite fast
FATAL: Error inserting dummy (/lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko): Operation not permitted
Googling around gave me a hint to sitting the number of dummies, so I vimed the /etc/modprobe.conf and added the line
options dummy numdummies=2
Running the command again with the verbose mode (-v) showed the following
insmod /lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko numdummies=2
FATAL: Error inserting dummy (/lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko): Operation not permitted

Meaning that modprobe eventually calls insmod so I tried calling it directly and it responded with the error
insmod: error inserting '/lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko': -1 File exists
So to sum up calling modprobe again was as dump as possible because module already loaded, all u have to do is to go direct to insmod, unload the dummy module
rmmod dummy
Then reload it with the option numdummies
insmod /lib/modules/2.6.18-128.1.16.el5xen/kernel/drivers/net/dummy.ko numdummies=2
This would create 2 dummy interfaces shown by
ls -al /sys/class/net/
Last would be to configure your dummy interface using ifconfig
ifconfig dummy1 192.168.0.2 netmask 255.255.255.0

Thursday, February 26, 2009

أطياف رضوي عاشور



من أطياف رضوي عاشور
"في قرطبة قبل خمسة أعوام و علي مدخل مسجدها الجامع رأيت رجلا اسرائليا و امرأته وبدا لي رغم أني لا أعرف العبرية أنهما يتشاجران. تساءلت ان كان القبح البادي علي وجهيهما اسقاطا لمشاعري عليهما أم أنهما فعلا قبيحان"
"أتذكر الان مقال جان جنييه اربع ساعات في شاتيلا. يقول جنيه:
قبل حرب الجزائر في فرنسا لم يكن العرب يتسمون بالجمال فهيأتهم ثقيلة و خطواتهم متباطئة ووجوهم معوجة . و فجأة حلاهم النصر. و لكن قًبل أن يتحول ذلك النصر الي شئ مبهر، عندما كان أكثر من نصف مليون فرنسي يلقون حتفهم و ينتهون في الاوراس و في الجزائر كلها، كان بالامكان ملاحظة تلك الظاهرة الغريبة التي تعتمل غلي وجه العمال العرب و في أجسادهم: شئ كالجمال يقترب، كحدس بجمال مازال هشا وان كان سيخطف الابصار عندما تسقط القشور عن جلودهم و أعيننا و كان لابد من قبول ذلك الامر الجلي:
انهم تحرروا سياسياً ليظهروا بالشكل الذي ينبغي علينا أن نراهم به ، غاية في الجمال.
و لما كان هذا الجمال جديداً، أي وليدً،أي بريئاً، فقد كان نضراً و حيا الي حد اكتشافه الفوري لذلك الذي يربط بينه و بين كل جمال في هذا العالم ينتزع نفسه من العار "

Monday, December 1, 2008

Still Under Construction

Playing a little bit with Css. Found some cool feature with Css3 on www.css3.info. It is the ability to set the border with an image. It goes like that:
border-image: url(border.png) 27 27 27 27 round round;
This should eliminate the need for a fixed height background if you want to shape both upper & lower border or to set the back ground for the parent div with the upper border image & a child div with the lower border one.
The page also mentioned the feature currently works for safari and firefox3.1

Saturday, November 29, 2008

Blog Under Construction

Both my soul & the blog are UNDER CONSTRUCTION