Posts Tagged ‘vmware’

Vmware and tmpfs

Wednesday, December 8th, 2004

With the installation of udev a tmpfs file system is mounted on top of /dev at boot. Device nodes are created automatically by udev as the devices appear, but in the case of vmware it doesn’t work.

Vmware needs some device nodes that are created when vmware is configured, so they aren’t there when /dev is taken over by udev.

The solution is to created them each time the vmware services are started at system boot.

It is done by editing the file /etc/init.d/vmware, adding these lines to the ‘start’ section:

for a in `seq 0 9`; do
    mknod /dev/vmnet$a c 119 $a > /dev/null 2>&1
done
mknod /dev/vmmon c 10 165 > /dev/null 2>&1

This will recreate the device nodes each time.

There’s probably some clever way to automate this with some udev rules, but I still haven’t figured out how.

VMware and Wireless Networks

Thursday, July 22nd, 2004

I have just installed the 30 days trial version of VMware on my laptop.

It has a double purpose in my case: home banking and cross browser testing of websites. Currently both require access to MSIE. I know there are banks with home banking systems that work with Linux/Mozilla, and I also use one such bank, but I have good pecuniary reasons to stay with one Danish bank that doesn’t. Website testing requires access to several versions of MSIE to be sure.

VMware doesn’t support Debian systems as the host OS, but it works quite well, nonetheless. It is a funny feeling watch Windows boot in a window 🙂 but also reassuring to know it happens in a sandbox.

The only problem I had was getting the VM to communicate with the rest of the world through my wireless NIC. If I set up the normal eth0 interface as a bridged interface in the VM, everything was fine, but if I switched it to the wireless (an Atheros based card using the madwifi driver), there were no connection. After many tries I got the VM to communicate with the world outside using a NAT interface.

Only later I discovered here that it is not possible to use a wireless NIC as a bridged interface wth VMware. There is a short thread about this on VMwares support forum.