Solved

Insufficient permissions w/ vmrun - Vmware Server 2.0.2 - Ubuntu 10.10

Posted on 2011-03-01
12
2,483 Views
Last Modified: 2012-05-11
Recently brought up a newly compiled instance of Vmware Server 2.0.2 on Ubuntu 10.10 (2.6.35-22-server). Got the service running, and 8333 port is listening correctly.

I've got a service account created that I want to run Vmware with (I specified this user account when compiling Vmware), and I'm also running the VM's from that user's encrypted home directory.

There's no GUI on this box, and I'm trying to bring up a Windows 2003 Server vm.

I'm typing:

sudo vmrun -T server -h https://IPADDRESS:8333/sdk -u myuser -p mysecret start /path/to/vmx gui

Open in new window


what I get though is an error:

Error: Insufficient permissions in host operating system

I'm able to login w/ my user account to the machine, and I even used SCP from another machine to it to transfer files (using the service account credentials), so I know i've got the username/pwd correct. The account is in the sudoers file as well.

I took a look at /var/log/messages:

[hostname] /usr/lib/vmware/bin/vmware-hostd[5999]: Rejected password for user [myuser] from 127.0.0.1

Open in new window


Maybe this is easy, but if someone could please, please help out -- that would be great.
0
Comment
Question by:kapshure
  • 7
  • 5
12 Comments
 
LVL 12

Accepted Solution

by:
mccracky earned 500 total points
ID: 35019330
It looks good, from what this document says:
www.vmware.com/pdf/vix180_vmrun_command.pdf

The error message (obviously) indicates that there is a permission problem with your password.

Can you run the machine through using vmplayer as a remote console using "vmplayer -h" to make sure the credentials work?  (See: http://tuxnetworks.blogspot.com/2010/07/vmware-remote-console-firefox-36.html)


Another similar post has this solution:

the problem is the PAM authentication mechanism in Linux.
go to /etc/pam.d and open the file vmware-authd
replace all occurrences of pam_unix.so with pam_unix2.so

(Found at: http://communities.vmware.com/thread/171109)
0
 

Author Comment

by:kapshure
ID: 35019467
@mccracky

well I got past this by reducing the security of the password (at least for now), but wound up hitting another issue. I was able to connect to VI console, launch a VM, login to the Win2k3 VM, but right after the splash screen, the VM BSOD"d. I go back to the Ubuntu server and it was unresponsive - it had crashed.

I had to rebuild VMWare Server 2.0.2, as it was missing vmmon modules. Now, I can't get back into the web console - at all. I can see with vmrun that the VM is running, when I issue a "vmrun list" command.. But now no web console access. I may try that vmware-player approach. I really need these VM's back up ASAP.

I should start a new thread probably, but what's the deal w/not being able to get into the web console now? I really have started disliking VMware server :/
0
 
LVL 12

Expert Comment

by:mccracky
ID: 35019939
VMWare server is no longer in development.  So it will be harder to run on newer kernels.  You might try it on Debian or CentOS.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 35019952
And, as another thought, if it is a business critical application, why run it on Ubuntu 10.10?  If you want Ubuntu, I'd stick with 10.04LTS with 5 years support for the server distro.
0
 

Author Comment

by:kapshure
ID: 35019954
@mccracky

that's good info to know. It wasn't my choice to switch over to Ubuntu, but I will make it known about the development/EOL cycle.

I read, no more support after this summer? and development stopped on it last summer/fall - right?
0
 

Author Comment

by:kapshure
ID: 35019961
@mccracky

why is 10.04 supported for so long, and 10.10 is not? I'm not very familiar with Ubuntu product release/support roadmap.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:kapshure
ID: 35019971
OOps.. answered myself:

https://wiki.ubuntu.com/Releases
0
 
LVL 12

Expert Comment

by:mccracky
ID: 35019982
0
 

Author Comment

by:kapshure
ID: 35020047
got it!
0
 

Author Comment

by:kapshure
ID: 35020631
@mccracky

I tried this:

Can you run the machine through using vmplayer as a remote console using "vmplayer -h" to make sure the credentials work?  (See: http://tuxnetworks.blogspot.com/2010/07/vmware-remote-console-firefox-36.html)

but only from XP... I don't have a linux box atm with X windows/GUI loaded. I take it from that post on tuxnetworks, its only for linux machines.
0
 
LVL 12

Expert Comment

by:mccracky
ID: 35021253
I would guess that the windows version of vmplayer has the same capabilities and option switches, but I can't test it right now.

Or you could use ssh with X-Forwarding to one of the linux boxes.
0
 

Author Comment

by:kapshure
ID: 35021376
touche! thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now