Wrong Keyboard Layout with VMWare and VNC

February 8th, 2010 Category: VMWare

If you connect to your VMWare Workstation host and connect via VNC (which is a cool feature) you may recognize a wrong keyboard layout. E. g. when you have a German keyboard.

In this case just add a line (for German keyboard) into your virtual machine configuration file (.VMX):

RemoteDisplay.vnc.keymap = "de"

And your keyboard works.

Links

Specifying the keyboard layout when connecting with VNC client

Network Neighborhood Browsing Slow

January 12th, 2010 Category: General, VMWare

I often experienced the problem that a click on the network neighborhood in Windows needs very long. This may have several reasons. I recognized that in my case it is related with the VMWare Workstation installation.

VMWare Workstation installs two virtual network adapters, one is used for host-only networking and the other for NAT networking. This virtual adapters may cause the network neighborhood to become very slow.

To come around this annoying slow network neighborhood I know two possibilities:

  1. If you only use bridged networking for your virtual machines
    => disable both network adapters in the control panel
  2. If you use host-only or NAT for your virtual machines
    =>disable the “Client for Microsoft Networks” and “File and Printer Sharing for Microsoft Networks” protocols in the properties of the two virtual network adapters

Links

Linux under Windows with andLinux

March 25th, 2009 Category: Linux, VMWare

Nowadays there are several virtualization products like VMWare and Virtual PC available. Searching the Internet I came across coLinux and andLinux. This free and open source tools allow you to run Linux natively on your Windows PC.

coLinux is the base – a port of the Linux kernel which allows you to run Linux cooperatively on your Windows PC. andLinux is a complete Ubuntu Linux system which uses coLinux, Xming as X server and PulseAudio as sound server.

I’ve tried andLinux on my Windows XP notebook, installation was easy. Quite nice if you also want to have Linux running on your PC without purchasing other products. You can start Linux applications and they appear like a regular Windows application on your desktop.

andLinux offers some more features:

  • Access from Linux applications to Windows filesystem
  • Quick start of Linux applications from Quicklaunch bar
  • Easy start of applications from KDE Start menu

See also:

Definitely a try worth!

andlinux.jpg

VMWare ESXi Test Installation

January 30th, 2009 Category: VMWare

The Try

I’ve been using VMWare ESX for several years now in my company with great success. It made things really easier. Of course it’s not for free, but it’s really worth the money you pay for it. So it was really a surprise when I recognized that there is a new and free VMWare ESXi for download available from the VMWare homepage. Sounds interesting, OK let’s try it.

Just Download

So I went to the VMWare homepage and downloaded the ESXi ISO install image. After the short registration which is needed for download you will automatically receive the license key via e-mail. For installation the license key is not needed, ESXi will work fo 60 days after installation.

Installation

2-how-to-install-vmware-esx-server-3i-3.gif After writing the ISO to a CD-ROM and booting the PC from it I reconized that ESXi did not detect my good old 20 GB PATA hard disc. After putting a 160 GB SATA disc in and booting again my hard disc was detected correct and ESXi installed perfectly. But after first boot no IP adsress was assigned (0.0.0.0). After some Google research in found out that my onboard network card was not detected and that ESXi currently mainly supports Intel network cards. Fortunatly I found a old Intel Etherexpress 10/100  PCI card in the company, put it in my desktop and booted again. And oh surprise, the NIC was detected and a IP address was assigned via DHCP.

First Contact

vollbildaufzeichnung-30012009-190520.jpg After typing the IP address of the ESXi machine in the browser the VMWare Infrastructure Client can be downloaded and installed. New virtual machines are installed, managed and so on using the Infrastructure Client via Network. My first plan was to install Debian Etch from the net-install CD-ROM, but ESXi did not detect my CD-ROM (maybe I’ve disconnected the cable while installing the Intel NIC card, not sure). But it doesn’t matter because you can easily mount the CD-ROM of your client where Infrastructure Client is running or also just mount an ISO image. It worked and Debian Etch was installed. To check the performance on my Intel 2×3GHz 2GB RAM desktop I added Windows 2000 as second virtual machine. It also installed without problems. Very nice!

It’s Working

So far I’ve recognized command line tools like vcbMounter and vcbRestore are not available on the ESXi host like on ESX hosts which can be used for automated backups. But I’ll need to further investigate ESXi, for now it’s already running within a very short time – amazing. And it helps to warm up my living room when the 2xGHz desktop machine is running the whole day…

Screenshots

VMWare ESX Backup Script

January 2nd, 2009 Category: VMWare

There is a simple method doing automated backups using VMWare Infrastructure 3. For this reason a command “vcbMounter” is included. Also the name of this command is confusing it can be used for doing backups of virtual machines.

Doing a backup of a virtual machine can be done using a single command line call:

vcbMounter -a name:"Virtual-Machine-1" -r "/path/to/backup/Virtual-Machine-1"

Ok, your vm named “Virtual-Machine-1″ will now be backuped to the given path. The directory is generated from vcbMounter. The next time you will run vcbMounter it will complain that the directory already exists, so you will have to delete the directory every time before you start the backup:

rm -rf "/path/to/backup/Virtual-Machine-1"
vcbMounter -a name:"Virtual-Machine-1" -r "/path/to/backup/Virtual-Machine-1"

But there is another problem which will cause vcbMounter to complain: For every backup vcbMounter generates a snapshot and will not remove it after backup. What we need is to delete the snapshot before we backup:

vmware-cmd "/vmfs/volumes/storage1/Virtual-Machine-1.vmx" removesnapshots

rm -rf "/path/to/backup/Virtual-Machine-1"

vcbMounter -a name:"Virtual-Machine-1" -r "/path/to/backup/Virtual-Machine-1"

We delete the snapshots for a given virtual machine using “vmware-cmd” and removesnapshots. vmware-cmd needs the path to your .vmx file of the virtual machine. It’s usually stored in /vmfs/volumes/…

vcbMounter does not expect the path to the .vmx. It only needs the name of your virtual machine.

Doing the backup on a NFS mount is also possible. You need to deactive the VMWare ESX firewall and can mount e.g. using “mount -t smbfs”.