Trying to install Parallel Tools on Linux From Scratch

Discussion in 'Linux Guest OS Discussion' started by JohnH1, Feb 21, 2015.

  1. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    What path requirements need to be fulfilled in the manual installation of gcc, linux headers, and make? I have everything install in executables installed in /usr/bin and the headers in /usr/include.
     
  2. SergeyL

    SergeyL Parallels Support

    Messages:
    31
    Hello,

    try to use http://kb.parallels.com/en/118876

    also verify the version of the linux headers is the same as the linux kernel version. you may want to update the kernel.
     
  3. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    I have used those instructions and it always ends asking for me to install gcc, make, and the linux headers manually.

    Also yes the headers are the correct version, my kernel is 3.16.2. Which should be adequate for the installation. I just need to know the location that these items are searched for so I can create a link from those locations to the actually items needed.
     
  4. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    i was able to get past that step in the installation by
    1. linking /usr/src/linux-$(uname -r) to the source directory of my kernel source directory
    2. linking /lib/modules/$(uname -r)/{build,source} to my linux source directory
    3. linking /usr/src/linux-headers-$(uname -r)/include to (linux source directory)/dest/include after running make INSTALL_HDR_PATH=dest headers_install in the source directory
    It still fails but now recognizes that the prerequisites are manually installed.
     
    charlesd1 likes this.
  5. SergeyL

    SergeyL Parallels Support

    Messages:
    31
    Try ti install Parallels Tools one more time as per http://kb.parallels.com/en/118876 then attach the output of the Terminal
    also attach here the output of uname -r
    also attach the following files:

    /var/log/parallels.log
    /var/log/parallels-tools-install.log
     
  6. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    The output of ./install errors out at "An error occurred when installing Parallel Tools. Please go to /var/log/parallels-tools-install.log for more information."

    uname -r is 3.16.2

    /var/log/parallels.log
    Unmounting shared Folders: failed
    Shutting down parallels tools daemon: done

    In /var/log/parallels-tools-install.log the errors listed are
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
  7. SergeyL

    SergeyL Parallels Support

    Messages:
    31
    please do the following:

    dmesg > ~/Documents/dmesg.txt

    then send the files over to your Mac side:

    scp /var/log/parallels-tools-install.log Mac_username@MacIP:~/Desktop
    scp ~/Documents/dmesg.txt Mac_username@MacIP:~/Desktop

    Please attach the files here.

    I would also recommend to uninstall Parallels Tools:

    sudo /usr/lib/parallels-tools/install -r

    reboot your VM and reinstall Parallels Tools.
     
  8. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    Here are the two files you requested I had to make the log files extension .txt to be able to upload it, otherwise it is not modified.
     

    Attached Files:

  9. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    I reinstalled but still get the same error with identical parallels-tools-install.log
     
  10. SergeyL

    SergeyL Parallels Support

    Messages:
    31
    Hello, Could you please reproduce the issue one more time and generate the Problem Report as soon as you see the error message on the screen (please do not remove the error message) per http://kb.parallels.com/en/9058
    Copy the Problem Report ID and post it here.
     
  11. JohnH1

    JohnH1 Bit Poster

    Messages:
    11
    I was able to install parallels tools by doing the instructions included above and doing the following
    1. Downgrading from X-Server 1.16 to 1.15.2
    2. mkdir /usr/lib/systemd/scripts && mkdir /usr/lib/systemd/system
    3. ln -sf /usr/lib/systemd/system /etc/init.d
    4. export def_sysconfdir=/etc/init.d as described in 'preparing dependencies' on https://wiki.archlinux.org/index.php/Parallels
    5. export kernel_source_dir=/lib/modules/3.16.2/build
    6. export kernelver=3.16.2
    7. mount /dev/cdrom /media/cdrom
    8. cd /media/cdrom
    9. ./install
    10. cp /usr/lib/parallels-tools/tools/prltools.x64/xorg.1.15/x-server/modules/{drivers/prlvideo_drv.so,input/prlmouse_drv.so} /opt/lib/xorg/modules/drivers this step was necessary because I built X with --prefix=/opt
    11. sudo vi /usr/lib/parallels-tools/installer/detect-xserver.h and edit line 15 to be PATH=${PATH:+$PATH:}/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin while still editing detect-xserver.h edit line 35 to be XORG_MODULES_DIRS64="/opt/lib/xorg /opt/lib64/xorg/modules /opt/lib64/X11/modules /usr/lib64/modules"
    12. Now run /usr/lib/parallels-tools/tools/prltools.x64/sbin/prl-opengl-switcher.sh --on
    13. cp /usr/lib/parallels-tools/tools/prlmouse.conf /etc/X11/xorg.conf.d/
    14. cp /usr/lib/parallels-tools/tools/{prlcc.desktop,prl_wmouse_d.desktop,ptiagent.desktop} /usr/share/applications
    15. cp /usr/lib/parallels-tools/tools/{parallels-cpu-hotplug.rules,parallels-memory-hotplug.rules,xorg-prlmouse.rules} /etc/udev/rules.d
    16. cat > /usr/lib/systemd/system/parallels-tools.service << "EOF"
    [Unit]
    Description=Parallels Tools
    [Service]
    Type=oneshot
    ExecStart=/usr/lib/systemd/scripts/prltoolsd start
    ExecStop=/usr/lib/systemd/scripts/prltoolsd stop
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    EOF
    then run systemctl enable parallels-tools.service
    Repeat for prl-x11
    cat > /usr/lib/systemd/system/prl-x11.service << "EOF"
    [Unit]
    Description=prl-x11 opengl swapper
    [Service]
    Type=oneshot
    ExecStart=/usr/lib/parallels-tools/installer/prl-x11.sh start
    ExecStop=/usr/lib/parallels-tools/installer/prl-x11.sh stop
    RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    EOF
    run systemctl enable prl-x11.service
    /usr/lib/parallels-tools/installer/xserver-config.py xorg 1.15 /etc/X11/xorg.conf /etc/X11/xorg.conf.new
    then mv /etc/X11/xorg.conf{,.old}
    mv /etc/X11/xorg.conf{.new,}
    startx should boot right up after that
     
  12. GabrieleM

    GabrieleM Bit Poster

    Messages:
    1
    On the terminal use this command for install gcc, make, headers:
    sudo pacman -Sy base-devel
     
  13. charlesd1

    charlesd1 Bit Poster

    Messages:
    20
    I am agree with you, It is working way that you have mentioned in your reply...User can try this at ay time if they are facing problem during installations....
     

Share This Page