VMWare Linux parameter: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 33: Line 33:
<source lang=bash>
<source lang=bash>
# chmod 755 /etc/kernel/header_postinst.d/vmware
# chmod 755 /etc/kernel/header_postinst.d/vmware
</source>
==Source from VMWare==
<source lang=bash>
# aptitude install module-assistant
</source>
<source lang=bash>
# aptitude install vmware-tools-foundation vmware-tools-vmxnet-common
</source>
<source lang=bash>
# aptitude install vmware-tools-vmxnet-modules-source
</source>
<source lang=bash>
# aptitude install linux-{image,headers}-3.2.0-52-virtual
</source>
<source lang=bash>
# m-a --text-mode --kvers-list 3.2.0-52-virtual build vmware-tools-vmxnet-modules
# m-a --text-mode --kvers-list 3.2.0-52-virtual install vmware-tools-vmxnet-modules
</source>
</source>

Revision as of 16:51, 2 September 2013

Kategorie:VMWare

/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

# aptitude install module-assistant
# aptitude install vmware-tools-foundation vmware-tools-vmxnet-common
# aptitude install vmware-tools-vmxnet-modules-source
# aptitude install linux-{image,headers}-3.2.0-52-virtual
# m-a --text-mode --kvers-list 3.2.0-52-virtual build vmware-tools-vmxnet-modules
# m-a --text-mode --kvers-list 3.2.0-52-virtual install vmware-tools-vmxnet-modules