Skip to content

Blog Net-Expression

Four-tout informatique !

Archive

Tag: server

Installer les paquets nécessaires

# aptitude install dhcp3-server

Si des messages d’erreurs ou avertissements surviennent lorsque le serveur est démarré pour la première fois, c’est normal !

Configurer les étendues de votre réseau (plages d’adresses IP)

# Ce serveur DHCP fait autorite sur ce reseau
authoritative;

# Réglage e la duree des baux
default-lease-time 600;
max-lease-time 7200;

# Options globales (par defaut sur toutes les etendues
option domain-name "domain.tld";
option domain-name-servers dns1.domain.tld, dns2.otherdomain.tld;

# Parametrage d une etendue
subnet 192.168.88.0 netmask 255.255.255.0 {
        range 192.168.88.10 192.168.88.50;
        option routers 192.168.88.1;
}

Configurer les interfaces d’écoute du serveur

Editez le fichier “/etc/default/isc-dhcp-server”

INTERFACES="eth0"

Mettre à jour une zone DNS via le serveur DHCP

Générer la clef de mise à jour DNS

rndc-confgen > /etc/bind/rndc.key

Ajouter l’autorisation de mise à jour du serveur DNS

Editez le fichier “/etc/bind/named.conf.local” en ajoutant les ligne suivantes :
N’oubliez pas de remplacer la clef “MA_CLEF_SECRETE” par celle indiquée dans le fichier : “/etc/bind/rndc.key”


key "rndc-key" {
       algorithm hmac-md5;
       secret "MA_CLEF_SECRETE";
};

controls {
       inet 127.0.0.1 port 953
       allow { 127.0.0.1; } keys { "rndc-key"; };
};

Installer les paquets nécessaires à la compilation

# aptitude install build-essential linux-headers-`uname -r`
# aptitude install make
# aptitude install gcc
# aptitude install psmisc // Evite le message concernant "killall"

Adapter la version de gcc

ln -sf /usr/bin/gcc-4.3 /usr/bin/gcc  // Evite un message concernant la version de gcc lors de la compilation du noyau

Téléchargez, décompressez, et lancer l’installation

Vous devez vous rendre sur le site de vmware pour télécharger l’archive d’installation de vmware server 2…

Personnellement, j’ai choisi “VMware Server 2 for Linux Operating Systems 64-bit version” (environ 452 Mo).
Attention, vous devez créer un compte Vmware pour obtenir une licence d’utilisation de VMware server; c’est gratuit !

# wget ftp://host/VMware-server-2.0.2-203138.x86_64.gz
# tar -zxvf VMware-server-2.0.2-203138.x86_64.gz
# cd vmware-server-distrib
# ./vmware-install.pl

Le jeu des questions / réponses !

Creating a new VMware Server installer database using the tar4 format.

Installing VMware Server.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware]

The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the manual files?
[/usr/share/man]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]

The path "/usr/share/doc/vmware" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Server 2.0.2 build-203138 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes] no

Enjoy,

--the VMware team

Patch du script de configuration

Avant d’utiliser le script “/usr/bin/vmware-config.pl”, il est fortement recommandé de la patcher

# wget http://www.troublenow.org/files/vmware/vmware2.0.2-on-debian6.0.1.tar.gz
 # tar -zxvf vmware2.0.2-on-debian6.0.1.tar.gz
# cd /usr/bin
# patch vmware-config.pl < /home/user/vmware2/vmware-config.pl.diff

Patch des sources

# cd /usr/lib/vmware/modules/source
# for i in *.tar ; do tar xpf $i ; done
# for i in /home/user/vmware2/00-vmware-2.6.32_functional.diff /home/user/vmware2/01-vmware-2.6.32_cosmetic.diff /home/user/vmware2/02-vmnet-include.diff; do patch -p1 < $i; done
# for i in vmci vmmon vmnet vsock ; do tar cpf $i.tar $i-only ; done

