|
That's not a published item! You are not allowed to see the content of this item!
[ Source ]
Create virtual machines with vmware-server
Created: 2007-11-28 23:19:00
Modified: 2008-11-20 01:29:00 Categories: tools server Keywords: vmware virtualisation Description: vmware is a tool to create virtual computer, it let you create virtual computers ready for testing purpose. Vmware virtual computers can be use for production servers too Table Of ContentsIntroduction
During the install, you will be asked to enter a license key. You should need
to get a license key from the website of Note that there's currently a new version of Installing vmwareExtract the compressed file. tar xfv VMware-server-1.0.4-56528.tar.gz cd vmware-server-distrib Start the installer: ./vmware-install.pl Follow the steps indicated on screen. You need to answer a bunch of questions.
The default may be good. If you want to do it right, you should install the
stuff in Then you get maybe an error about the 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. Your kernel was built with "gcc" version "4.1.3", while you are trying to use "/usr/bin/gcc" version "4.2.3". This configuration is not recommended and VMware Server may crash if you'll continue. Please try to use exactly same compiler as one used for building your kernel. Do you want to go with compiler "/usr/bin/gcc" version "4.2.3" anyway? [no] If you get this error you should need to install aptitude install gcc-4.1 And set the environment variable and start the install again: CC=gcc-4.1 ./vmware-install.pl You should not get any error now. Tracking the vmware install with pacopaco -lp vmware-server-1.0.3 "./vmware-install.pl" Or for the any-any patch: paco -lp vmware-server-1.0.3 "./runme.pl Installing vmware tools on a guestThe Before installing the vmware-tools you need to have the kernel headers of your current running kernel installed. aptitude install linux-headers-`uname -r` mount /cdrom cd /tmp tar zxf /cdrom/VMwareTools-1.0.4-56528.tar.gz cd vmware-tools-distrib ./vmware-install.pl Answer the different questions that are asked. The default should be right. Once installed restart X if you where in x. To be able to make use of all the features of the vmware-toolbox --iconify & For Gnome: Desktop > Preferences > Sessions > Startup Programs Click there on the In the cli consoleStarting a virtual machinevmware-cmd /mnt/data/vmware/gentoo2007/gentoo2007.vmx start Errorserrors lost some interrupts at xHzIf you get some error with dmesg like this: rtc: lost some interrupts at 512Hz. You may need to do tweak the config file tools.timeSync = true host.useFastClock = FALSE monitor_control.virtual_rdtsc = FALSE Switching of vt with vmware in GNU/LinuxIf you press
dummy interfacesThis is some experimental notes as well as tests. The issue is that i have a box that is connected directly to the internet, this box receive an IP from the ISP. On this same box, vmware-server is installed. The goal is to use one PC that has a direct internet connection, where only one network card is available and to use this box a vmware-server. So that i can test network related stuff, such as a bind, dhcp server on virtual machines. This approach tries to have a little as possible of consequences if the test server get compromised because of an insecure setup. As i can get up to 4 different IP's. Some are used for test purpose. On the
vmware server box, i create a dummy interface, gave him as IP Here's some basic drawing of the network: ------------
[ ISP Router ]
------------
| -------------
`-- [ Switch (5p) ]
-------------
| | | ----------------------
| | `- [ Digibox (TV) ]
| | ----------------------
| | ----------------------
| `-- [ Wifi router (4p) ]
| ----------------------
-------------
[ Switch (8p) ]
-------------
| | ----------------------
| `-- [ TEST SERVER + Vmware ]
| ----------------------
| ----------------------
`----- [ GATEWAY SERVER ]
----------------------
|
-------------
[ Switch (8p) ]
-------------
| | | | | | | | ----------------------
| | | | | | | `- [ File/auth server ]
| | | | | | | ----------------------
| | | | | | `--- [ Web server ]
| | | | | | ----------------------
| | | | | `----- [ Main PC ]
| | | | | ----------------------
. . . . .
On client side, we can setup different network setup's. With this, i mean in the vmware's network options of the virtual machine:
On server side: modprobe dummy echo 192.168.0.1 $HOSTNAME >> /etc/hosts In auto dummy0
allow-hotplug dummy0
iface dummy0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 192.168.0.20
# dns-search pinguin
To load the dummy module at boot time: echo dummy >> /etc/modules Extra toolsvmware-muiVmware provide also a nice web interface to manage virtual machines. Installing is peace of cake. Extract the ./vmware-install.pl Once instaled, you may point your browser to https://localhost:8333/. Log in with a regular user of the system or as root user if you plan to manage some more things. Resources
Comments leaved by users (total: 0)
Add a comment[ Toggle on/off history ] Item History:
|
|
||||||||||||||||||||||||||||||||