Install Ubuntu 8.04.1 server add: Select SSH server Select Samba server Login via SSH and become root (sudo su): -- Networking ------------------------------------------------------------------------------------------------------------- Set static IP if you want: nano /etc/network/interfaces Find row: iface eth0 inet dhcp Change it to: iface eth0 inet static Then and add the following lines: address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 gateway 192.168.1.1 broadcast 192.168.1.255 Save and exit. Set static DNS: nano /etc/resolv.conf Enter your DNS name and DNS server IP: search your.domain.corp nameserver 192.168.1.200 Save and exit If you want to start using your new settings at once, restart the networking (you will lose the SSH connection): /etc/init.d/networking restart -- Source lists ----------------------------------------------------------------------------------------------------------- Edit the source list: nano /etc/apt/sources.list Add Webmin: # Webmin repository deb http://download.webmin.com/download/repository sarge contrib Activate: deb http://se.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://se.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse And activate: deb http://archive.canonical.com/ubuntu hardy partner deb-src http://archive.canonical.com/ubuntu hardy partner Save and exit. -- Remove CTRL ALT Del Reboot --------------------------------------------------------------------------------------------- Remove CTRL + ALT + DEL - Auto Reboot function: nano /etc/event.d/control-alt-delete Comment out: # start on control-alt-delete # exec /sbin/shutdown -r now "Control-Alt-Delete pressed" -- Blacklist PC-Speaker --------------------------------------------------------------------------------------------------- Blacklist the PC-Speaker module: nano /etc/modprobe.d/blacklist Add the following: # PC-Speaker blacklist pcspkr -- Update all pakages ----------------------------------------------------------------------------------------------------- Update repository lists and packets. apt-get update apt-get upgrade Restart! -- Install WebMin --------------------------------------------------------------------------------------------------------- Install Webmin apt-get install webmin When done you can surf to: https://[YOUR IP]:10000 Login with your account. Configure Samba using Webmin.... My suggestion is (if you have your server on the inside of a firewall) to add two shares. One share for ISO files and one share where you will put all your Virtual Machines. That way you can easily copy both machines and ISOs from any computer in the network. Very handy. :) -- Install WMWare Server -------------------------------------------------------------------------------------------------- Install the needed thnigs for WMWare: apt-get install build-essential xinetd linux-headers-`uname -r` libx11-6 libxrender1 libxt6 libxtst6 libXi6 if 64 Bit add: apt-get install ia32-libs Download VMWare files to your download dir: cd ~ mkdir downlaod chmod 777 -R download cd download wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.7-108231.tar.gz (wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.7-108231.tar.gz) - Only if you want to use web access Unpack them: tar -zxvf VMware-server-1.0.7-108231.tar.gz (tar -zxvf VMware-mui-1.0.7-108231.tar.gz) Install VMware: cd vmware-server-distrib ./vmware-install.pl Answer default on all questions, if you don't have any better ideas. Tip: I would move the "machines" to another folder.... Enter the serial, register here if you don't have one: http://register.vmware.com/content/registration.html cd .. -- Install WMWare Server Web Interface ------------------------------------------------------------------------------------ Install VMWare MUI - Web interface - Only if you want Only do this if the MUI fails to install: ln -sf /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1 ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0 Now start the installation: cd vmware-mui-distrib ./vmware-install.pl It will "fail" to start the http service, the do: cd .. wget http://www.iki.fi/kuparine/comp/ubuntu/en/httpd.vmware.diff (wget http://www.snille.net/downloads/vmware/httpd.vmware.diff) patch -b -p0 < httpd.vmware.diff Restart to get the MUI up and running. When restarted you can surf to: https://[YOUR IP]:8333/vmware/en/ Login with your account. -- Fix USB-Devices -------------------------------------------------------------------------------------------------------- Get your USB deviced to work on the Guests (devices don't show up on the "removable devices" on the guest). On your HOST, edit the mountdevsubfs.sh file and go to line 42: nano /etc/init.d/mountdevsubfs.sh At line 42 and forth you will find: #mkdir -p /dev/bus/usb/.usbfs #domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644 #ln -s .usbfs/devices /dev/bus/usb/devices #mount --rbind /dev/bus/usb /proc/bus/usb Remove the # infront of all 4 lines: mkdir -p /dev/bus/usb/.usbfs domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644 ln -s .usbfs/devices /dev/bus/usb/devices mount --rbind /dev/bus/usb /proc/bus/usb Save and exit. Edit the fstab file: nano /etc/fstab Add the following: usbfs /proc/bus/usb usbfs auto 0 0 Save and exit. Restart! -- Install Server Client ------------------------------------------------------------------------------------------------- Downlad the "VMWare Client" here: Linux : http://download3.vmware.com/software/vmserver/VMware-server-linux-client-1.0.7-108231.zip Windows: http://download3.vmware.com/software/vmserver/VMware-server-win32-client-1.0.7-108231.zip If you are going to install the VMWare server client (console) on Ubuntu 8.04.1 (Desktop) you need to do the following after installing it. cd /usr/lib/vmware-server-console/lib/libgcc_s.so.1 mv libgcc_s.so.1 libgcc_s.so.1.org cd ../libpng12.so.0 mv libpng12.so.0 libpng12.so.0.org Try it, if it still don't work do this to: cd /usr/lib/vmware/lib mkdir bak mv libgcc_s.so.1/libgcc_s.so.1 bak/ -- Problem starting your imported Guest ---------------------------------------------------------------------------------- Rights problem: If you cant start your VMWare machine, and it complains about rights. Check so that you have a .vmware folder in ~/.vmware and have rights to it. Also check the rights to the actual VMWare machine folder. If you copy machines with "Samba" (from a windows machine to a share) "nobody" and "nowone" is set as the owner and owner groups! -- Install a Guest ------------------------------------------------------------------------------------------------------- Install a Ubuntu guest: Install Ubuntu server in a new virtual machine. Add atleast the SSH-Server. When you have installed the virtual machine you will see the syslog filling on the host. Something like this: host clock rate change request 0 -> 19 host clock rate change request 19 -> 0 host clock rate change request 0 -> 250 host clock rate change request 250 -> 0 host clock rate change request 0 -> 483 host clock rate change request 483 -> 733 host clock rate change request 733 -> 868 host clock rate change request 868 -> 0 host clock rate change request 0 -> 212 host clock rate change request 212 -> 287 host clock rate change request 287 -> 297 host clock rate change request 297 -> 804 host clock rate change request 804 -> 833 host clock rate change request 833 -> 942 This can be fixed the follwing way: Log in to your new virtual machine. Edit the menu.lst file: sudo nano /boot/grub/menu.lst add "clock=pit" to the "kernel line" in default startup like so: This below example is form a Ubuntu 7.10 guest. ----------------------- Cut ----------------------- ## ## End Default Options ## title Ubuntu 7.10, kernel 2.6.22-14-server root (hd0,0) kernel /boot/vmlinuz-2.6.22-14-server root=UUID=53527d0a-29d5-440b-ade5-e5818ed129b5 ro quiet splash clock=pit initrd /boot/initrd.img-2.6.22-14-server quiet ----------------------- Cut ----------------------- You can also do this: You can also prevent /dev/rtc from being used. This will generally cause clocks to run slow in any virtual machines you have that need the additional interrupts, but that may be acceptable to you, depending on your application. To do so, add the following setting to each virtual machine's .vmx configuration file, or add the setting globally to the host's configuration file (/etc/vmware/config): host.useFastClock = FALSE To set the clock using NTP instead in the virtual machine: apt-get install ntp nano /etc/ntp.conf add the server(s) you want - Look here: http://www.pool.ntp.org/zone/europe find one that fits your location. add it above the ubuntu one, like so: # You do need to talk to an NTP server or two (or three). server se.pool.ntp.org server ntp.ubuntu.com -- Install pfSense as a Guest -------------------------------------------------------------------------------------------- Install a pfSense firewall as a guest: Set this to get rid of the logfilling on your host: You can also prevent /dev/rtc from being used. This will generally cause clocks to run slow in any virtual machines you have that need the additional interrupts, but that may be acceptable to you, depending on your application. To do so, add the following setting to each virtual machine's .vmx configuration file, or add the setting globally to the host's configuration file (/etc/vmware/config): host.useFastClock = FALSE The time will be fu*ked up... But it does not really matter in this case... :) Install VMWare-Tools info: http://forum.pfsense.org/index.php/topic,7271.0.html