Lancement de la config

# cd /usr/bin/
# ./vmware-config.pl

Et les questions reprennent !

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
   Virtual machines                                                   failed
Stopping VMware management services:
   VMware Virtual Infrastructure Web Access
   VMware Server Host Agent                                           failed
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine monitor                                             done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

---

Do you accept? (yes/no) yes

Thank you.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.32-5-amd64/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config3/vmmon-only »
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/hostif.o
/tmp/vmware-config3/vmmon-only/linux/hostif.c:3601:2: warning: #warning current->cred->fsuid = 0;
/tmp/vmware-config3/vmmon-only/linux/hostif.c:3608:2: warning: #warning current->cred->fsuid = fsuid;
/tmp/vmware-config3/vmmon-only/linux/hostif.c:3626:2: warning: #warning cap_lower(current->cred->cap_effective, CAP_SYS_RESOURCE);
  CC [M]  /tmp/vmware-config3/vmmon-only/common/comport.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/hashFunc.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/task.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-config3/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-config3/vmmon-only/vmmon.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
cp -f vmmon.ko ./../vmmon.o
make: quittant le répertoire « /tmp/vmware-config3/vmmon-only »
The vmmon module loads perfectly into the running kernel.

None of the pre-built vmci modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmci module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmci module.

Building the vmci module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config3/vmci-only »
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
  CC [M]  /tmp/vmware-config3/vmci-only/linux/driver.o
  CC [M]  /tmp/vmware-config3/vmci-only/linux/driverLog.o
  CC [M]  /tmp/vmware-config3/vmci-only/linux/vmciKernelIf.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciContext.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciDs.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciEvent.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciGroup.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciProcess.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciQueuePair.o
  CC [M]  /tmp/vmware-config3/vmci-only/common/vmciResource.o
  LD [M]  /tmp/vmware-config3/vmci-only/vmci.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vmci-only/vmci.mod.o
  LD [M]  /tmp/vmware-config3/vmci-only/vmci.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
cp -f vmci.ko ./../vmci.o
make: quittant le répertoire « /tmp/vmware-config3/vmci-only »
The vmci module loads perfectly into the running kernel.

VMWare config patch VMCI!
« /tmp/vmware-config3/vmci-only/Module.symvers » -> « /tmp/vmware-config3/../Module.symvers »
None of the pre-built vsock modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vsock module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vsock module.

VMWare config patch VSOCK!
« /tmp/vmware-config3/../Module.symvers » -> « /tmp/vmware-config3/vsock-only/Module.symvers »
Building the vsock module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config3/vsock-only »
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
  CC [M]  /tmp/vmware-config3/vsock-only/linux/af_vsock.o
  CC [M]  /tmp/vmware-config3/vsock-only/linux/driverLog.o
  CC [M]  /tmp/vmware-config3/vsock-only/linux/util.o
  CC [M]  /tmp/vmware-config3/vsock-only/linux/vsockAddr.o
  LD [M]  /tmp/vmware-config3/vsock-only/vsock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vsock-only/vsock.mod.o
  LD [M]  /tmp/vmware-config3/vsock-only/vsock.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
cp -f vsock.ko ./../vsock.o
make: quittant le répertoire « /tmp/vmware-config3/vsock-only »
The vsock module loads perfectly into the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]

Configuring a bridged network for vmnet0.

Please specify a name for this network.
[Bridged]

Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no]

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]

Configuring a NAT network for vmnet8.

Please specify a name for this network. [NAT]

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]

Probing for an unused private subnet (this can take some time)...

The subnet 192.168.184.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 192.168.184.0.

Do you wish to configure another NAT network? (yes/no) [no]

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

Configuring a host-only network for vmnet1.

Please specify a name for this network.
[HostOnly]

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]

Probing for an unused private subnet (this can take some time)...

Probing for an unused private subnet (this can take some time)...

The subnet 172.16.198.0/255.255.255.0 appears to be unused.

