VMWare Linux parameter: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Kategorie:VMWare]]
[[Kategorie:VMWare]][[Kategorie:Ubuntu]]
 
==/etc/sysctl.conf==
==/etc/sysctl.conf==



Revision as of 11:04, 4 February 2014

Kategorie:VMWareKategorie:Ubuntu

/etc/sysctl.conf

# vm.swappiness = 0	The kernel will swap only to avoid an out of memory condition.
vm.swappiness = 0

# TCP SYN Flood Protection
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_synack_retries = 3

Pinning kernel to 2.6 for ESX 4.1

Create /etc/apt/preferences.d/linux-image with this content:

Package: linux-image-server linux-server linux-headers-server
Pin: version 2.6.*
Pin-Priority: 1000

Autobuild of kernel drivers

Create /etc/kernel/header_postinst.d/vmware :

#!/bin/bash

# We're passed the version of the kernel being installed
inst_kern=$1

/usr/bin/vmware-config-tools.pl  --modules-only --default --kernel-version ${inst_kern}
# chmod 755 /etc/kernel/header_postinst.d/vmware


Source from VMWare

After you removed previously installed vmware-tools, just follow these steps:

1. Add this to your /etc/apt/sources.list:

deb http://packages.vmware.com/tools/esx/latest/ubuntu precise main
gpg --search C0B5E0AB66FD4949 # hinzufügen (1)
gpg -a --export  C0B5E0AB66FD4949 | apt-key add --
apt-get install vmware-tools-core vmware-tools-esx-nox vmware-tools-foundation \
                vmware-tools-guestlib vmware-tools-libraries-nox vmware-tools-libraries-x \
                vmware-tools-plugins-autoupgrade vmware-tools-plugins-deploypkg \
                vmware-tools-plugins-grabbitmqproxy vmware-tools-plugins-guestinfo \
                vmware-tools-plugins-hgfsserver vmware-tools-plugins-powerops \
                vmware-tools-plugins-timesync vmware-tools-plugins-vix \
                vmware-tools-plugins-vmbackup vmware-tools-services vmware-tools-user

2. Update your package database:

# aptitude update

3. Get Module-Assistant:

# aptitude install module-assistant

4. Get the base packages:

# aptitude install vmware-tools-foundation vmware-tools-libraries-nox vmware-tools-guestlib vmware-tools-core

5. Get the modules:

# aptitude install vmware-tools-{vmci,vmxnet,vsock,vmblock,vmhgfs,vmsync}-common
# aptitude install vmware-tools-{vmci,vmxnet,vsock,vmblock,vmhgfs,vmsync}-modules-source

6. Get kernel and headers:

# aptitude install linux-{image,headers}-3.2.0-52-generic

7. Compile and install the modules with module assistant

# m-a prepare --kvers-list 3.2.0-52-generic
# m-a --text-mode --kvers-list 3.2.0-52-generic build vmware-tools-{vmci,vmxnet,vsock,vmblock,vmhgfs,vmsync}-modules
# m-a --text-mode --kvers-list 3.2.0-52-generic install vmware-tools-{vmci,vmxnet,vsock,vmblock,vmhgfs,vmsync}-modules

Minimal /etc/vmware-tools/config

libdir = "/usr/lib/vmware-tools"