Koozali.org: home of the SME Server

xen with sme

Offline k0r54

  • ****
  • 111
  • +0/-0
xen with sme
« on: November 17, 2006, 10:35:35 AM »
Hi,

I have found this tut for installing xen on sme server. I have sme server 7 everything is done up to the this bit in the tutorial but i get completly lost at the bit below.

Code: [Select]

cd /usr/src/linux-2.6.9-11.EL (or make sure you are in your source directory)
cp configs/config-for-my-kernel .config (find out your correct kernel with 'uname -a')
make oldconfig
make include/asm
make include/linux/version.h
make SUBDIRS=scripts


In /usr/src there is no linux folder I only have redhat and in that is SOURCES  but that has nothing either.

Tut: -
http://no.longer.valid/phpwiki/index.php/SME%20Server%20as%20Xen%20Host

If anyone has any better tuts or advice on this one please let me know.

Thanks
Adam

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
Compiling SRC
« Reply #1 on: November 22, 2006, 10:26:07 PM »
Hi

You'll need to get a compiling environment for SME 7

yum --enablerepo=base install gcc cpp

(Maybe more...)

then create a link pointing to your kernel-source, as seen in my SME box:

# ls -l
insgesamt 8
drwxr-xr-x  3 root root 4096  8. Apr 2006  kernels
lrwxrwxrwx  1 root root   33  8. Apr 2006  linux -> /usr/src/kernels/2.6.9-34.EL-i686
drwxr-xr-x  7 root root 4096  1. Jan 2006  redhat
#

That should help...

Youe mileage may vary...

Andy

Offline cjensen

  • *
  • 133
  • +0/-0
    • http://acenet-tech.org
xen with sme
« Reply #2 on: November 23, 2006, 03:40:29 AM »
... Or better yet, if you have an old machine make it your 'dev-box'.  Install CentOS (choosing to install the developement packages at install), e-smith-lib, e-smith-devtools, and any dependencies for zen.  This is at least what is recommended because as you may already know installing these dev packages on a live web connected server opens up undesired opportunities (for you) to anyone who may hack in.

That said, Zen looks like it may provide a nice virtual setup for developing.  Maybe other SME dev people have tried it as such??  Let us know how you fare.

Craig

Offline andy_wismer

  • *
  • 107
  • +0/-0
    • ANWI-Net
xen with sme
« Reply #3 on: November 23, 2006, 11:38:36 AM »
Hi

I do most of my developing - not on Centos, but on SME7. But I don't really have to worry, as my developer SME is "only" a VMWare machine I use for developing. It is in no way productive or connected - unless I need some updates, contribs or devel-stuff, I'll allow it to use NAT.

The whole thing is on my Notebook with a 8 GB Partition. I also have a current copy of this developer" SME on my home PC and my office PC.

If someone hacks your box, he's glad if you've already got all the tools in place to download and compile his rotten stuff: In-LAN Sniffer, IRC-Bots, Spam-Tools or even RootKits.

But I find it helpful, especially Iif I want to integrate a product with SME that I can try it out the way it will be running. Centos doesn't have the same run system as SME with run level 7 and other SME specific stuff...

If you must use a compiler environment like GCC on a productive box, be sure to remove it when you're finished!

Cheers

Andy