The following host-only networks have been defined:

. vmnet1 is a host-only network on private subnet 172.16.198.0.

Do you wish to configure another host-only network? (yes/no) [no]

None of the pre-built vmnet modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmnet module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config3/vmnet-only »
make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/driver.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/hub.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/userif.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/netif.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/bridge.o
/tmp/vmware-config3/vmnet-only/linux/bridge.c:652:2: warning: #warning EHUD gotta figure out what this does and how to fix it: atomic_add(skb->truesize, &sk->sk_wmem_alloc);
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/filter.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/procfs.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/smac_compat.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/smac.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/vnetEvent.o
  CC [M]  /tmp/vmware-config3/vmnet-only/linux/vnetUserListener.o
  LD [M]  /tmp/vmware-config3/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/vmware-config3/vmnet-only/vmnet.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.32-5-amd64 »
cp -f vmnet.ko ./../vmnet.o
make: quittant le répertoire « /tmp/vmware-config3/vmnet-only »
The vmnet module loads perfectly into the running kernel.

Please specify a port for remote connections to use [902]

Please specify a port for standard http connections to use [8222]

Please specify a port for secure http (https) connections to use [8333]

The current administrative user for VMware Server  is ''.  Would you like to
specify a different administrator? [no]

Using root as the VMware Server administrator.

insserv: script vmware-autostart: service VMware already provided!
insserv: script vmware-core: service VMware already provided!
insserv: script vmware-mgmt: service VMware already provided!
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /var/vmware/machines

The path "/var/vmware/machines" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes]

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  ----

Creating a new VMware VIX API installer database using the tar4 format.

Installing VMware VIX API.

In which directory do you want to install the VMware VIX API binary files?
[/usr/bin]

In which directory do you want to install the VMware VIX API library files?
[/usr/lib/vmware-vix/lib]

The path "/usr/lib/vmware-vix/lib" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the VMware VIX API document pages?
[/usr/share/doc/vmware-vix]

The path "/usr/share/doc/vmware-vix" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware VIX API 1.6.2 build-203138 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-vix.pl".

Enjoy,

--the VMware team

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family:                           done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   done
   Host-only networking on /dev/vmnet1 (background)                    done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet8 (background)                    done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   VMware Server Authentication Daemon (background)                    done
   Shared Memory Available                                             done
Starting VMware management services:
   VMware Server Host Agent (background)                               done
   VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
   Virtual machines                                                    done

The configuration of VMware Server 2.0.2 build-203138 for Linux for this
running kernel completed successfully.

Piouff ! C'est installé !

Si vous avez des problèmes, ou si vous êtes un peu perdu, je vous suggère de visiter la page d'aide concernant l'installation de vmware server sur Squeeze

Net expression propose un serveur ts 3 fr (TeamSpeak 3 français), public, gratuit, fun et sympa pour vos jeux ou pour discuter simplement entre amis.

Un serveur teamspeak 3 pour vos jeux en ligne

Ce serveur teamspeak fourni des salons distincts pour les principaux jeux en ligne : Counter Strike (CS), Battlefield (BF), Call of Duty (COD), Trackmania (TM), Starcraft, World of warcraft (WOW), etc…
Il fournit aussi des espaces de discutions privées pour les teams qui fréquentent régulièrement le serveur.

Projets informatiques / programmation / développement / entre-aide

Un canal est réservé spécialement à l’entre aide et à l’échange en informatique.

Configurez votre client Teamspeak 3 pour y accéder :

  • Hote : ts3.net-expression.com
  • Port : 9987
  • Pseudo / mot de passe : vous choisissez
  • Nombre de slots : 512 slots
  • Langue : parler français n’est pas une obligation (du moment qu’on respecte les autres règles) !

Pour toute réclamation, idée, critique, remarque, n’hésitez pas à poster un message sur le Forum du serveur teamspeak 3 public de Net expression.