Tuesday, July 19, 2011

Ubuntu Server 10.04.2 VM Basic Configuration

 + +
Required tools:
  • VMware Worstation
  • Ubuntu Server 10.04.2
  • Kitty (Putty ssh client fork)
I suppose that You know how to setup plain VM via VMware.
And here is my basic Ubuntu VM configuration:
  1. Ubuntu Server 10.04.2 doesn't include SSH server by default. That's why you have to install it:
  2. sudo apt-get install ssh
    
  3. Check your Ubuntu VM IP:
  4. $ ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0c:29:04:55:d6
              inet addr:192.168.11.134  Bcast:192.168.11.255  Mask:255.255.255.0
              inet6 addr: fe80::20c:29ff:fe04:55d6/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:50 errors:0 dropped:0 overruns:0 frame:0
              TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:6303 (6.3 KB)  TX bytes:7366 (7.3 KB)
              Interrupt:19 Base address:0x2000
    
  5. Configure Kitty connection host name: 
  6. Create two scripts for:
    • startup VM in background (start_vm.bat)
    • set MYVM="F:\VMs\ubuntu-10.04.2-server\Ubuntu Server 10.04.2.vmx"
      set VMRUN="E:\Program Files\VMware\VMware Workstation\vmrun"
      
      %VMRUN% -T ws start %MYVM% nogui
      
    • shutdown VM (stop_vm.bat)
    • set MYVM="F:\VMs\ubuntu-10.04.2-server\Ubuntu Server 10.04.2.vmx"
      set VMRUN="E:\Program Files\VMware\VMware Workstation\vmrun"
      
      %VMRUN% stop %MYVM% soft
      
  7. Configure Kitty for auto-login:
  8. VM startup and Kitty run can be combined into one script

No comments:

Post a Comment