I’ve recently been running, on my Mac Pro, parallels desktop 3.0 with Ubuntu 7.10 as the guest operating system. The installation of Ubuntu on parallels is covered very nicely by Shane Duffy I, perhaps a little naively, attempted to change the graphics driver that was being used to attempt to utilise, the nvidia graphics card that is in the Mac Pro and ended up with a busted xorg.conf and an unusable ubuntu install.
To get the nvidia driver installed, I ended up using envy, as the download from nvidia itself failed to detect the hardware. After downloading a whole host of additional packages, this still failed to produce a working xorg.conf. I struggled for several days editing the xorg.conf, top tip always backup your xorg.conf in triplicate before making any changes to it. Through the System->Administration->Screens & Graphics gui, I attempted to select my graphics driver & monitor, again with no useful results except an incorrectly displaying ubuntu installation.
It was only on installing a new parallels vm, that I was able to find a working xorg.conf and then edit my original vm’s xorg.conf properly. So here a few top tips for having an ubuntu xorg.conf running under parallels:
The graphics card has to be prlvideo
Plug ‘n’ Play monitor will do
You need the magic LVDSBiosNativeMode option
In fact I ran into another unusual error, when I attempted to reconfigure my xserver-xorg:
sudo dpkg-reconfigure xserver-xorg
FATAL: Error inserting battery
(/lib/modules/2.6.22-14-generic/kernel/drivers/acpi/battery.ko) : No such device
So to save other parallels users some the pain that I went through, I present the most pertinent entries in my now working xorg.conf:
# Parallels video driver
Section "Device"
Identifier "Parallels Video"
Driver "prlvideo"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Option "LVDSBiosNativeMode" "false"
Identifier "Generic Video Card"
Driver "vesa"
BusID "PCI:0:2:0"
EndSection
#Parallels monitor
Section "Monitor"
Identifier "Parallels Monitor"
VendorName "Parallels Inc."
EndSection
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-160
EndSection
#Parallels screen
Section "Screen"
Identifier "Parallels Screen"
Device "Parallels Video"
Monitor "Parallels Monitor"
Option "NoMTRR"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x900"
EndSubSection
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
EndSection
# Server layout
Section "ServerLayout"
Identifier "Default Layout"
Screen "Parallels Screen"
InputDevice "Parallels Mouse" "CorePointer"
# Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
I think it is issues like having to hack your xorg.conf that will prevent Linux from marching onto the enterprise desktop and indeed, your typical home user. Most users just don’t want this sort of pain.