4

I want to use a physical disk in Vmware Player. To do that I need to run Vmware Player as root. How do I do that?

I have tried to start it via terminal but no luck. I have tried to start it via gksu but no luck.

Zanna
  • 69,223
  • 56
  • 216
  • 327
jse71
  • 51
  • 1
  • 1
  • 2
  • Are you getting any errors or does it almost immediately exit upon startup? – Ron May 01 '15 at 06:55
  • what command are you using to launch vmware? – Rumesh May 01 '15 at 07:08
  • It didnt launch at all. I tried sudo Vmware / sudo Vmware-player etc. But, i finally remembered how i did it last time, i just run "gksu nautilus" and then navigate to the appfolder where Vmware is, and launch it from there. Thanks for your time and answers though, have a great Friday :) – jse71 May 01 '15 at 07:26

2 Answers2

8

According to this answer, gksu is now deprecated. And according to a couple of Ubuntu bug reports, it appears this is the case.

You can just use sudo to open vmware player as root:

% sudo -i vmplayer &

To open vmware workstation as root:

% sudo -i vmware &

Another options is to just switch to su:

% sudo su
% vmplayer &

Or workstation:

% sudo su
% vmware &
Timothy C. Quinn
  • 1,053
  • 1
  • 12
  • 22
1

The actual command for launching vmware player from the terminal is vmplayer, That is why it wasn't launching for you. To launch vmware player as root just run the following command from the terminal.

gksu vmplayer

I know you found a workaround for your problem but I hope this helps anyway.

Also it is apparently not advisable to run desktop virtualization software as root so please keep that in mind (I was told about this in the comments).

Rumesh
  • 1,429
  • 2
  • 12
  • 26
  • 3
    You should at least add the warning that all VM providers agree on: "don't run a desktop virtualization product as root, **ever**" – guntbert May 01 '15 at 08:13
  • 1
    oh I wasnt aware of that sorry ill add it in – Rumesh May 01 '15 at 08:22
  • Thanks! Thats much easier for sure, i just hope i remember it the next time. - Guntbert: You have to run as root if youre going to install the virtual pc on a physical disk, like i did. – jse71 May 03 '15 at 20:08
  • @guntbert why not rund vmware as root - and what other options are available to use a physical disk? – Thorsten Niehues Sep 24 '15 at 15:36
  • Assuming that /dev/sda2 is the dist of the guest OS then is `sudo chmod o+rw /dev/sda2` an option? – Thorsten Niehues Sep 24 '15 at 15:41
  • Well fortunately we've all been told how it's horrible to run as root. Of course, alternatives and reasons why were withheld, but hey... It is very likely the case, but on a private workstation, I'm not too worried about. More importantly is making the damn vmware icon work (which, with my current misconfig'ed system, involves making it run under root) – Adam Plocher Aug 20 '18 at 02:49