So you’ve installed a CentOS Server into a Parallels Virtual Machine. You probably want to share some folders to make data transfer between The HostOS (probably your Mac) and the GuestOS (CentOS) easier. A bit of research has led you to discover that you need to Install Parallels Tools to do this, but when you click on its icon in the bottom-right corner of your screen you are presented with the following message:
Click Continue to connect the Parallels Tools installation CD to this virtual machine.
To install Parallels Tools, open a terminal, go to the CD/DVD drive directory and run the following command as root: “sudo ./install”.
Note: In some Linux systems, you may need to unmount the installation CD and then mount it again using the following command: “mount -o exec”, and only after that install Parallels Tools.
When you click Continue nothing seems to happen, and you can’t find the CD/DVD drive directory.
That’s because the server versions of CentOS don’t automatically mount these sorts of things by default. Assuming you have no other removable media mounted at the moment…
# mount -r -t iso9660 /dev/sr0 /mnt/
…will mount the Parallels Tools CD image (prl-tools-lin.iso) in the /mnt/ directory.
# cd /mnt/
# ls -l
should show about five files, including an installer.
# ./install
will run the installer which should be pretty straight forward.
If the install fails with this error:
An error occurred when downloading required components for Parallels Tools installation.
– gcc
– kernel sources
Install these components and try again.
…then you probably don’t have a network connection.
Follow the instructions here to fix your nyetwork.
Once that’s done, use yum to install the required components.
# yum install gcc kernel-devel
# ./install
should now work without a problem… the Parallels Tools should get installed and folder sharing should work.
# ls -l /media/psf/
reveals the location and name of all shared folders.
Thanks! This article help me recovering my CentOS 6.3 instance which did not boot after an upgrade to Parallel 9.
If your Parallel Tools does install by just doing the menu command ‘Vitual Machine > …” then chances are that you hit the double-slashes-in-path problem:
11-05 12:37:11.000 F /LocalDevices:11215:9303/ [DVDROM] Connecting device “/Applications/Parallels Desktop.app//Contents/Resources/Tools/prl-tools-lin.iso”
To resolve, try
(1) Specify the prl-tools-lin.iso with correct path using CD/DVD menu command “Connect Image…”
(2) Boot the client CentOS into command prompt by following the instruction on http://detechdev.com/blog/centos-6-4-upgrade-prevents-boot-on-parallels-virtual-machine
(3) Follow the above article to mount the ISO and run the installer.
Thanks!
This didn’t do it for me. I can ping out to the Internet, so I think my network connection is OK. In the install log, I see that it tried to install kernel-devel-2.6.32-504.el6.x86_64.
However, when I install them, it installs kernel-devel-2.6.32-573.1.1.el6.x86_64.
Maybe I need to update my kernel first? Trying that…ah. That worked. So basically the Vagrant box I was using had an outdated kernel, and that’s what caused the error. I’ll talk to them.