Skip to main content
Topic: S6 scripts for VMWare Player (Read 521 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

S6 scripts for VMWare Player

Hello.

In quite the newbie, trying te get Artix up and running, Artix Cinamon S6, and I have a question.
I want to use VMWare Workstation Player from UAR and with GIT i managed to get it working, as it starts up and I can run a VM Image.

But now i need to create or adjust S6 scripts for starting the two  extra services  vmware-networks  and vmware-usbarbitrator.
To have network access from VM.

I found some scripts for OpenRC but nothing for S6.

I''m even not really sure where to find or place these scripts in my Artix Linux system.
My knowledge about scripts is, so far, very limited.

So my question, is there anybody who can tell me or help me, to create or adjust the scripts. 

Or maybe I can use the OpenRC scripts, or is there maybe an easy way to translate them from OpenRC scripts  to S6 scripts.

TY in advance, any help is very appreciated



 

Re: S6 scripts for VMWare Player

Reply #1
For vmware, I think you can just get away with an up/down oneshot script.

In the /etc/s6/adminsv/vmware directory:

up
Code: [Select]
#!/usr/bin/execlineb -P
exec /etc/init.d/vmware start

down
Code: [Select]
#!/usr/bin/execlineb -P
exec /etc/init.d/vmware stop

type
Code: [Select]
oneshot

You might also have to load modules on boot too. You can stick .conf files in /usr/lib/modules-load.d (see man modules-load).

 

Re: S6 scripts for VMWare Player

Reply #2
Ty.

I'm going to give it a try.
To be clear, VMware workstation player is already running, I can run an image in it.
The onley thing is Network and USB is not working from host to guest or from guest to host .
Somehow I need to start the services, vmware-networks  and vmware-usbarbitrator

As an other solution, I can try Artix with OpenRC, there are scripts available.

But a working solution for S6 would also be welcome, maybe also for other people.