For the Linux environment, I picked Kurumin Light, a lightweight version of the Knoppix-based Kurumin Linux distro. Installation went almost without incidents, save for one: in order for the virtual environment's graphical resolution match the dimensions of the enclosing window (and thus make the best possible use of the display), a set of extensions bundled with Parallels Desktop, called Parallels Tools, needs to be installed. Problem is, when I tried to install it, the procedure ended abruptly with a
Unable to get layout name
error message. A quick Google search led to two forum threads discussing the error, but none getting to a solution; so I decided to try and solve it myself.Peeking into the installation file, I found it to be a self-extracting GZip archive, which I later found gets extracted to a temporary directory called
/tmp/selfgzXXXXXXXXX
-- where XXXXXXXXX
is an arbitrary number -- in the beggining of the procedure. Among the extracted files, there is a script called xserver-config.py
, which rewrites the X Server confguration file: it is this script that fails to find the X Server layout name, causing the installation to fail.With this in mind, I devised the following walk-around to the
Unable to get layout name
error. All these steps must be executed from a root account:- Run
sh parallels-tools.run
, but don't confirm the installation just yet; - Open the
/tmp/selfgzXXXXXXXXX/xserver-config.py
script file on a plain-text editor. Change line 273 fromlayoutId = None
tolayoutId = "Default Layout"
or any other name to your liking. Don't forget to save; - Confirm installation. Hopefully the script will now execute without errors;
- Open
/etc/X11/xorg.conf
(or the equivalent X Server configuration file on your distro) and locate the"ServerLayout"
Section. You'll notice there are twoIdentifier
entries, consequence of the configuration script not telling apart its elbow from its ass... I mean, telling apart theIdentifier
entry on the original config file. This situation is bound to crash your X Server upon restart, so comment the original entry off. Also, if you'd like to make sure your pointer device will work properly, locate all"InputDevice"
Sections with anIdentifier
value of"Parallels Mouse"
and comment them off, save for one -- which one will depend on your system settings, but the entry with anOption
value of"Device" "/dev/input/mice"
is probably your best guess, if you aren't X Server savvy; - Restart your X Server, for example by hitting
Ctrl + Alt + Backspace
.
After executing these steps, I found pointer integration as well as dynamic resolution resizing were working – that is, until I restarted the virtual machine, and learned I would still have to add the "prluserd" service to the list of automatically started services. (Alternatively, I could start it by hand each time, by calling "prluserd" from a root terminal window, and then restart X. But I am not that crazy.)
I hope these steps work for others that are facing problems with Parallels Tools installation on Linux, though as usual I make no guarantees. Parallels Desktop is a wonderfully useful software, and with interface integration on, it enables a very pleasant virtualization experience.