Brute Networking

Building brute networks

Previous Entry Share Next Entry
[технология] Установка Fedora 6 + VMware Server 1.0.3
Router
brutenet
(писал на английском, переводить очень не хочется)

Install Fedora (can be downloaded here http://mirrors.fedoraproject.org/publiclist):
Remove all graphic packages (gnome, x, administration...)
After such setup FC6 will use approx. 950 Mb of disk space + swap
FC6 uses about 100 Mb of RAM

Disable unneded services:

chkconfig bluetooth off
# printing
chkconfig cups off
# console mouse
chkconfig gpm off
# HID
chkconfig hidd off
chkconfig ip6tables off
chkconfig isdn off
chkconfig nfs off
chkconfig nfslock off
# PC/SC Smart Card Daemon
chkconfig pcscd off
chkconfig portmap off
chkconfig rpcidmapd off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig rpcsvcgssd off

yum -y install kernel kernel-devel

If different versions (or archs) installed like this, use the last kernels:

rpm -aq | grep kernel
rpm -e kernel-2.6.20-1.2948.fc6
wget http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/i386/kernel-2.6.20-1.2948.fc6.i686.rpm
rpm -i kernel-2.6.20-1.2948.fc6.i686.rpm

shutdown -r now

(Choose correct kernel on boot - usually not needed)

yum -y install mc gcc gcc-c++ xinetd

wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.3-44356.i386.rpm
wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.3-44356.tar.gz

wget http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update110.tar.gz

rpm -i VMware-server-1.0.3-44356.i386.rpm
tar -xzf vmware-any-any-update110.tar.gz
cd vmware-any-any-update110
./runme.pl

[root@fedora vmware-any-any-update110]# ./runme.pl
Updating /usr/bin/vmware-config.pl ... now patched
The file /usr/lib/vmware/modules/source/vmmon.tar that this script was about to
install already exists. Overwrite? [yes]

The file /usr/lib/vmware/modules/source/vmnet.tar that this script was about to
install already exists. Overwrite? [yes]

Updating /usr/bin/vmware ... No patch needed/available
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.

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

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor [ OK ]

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.

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

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.20-1.2948.fc6/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.20-1.2948.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2948.fc6-i686'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
cc1plus: warning: command line option "-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV321]_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1522: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1523: warning: _Д?sysenterState.SysenterStateV45::rip_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV3]_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1522: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1523: warning: _Д?sysenterState.SysenterStateV45::rip_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageGSX1]_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1522: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1523: warning: _Д?sysenterState.SysenterStateV45::rip_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV2]_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1522: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1523: warning: _Д?sysenterState.SysenterStateV45::rip_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?int Vmx86_RunVM_V4(VMDriver*, Vcpuid) [with VMCrossPage = VMCrossPageV4]_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::rip_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?int Vmx86_RunVM(VMDriver*, Vcpuid)_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1522: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1523: warning: _Д?sysenterState.SysenterStateV45::rip_Д? is used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::rip_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:2073: warning: _Д?sysenterState.SysenterStateV45::rip_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h: In function _Д?void Task_Switch_V45(VMDriver*, Vcpuid)_Д?:
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: _Д?sysenterState.SysenterStateV45::validEIP_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: _Д?sysenterState.SysenterStateV45::cs_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: _Д?sysenterState.SysenterStateV45::rsp_Д? may be used uninitialized in this function
/tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: _Д?sysenterState.SysenterStateV45::rip_Д? may be used uninitialized in this function
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/compat.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2948.fc6-i686'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
The module loads perfectly in the running kernel.

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

Configuring a bridged network for vmnet0.

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

All your ethernet interfaces are already bridged.

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

Configuring a NAT network for vmnet8.

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 172.16.231.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 172.16.231.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.

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.41.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 192.168.41.0.

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

Extracting the sources of the vmnet module.

Building the vmnet module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.20-1.2948.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2948.fc6-i686'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
CC [M] /tmp/vmware-config0/vmnet-only/netif.o
CC [M] /tmp/vmware-config0/vmnet-only/bridge.o
CC [M] /tmp/vmware-config0/vmnet-only/filter.o
CC [M] /tmp/vmware-config0/vmnet-only/procfs.o
CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o
CC [M] /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2948.fc6-i686'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
The module loads perfectly in the running kernel.

The default port : 902 is not free. We have selected a suitable alternative
port for VMware Server use. You may override this value now.
Remember to use this port when connecting to this server.
Please specify a port for remote console connections to use [904]

WARNING: VMware Server has been configured to run on a port different from the
default port. Remember to use this port when connecting to this server.

Останавливается xinetd: [ OK ]
Запускается xinetd: [ OK ]
Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API.

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

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

The path "/var/lib/vmware/Virtual 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: 98EH4-YH309-2C207-417J1

Starting VMware services:
Virtual machine monitor [ OK ]
Virtual ethernet [ OK ]
Bridged networking on /dev/vmnet0 [ OK ]
Host-only networking on /dev/vmnet1 (background) [ OK ]
Host-only networking on /dev/vmnet8 (background) [ OK ]
NAT service on /dev/vmnet8 [ OK ]

The configuration of VMware Server 1.0.3 build-44356 for Linux for this running
kernel completed successfully.
Лицензионные ключи можно получить на сайте VMware.com в разделе Download.


tar -xzf VMware-mui-1.0.3-44356.tar.gz
cd ../vmware-mui-distrib/
./vmware-install.pl

Installing the content of the package.

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/rc.d]

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

In which directory do you want to install the VMware Management Interface
files? [/usr/lib/vmware-mui]

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

In which directory would you like to install the documentation files?
[/usr/lib/vmware-mui/doc]

The path "/usr/lib/vmware-mui/doc" 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 Management Interface 1.0.3 build-44356 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-mui.pl".

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

Configuring httpd.conf to run Apache as:
User: nobody and Group: nobody

Set the number of minutes before a http session times out. (This is the length
of time before someone connecting to VMware Management Interface will be logged
out) [60]

Generating SSL Server Certificate

Starting httpd.vmware: [ OK ]
The configuration of VMware Management Interface completed successfully.


Now you can test everything (but do not forget to disable or setup iptables).
Now installation uses 1.7 Gb

?

Log in