Wednesday 4 March 2009

Network messup in Ubuntu Jaunty when using VMware

While I was testing a brand new Ubuntu Jaunty (9.10 alpha) installation on my Fujitsu-Siemens laptop to checkout whether it better reacts to the suspend issue, I stumbled over another problem: after installing VMware Workstation the network setup would get messed up at every boot requiring manual tweaking.

It turns out that the NetworkManager service, in its great wisdom, was trying to automatically initialize the vmnet1/vmnet8 virtual interfaces created by VMware (it's using them as network injection points for the VM machines and they are managed by the vmware startup script). That means running the DHCP client over them and acquiring some garbage IP settings (these settings are supposed to be acquired by the contained VMware virtual machines, not by the physical box!). Subsequently this was installing a phoney VMware default route and DNS server entries, overriding the expected wireless settings, which in turn renders networking useless.

It seems this new behavior may have been triggered by a change in the [un]managed mode of the NetworkManager service in Ubuntu Jaunty. However, trying to change the managed=true/false statement in /etc/NetworkManager/nm-system-settings.conf yielded no results.

Luckily you can easily fix this by adding specific configuration files in /etc/NetworkManager/system-connections/ to prevent NetworkManager from touching the VMware network interfaces. You can use the following commands (assuming you kept the default interface numbering):



cat > /etc/NetworkManager/system-connections/vmnet1 << EOF
[connection]
id=vmnet1
autoconnect=false
EOF

cat > /etc/NetworkManager/system-connections/vmnet8 << EOF
[connection]
id=vmnet8
autoconnect=false
EOF

Tuesday 3 March 2009

RF Kill switch, Suspend and other demons on Fujitsu-Siemens Amilo Li 2735

Some time ago I have bought a cheap Fujitsu-Siemens (AMILO Li 2735 model) laptop on a refurbish sale. I don't know whether it was the smartest idea, it looks like the guys at Fujitsu Siemens had nothing else but Windows Vista in mind when they designed this spartan model :-/ ...

My first problem was the software wireless/RF killswitch which works with Vista after installing Fujitsu-Simenes drivers (you need to press Fn+F1), but not out of the box on Linux/others OS'es. The not-so-obvious solution to this problem was to use the acerhk module.

The second problem was that the CPU (T5450 1.66Ghz): while it's a Core 2 Duo CPU, it lacks the virtualization support needed to run 64bit OS'es under VMware (among the last ones not supporting Intel VT). Well, I guess it's just my bad luck for this one...

Now the third problem that I'm struggling with is that suspending in Ubuntu is broken, and I have tried both 8.10 and 9.04 alpha. The weird thing is that if I boot from the LiveCD suspending works (although not too many times, SquashFS errors keep accumulating), but if I boot from an installation made from the very same LiveCD then I have no chance to correctly resume from suspend — it's doing a weird "powerup/powerdown/powerup/hang" cycle. There is a bug filed for the (similar) Li 2732 model which was at one point closed as fixed in the Jaunty alpha versions when tested from the LiveCD but I had to reopen it since it doesn't work from an HDD install...

If any of you has some ideas for this issue please leave me a comment. Thanks.