WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Compiling VMware Player  (Read 410 times)

Offline carrot

  • Newbie
  • *
  • Posts: 9
Re: Compiling VMware Player
« Reply #15 on: July 16, 2020, 11:29:58 PM »
I'm trying to use TC as a host for other VMs. I have had no problems installing TC as a guest.

when I say compile I am talking about running the bundle file and installing. as you need linux-headers among other dependencies, it is very similar to compiling any other app or library.

Can you share the steps you followed or extensions you installed to be able to install/run the player?

thanks
« Last Edit: July 16, 2020, 11:38:52 PM by carrot »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12235
Re: Compiling VMware Player
« Reply #16 on: July 17, 2020, 01:51:57 AM »
pkexec wasn't setuid when I loaded polkit so I fixed it but I still get the error. (bug in polkit.tcz? :o )

I haven't seen it said that pkexec should be suid?

Offline andyj

  • Hero Member
  • *****
  • Posts: 860
Re: Compiling VMware Player
« Reply #17 on: July 17, 2020, 06:33:55 AM »
Most third party software expects this link:

Code: [Select]
tc@box:~$ sudo mkdir /lib64
tc@box:~$ sudo ln -s /lib/ld-2.30.so /lib64/ld-linux-x86-64.so.2

Install the following extensions. My system already has open-vm-tools-desktop installed, so I can't say how much that and it's dependencies taint the rest of the procedure.

Code: [Select]
tc@box:~$ tce-load -i perl5 python3.6 rpm compiletc bc bash coreutils libaio alsa alsa-config libpng-dev module-init-tools polkit

Busybox modprobe doesn't have the -n option, and the installer script has /sbin/modprobe path hardcoded, so fix this:

Code: [Select]
tc@box:~$ cd /sbin
tc@box:/sbin$ sudo ln -sf /usr/local/sbin/modprobe

Create the SysV init directories the installer expects:

Code: [Select]
tc@box:~$ for a in $(seq 0 6); do sudo mkdir -p /etc/rc.d/rc$a.d; done
tc@box:~$ cd /etc/rc.d
tc@box:/etc/rc.d$ sudo ln -s /etc/init.d

Now run the installer:

Code: [Select]
tc@box:~$ sudo bash /path/to/VMware-Player-15.5.6-16341506.x86_64.bundle --console --ignore-errors --eulas-agreed

After it finishes, if you haven't already, download the patched linux kernel source from the TC website and untar it. Download the config file and put it in the tree as .config. You shouldn't have to build the kernel. Create a link to the kernel source tree, then build and load the kernel modules:

Code: [Select]
tc@box:~$ cd /lib/modules/5.4.3-tinycore64/
tc@box:/lib/modules/5.4.3-tinycore64$ sudo ln -s /path/to/kernel/src/linux-5.4.3 build
tc@box:~$ sudo vmware-modconfig --console --install-all
tc@box:~$ sudo modprobe vmmon
tc@box:~$ sudo modprobe vmnet

At this point vmplayer should start and prompt for a license key. It is also at this point that policy kit needs to be configured but I don't know how to do that. If I run vmplayer as tc I can not go further, but it does work if I run it as root (a bad idea). Also, this installation is not permanent, it will be lost when you reboot unless you make the whole TC file system persistent which defeats the idea of TC. Personally, I would use a different host OS. I use Slackware as my main OS, which is much more like TC than most other distros. I don't think TC is the right tool for this job.

Offline carrot

  • Newbie
  • *
  • Posts: 9
Re: Compiling VMware Player
« Reply #18 on: July 17, 2020, 07:54:28 PM »
Thanks andyj, I give your steps a try and see how I go

Offline andyj

  • Hero Member
  • *****
  • Posts: 860
Re: Compiling VMware Player
« Reply #19 on: July 18, 2020, 06:12:39 AM »
pkexec wasn't setuid when I loaded polkit so I fixed it but I still get the error. (bug in polkit.tcz? :o )

I haven't seen it said that pkexec should be suid?

It is on my Slackware box. Seems like it would need to be to raise privileges at some point. But I know zero about polkit, which is what my opinion counts for in this case.  :-X