VMServer pour dedibox et superplan

Un brouillon publique de l’installation de VMServer 1

    1 / Kernel

debian etch :

# apt-get install bzip2 make gcc binutils-doc gcc-4.1-locales libc6-dev-amd64 lib64gcc1 lib64ssp0 cpp-2.95-doc manpages-dev autoconf automake1.9 libtool flex bison gdb glibc-doc ncurses-bin libncurses5-dev zip unzip arj mc libglib2.0-data autoconf2.13 automake1.4 binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ vim lm-sensors smartmontools debhelper modutils kernel-package libncurses5-dev fakeroot screen

debian etch :

#apt-get install g++ libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 module-init-tools libice6 libxrender1 libxt6 libxi6

debian sarge :

apt-get install bzip2 make gcc binutils-doc lib64gcc1 cpp-2.95-doc manpages-dev autoconf automake1.9 libtool flex bison gdb glibc-doc ncurses-bin libncurses5-dev zip unzip arj mc libglib2.0-data autoconf2.13 automake1.4 binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ vim lm-sensors smartmontools debhelper modutils kernel-package libncurses5-dev fakeroot screen

debian sarge :

#apt-get install g++ libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 module-init-tools libice6 libxrender1 libxt6 libxi6

ubuntu dapper :

# apt-get install bzip2 make gcc binutils-doc gcc-4.0-locales libc6-dev-amd64 lib64gcc1 cpp-2.95-doc manpages-dev autoconf automake1.9 libtool flex bison gdb glibc-doc ncurses-bin libncurses5-dev zip unzip arj mc libglib2.0-data autoconf2.13 automake1.4 binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ vim lm-sensors smartmontools debhelper modutils kernel-package libncurses5-dev fakeroot screen

ubuntu dapper :

#apt-get install g++ libx11-6 libx11-dev libxtst6 module-init-tools libice6 libxrender1 libxt6 libxi6

Ajouter les headers ou recompiler le kernel avec les modules activé.

    Dedibox

#mkdir kernel
#cd kernel
#wget ftp://ftp.dedibox.fr/pub/dedibox/kernel/r7/src/src-dedibox-r7-beta1.tar.gz
#tar zxvf src-dedibox-r7-beta1.tar.gz
#cd linux-2.6.20.6/
#wget ftp://ftp.dedibox.fr/pub/dedibox/kernel/r7/src/config-dedibox-r7.txt

    kimsufi

#mkdir kernel
#cd kernel
#wget ftp://ftp.free.fr/pub/linux/kernel/v2.6/linux-2.6.20.3.tar.bz2
#tar jxvf linux-2.6.20.3.tar.bz2
#cd linux-2.6.20.3/
#wget http://www.artiflo.org/Kernel/OVH/Superplan2007/2.6.20.3-artiflo-core2duo.conf

    Compilation

#make clean
#make-dpkg clean
#make menuconfig
« Load an Alternate Configuration File » > config-dedibox-r7.txt
#make bzImage
#make modules
#make modules_install
#make install

# cp arch/i386/boot/bzImage /boot/bzImage-2.6.20.3-core2duo-artiflo-v2
# cp -R linux-2.6.20.6/ /usr/src/linux-2.6.20.6

# nano /boot/grub/menu.lst

title           Ubuntu, kernel 2.6.20.6
root            (hd0,0)
kernel          /vmlinuz root=/dev/sda2 ro quiet splash
savedefault
boot

#nano /etc/lilo.conf
#/sbin/lilo

    2 / Install VMWARE server

#mkdir /var/vm
#mkdir vmware
#cd vmware
#wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.4-56528.tar.gz

#tar zxvf VMware-server-1.0.4-56528.tar.gz

#cd vmware-server-distrib
#./vmware-install.pl

#/usr/src/linux-2.6.20.6/include/

    3 / Install patch VMWARE server

# http://knihovny.cvut.cz/ftp/pub/vmware/
# cd ..
# cd ..
#wget http://www.artiflo.org/VMSERVER/vmware-any-any-update113.tar.gz

#tar -zxvf vmware-any-any-update113.tar.gz
#cd vmware-any-any-update113
#./runme.pl

Récupérer les clés gratuite sur le site de vmware server.

4 / Install VMWARE MUI

# cd ..
#wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.4-56528.tar.gz
#tar -zxvf VMware-mui-1.0.4-56528.tar.gz
#cd vmware-mui-distrib

#./vmware-install.pl

Vous pouvez tester

https://88.191.34.xxx:8333

    5 / NAT

# nano /etc/vmware/vmnet8/nat/nat.conf

[incomingtcp]
3389 = 192.168.225.128:3389

/usr/lib/vmware/net-services.sh restart

    6 / Source

http://wattazoum.fr/spip.php?article57

http://bilfous.free.fr/Datas/vmware-any-any-update108.tar.gz

http://www.howtoforge.com/debian_sarge_vmware_server_howto

/sbin/killall5

Do you want to be able to use host-only networking in your virtual machines?
[yes] no

    TROUBLESHOOT :
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

#cd /usr/lib/vmware/lib/libgcc_s.so.1/
#sudo mv libgcc_s.so.1 libgcc_s.so.1.bkp
#sudo ln -s /lib/libgcc_s.so.1 .
#sudo ldconfig

Dec 5 03:00:24 geronimo vmware-authd[11426]: PAM unable to dlopen(/lib/security/pam_unix2.so)
Dec 5 03:00:24 geronimo vmware-authd[11426]: PAM [dlerror: /lib/security/pam_unix2.so: cannot open shared object file: No such file or directory]
Dec 5 03:00:24 geronimo vmware-authd[11426]: PAM adding faulty module: /lib/security/pam_unix2.so

#auth sufficient /lib/security/pam_unix2.so shadow nullok
#auth required /lib/security/pam_unix_auth.so shadow nullok
#account sufficient /lib/security/pam_unix2.so
#account required /lib/security/pam_unix_acct.so

https://bugs.launchpad.net/ubuntu/+bug/112937

hammer ~ # cat /etc/pam.d/vmware-authd
#%PAM-1.0
auth sufficient pam_unix.so shadow nullok
auth required pam_unix_auth.so shadow nullok
account sufficient pam_unix.so
account required pam_unix_acct.so

/etc/pam.d/vmware-authd

#%PAM-1.0

@include common-auth
@include common-account