Tiny Core Linux

Tiny Core Base => Corepure64 => Topic started by: carrot on July 16, 2020, 02:50:39 AM

Title: Compiling VMware Player
Post by: carrot on July 16, 2020, 02:50:39 AM
Hi, I have been trying for a while now to compile VMware player (v12.1.1, v12.5.9, v14.1.1) and so far have had no luck. I have been referencing a post from several years ago where player 2 on tinycore 3 (Or similar) was successful, but alas I can’t get it to work. I am really keen to get this to work as I really like the concept of tinycore vs the bigger dists like Debian or streamlined dists like Arch.

Has anyone got this working before? Or is anyone keen to try along with me to get it working?

I would also be open to using virtualbox as an alternate option, however would prefer VMware player as I already have multiple VMs setup in Fusion (VMware for Mac).

Thanks
Title: Re: Compiling VMware Player
Post by: Juanito on July 16, 2020, 03:30:40 AM
Please give more details of what you've done and what error messages you got.
Title: Re: Compiling VMware Player
Post by: carrot on July 16, 2020, 05:19:56 AM
no problems, hopefully this will give a bit of detail:

the forum post I have used for reference is: http://forum.tinycorelinux.net/index.php/topic,7652.msg41221.html#msg41221 (http://forum.tinycorelinux.net/index.php/topic,7652.msg41221.html#msg41221)

from these steps I have installed compiletc bash coreutils module-init-tools

for the linux headers I have used extension linux-kernel-sources-env and run the script that is installed. I do get a few errors in the (see image below) but it does seem to compile. file: linux-kernel-sources.png

from here I try to run the the VMWare Player bundle as root and get the following installer screen and errors on my terminal window:
file: player.png

as the player install screen cannot be read I cannot go any further.

I have also tried to run the player bundle using the --console option however this fails with the error: user interface initialization failed.   Exiting.
Checking the log for this attempt has a few config errors but then defaults to standard settings, and then fails with 'HostinfoOSData: Error: no distro file found' and an installer log file suggests the error is not being able to setup curses
Title: Re: Compiling VMware Player
Post by: carrot on July 16, 2020, 05:25:57 AM
I also get the following errors at the terminal window when I get the unreadable player install window in the previous post.
Title: Re: Compiling VMware Player
Post by: Rich on July 16, 2020, 05:50:39 AM
Hi carrot
Text is preferred over images for posting errors wherever possible. Try redirecting the commands results into file like this:
Code: [Select]
COMMAND > vmware_error.txt 2>&1Then you can either attach the text file or paste its contents between  code tags  in your next post.
Title: Re: Compiling VMware Player
Post by: Juanito on July 16, 2020, 06:13:15 AM
as the player install screen cannot be read I cannot go any further.

You could try a symlink /etc/fonts -> /usr/local/etc/fonts
Title: Re: Compiling VMware Player
Post by: carrot on July 16, 2020, 06:28:52 AM
thanks Juanito.

creating that symlink resulted in a new error on the terminal window:

symbol lookup error: /usr/local/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

this also did not bring up the player install window at all.
Title: Re: Compiling VMware Player
Post by: carrot on July 16, 2020, 06:29:35 AM
no problems Rich, will do for future posts.
Title: Re: Compiling VMware Player
Post by: Juanito on July 16, 2020, 06:59:58 AM
symbol lookup error: /usr/local/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

That means vmware is expecting a different version of fontconfig to that in tinycore - what version of tinycore are you using?
Title: Re: Compiling VMware Player
Post by: carrot on July 16, 2020, 07:13:00 AM
corepure64 v10
Title: Re: Compiling VMware Player
Post by: Juanito on July 16, 2020, 07:40:32 AM
The version of fontconfig is the same in CorePure-10.x and 11.x, so an update will not help.

Do you need to use the closed source pre-built vmware or could you use qemu?
Title: Re: Compiling VMware Player
Post by: Rich on July 16, 2020, 07:49:31 AM
Hi Juanito
According to this:
https://bugzilla.redhat.com/show_bug.cgi?id=1645237
it says:
Quote
That symbol is provided by freetype-2.9.1 or later and fontconfig has proper dependency to it

TC10 and TC11 have  freetype-2.8.1  and  freetype-2.9.0  respectively.
Title: Re: Compiling VMware Player
Post by: andyj on July 16, 2020, 10:06:12 AM
I was able to get VMware player 15.5 installed and running on TC 11.1 64-bit as root, but I hit a policy kit error when run as user tc:

Code: [Select]
Error getting authority: Error initializing authority: Could not connect: No such file or directory
If I try to strace it, then I get:

Code: [Select]
pkexec must be setuid root
pkexec wasn't setuid when I loaded polkit so I fixed it but I still get the error. (bug in polkit.tcz? :o )

I didn't try to create a VM, as it is already in a VM. I believe it's possible but my VM doesn't have enough disk space for Inception-like behavior.
Title: Re: Compiling VMware Player
Post by: carrot on July 16, 2020, 04:04:39 PM
hi andyj, can you share your steps to compile? If I could get the latesr version to work in 11.1, that would be great.

thanks
Title: Re: Compiling VMware Player
Post by: andyj on July 16, 2020, 07:39:20 PM
I didn't compile anything. VMplayer is distributed as a binary package. Are you trying to use TC as a host for VM's, or TC as a guest VM on some other host OS?
Title: Re: Compiling VMware Player
Post by: carrot 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
Title: Re: Compiling VMware Player
Post by: Juanito 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?
Title: Re: Compiling VMware Player
Post by: andyj 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.
Title: Re: Compiling VMware Player
Post by: carrot on July 17, 2020, 07:54:28 PM
Thanks andyj, I give your steps a try and see how I go
Title: Re: Compiling VMware Player
Post by: andyj 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
Title: Re: Compiling VMware Player
Post by: carrot on August 10, 2020, 07:31:34 PM
Hi andyj, I've finally had a chance to try your steps and have come very close to install, however am once again stuck.

The player bundle has installed following your steps, however when I try to run vmware-modconfig I get an error
Quote
[AppLoader] GLib does not have GSettings support.

(process:3991): GLib-CRITICAL **: 12:00:00.000: g_file_test: assertion 'filename != NULL' failed
Failed to setup build environment

Did you come across this when installing?

For reference I am using core64 v11.1 with nothing installed as a starting point (base system only). Is this what you used when you were able to install?

thanks
Title: Re: Compiling VMware Player
Post by: carrot on August 10, 2020, 08:11:04 PM
just for completeness, I have also today tried using the TinyCorePure64 v11.1 iso to see if it was my setup of CorePure64. Using this iso has resulted in the same result as previously mentioned with the exact same error.

thanks
Title: Re: Compiling VMware Player
Post by: andyj on August 11, 2020, 05:56:03 AM
Quote
[AppLoader] GLib does not have GSettings support.
This error isn't a show stopper, I got it and could still build the modules. Obviously the other error is. It's looking for something you don't have. You may have to compile the kernel plus modules after all.
Title: Re: Compiling VMware Player
Post by: carrot on August 17, 2020, 11:06:43 PM
Hi andyj, thanks for the feedback again, unfortunately still not go. Took a bit to get the sources built (ran out of memory on my VM initially), but after getting them built was able to follow the rest of the steps. The wmplayer module build attempted to build the modules but failed. attached is the output of the errors on the build.
Title: Re: Compiling VMware Player
Post by: carrot on August 26, 2020, 09:36:45 PM
just bumping again, any ideas on what is causing the failure in build the vmware modules?

if not, my next thoughts would be to try install virtualbox on micorcore v11.1. Has there been any success with this?


@andyj, on a seperate note, can you provide me some details of the setup that you were able to get the player running? ie what tinycore version, tinycore or microcore? v11 or v11.1? what extensions were installed prior to the steps you provided? etc
I am just hoping I might be able to replicate what you have done to be able to install successfully, then I can troubleshoot what is missing with my normal setup.

thanks again
Title: Re: Compiling VMware Player
Post by: curaga on August 26, 2020, 11:34:08 PM
If the virtualization program does not matter to you, you should use qemu (kvm). It tends to be easy to build and high quality, vs virtualbox's questionable quality and the build troubles you're seeing.
Title: Re: Compiling VMware Player
Post by: carrot on August 27, 2020, 05:46:45 PM
hi curaga, I would have preferred to get vmware player installed as I have many VM's already built with it, however ultimately it does not matter too much. I added virtualbox as I have previously used it. As I have not used QEMU (KVM) before, is there a good source of information somewhere that you can point me to for setup in microcore?

thanks
Title: Re: Compiling VMware Player
Post by: Juanito on August 27, 2020, 10:15:40 PM
http://tinycorelinux.net/11.x/x86_64/tcz/qemu.tcz.info
Quote
example howto:
$ sudo modprobe kvm-intel
$ qemu-img create -f qcow2 vdisk.img 2G
$ qemu-system-x86_64 -enable-kvm -hda vdisk.img -m 2G -cdrom CorePure64-8.0.iso -boot d
Title: Re: Compiling VMware Player
Post by: carrot on September 22, 2020, 05:38:05 PM
thanks for the help everyone, I have been able to get qemu to work for my purposes.