Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VMware GSX Server on Gentoo HOWTO
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Thu Sep 11, 2003 2:11 pm    Post subject: VMware GSX Server on Gentoo HOWTO Reply with quote

Version 1: Install VMware GSX Server 2.5.1 on Gentoo.
Version 1.1: Install VMware GSX Server 3.0 on Gentoo.
Version 1.1.1: Install VMware GSX Server 3.0 on Gentoo using the linux-2.6 kernel with the vmware-any-any patch.

Introduction

I had VMware GSX Server running under Red Hat 7.2 and I couldn't take how long it took to just boot, so I experiemented and upgraded to Gentoo and I couldn't believe how much faster the computer ran. Not to mention the ability to use a reiser file system.

I plan to describe what you need to do to run VMware GSX Server 3.0 using Gentoo stable.

Step 1

Install Gentoo Linux on a computer that can handle VMware. At least 1GIG of RAM and a good amount of disk space. (I have 4G of RAM and 200G of disk space). The required memory is only 256M, but I can't see how you can do anything with that.

VMware GSX Server 3.0 now supports both the Linux 2.4 and 2.6 kernel inside and out (as the host or a guest). However, I have had very bad performance with 2.6 so you may want to start with 2.4.

I did a stage1 install of Gentoo stable using the gentoo-sources or gentoo-dev-sources kernel and a reiser file system. About the only thing special you need in the kernel for VMware is RTC. You do need to remember to enable high memory though.

Step 2

Install supporting software for VMware. Once you have emerged system you have a basic setup. You can augment that setup with anything you want, but these are the things needed if you add nothing else.

Code:

emerge =sys-libs/db-3.2.9-r10
emerge pciutils
emerge xinetd
emerge xorg-x11


The VMware mui needs db-3.2 to link some files during installation.
VMware's authentication method (vmware-authd) needs xinetd to run.
vmware-authd also needs Xwindows libraries (libX11), which is why xfree is installed. Xwindows does not need to be configured and you don't even need a supported graphics card.

Step 3

Configure the software.

You need to edit the /etc/xinetd.conf file and comment out the line:

Quote:

only_from = localhost


You can change it so it will only work for the hosts you need, but I just opened it up.

Don't forget to add it to your runlevel and start it:

Code:

rc-update add xinetd default
/etc/init.d/xinetd start


Step 4

Install VMware software.

First you need to create the directories rc[0-6].d in either /etc or /etc/init.d (whichever you prefer). VMware needs these to install but you don't have to do anything with them afterwards.

Extract the VMware-gsx-3.x.tgz file.
Extract the VMware-mui-3.x.tgz file.

Download the vmware-any-any-updateXX.tar.gz. The easiest way to do this for me was to do an:

Code:

emerge -f vmware-workstation


Here I am a little fuzzy on exactly what to do. I first ran the ./vmware-install.pl from the vmware-gsx-distrib and that ends up failing eventually. Then I run the ./runme.pl from the vmware-any-any-updateXX directory and everything turns out fine.

Step 5

Finalize the install.

Add all the vmware stuff to the startup runlevel

Code:

rc-update add vmware default
rc-update add httpd.vmware default


They should be started after the install so you don't have to explicitly start them.

Step 6

Bask in the glow!
_________________
Life is too short and too important to { take seriously | use Windows }.


Last edited by Edweirdo on Thu Aug 04, 2005 1:07 pm; edited 10 times in total
Back to top
View user's profile Send private message
vlack
n00b
n00b


Joined: 01 Apr 2003
Posts: 59
Location: Austin, TX

PostPosted: Sun Sep 14, 2003 3:55 am    Post subject: Reply with quote

Did anyone else notice that you went
Step 1
Step 2
Part 3
Step 5
Part 6
Part 7

?

<grin>
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Mon Sep 15, 2003 12:21 am    Post subject: Reply with quote

Pardon me, I have a little problem with dyslexia. I don't know if that's an excuse or not, but that's my story and I'm sticking with it.
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
axses
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 110

PostPosted: Sun Sep 28, 2003 3:12 am    Post subject: Reply with quote

Hi

I have been using gsx server since 2.0 as well, and the ammount of ram you mention is not required. If it was a windows machine sure. My gsx server boxes have obly 768mb ddr ram on a fast machine . The machines do not have scsi , but they are tweeked and are running gentoo. (hdparm is your friend)

I find I can run 2 virtual machines on the gsx server and there isnt a problem. Where you get that ram count I do not know. :-)

In your step four , instead of creating those directories which vmware needs , I have created symlinks to my default runlevel. Once that is done , you can play with the startup scripts if you want them to work.

gsx server is a great product for testing and learning ,my first gentoo instal was in a vmware machine :-)
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Fri Dec 05, 2003 6:54 pm    Post subject: Reply with quote

I generally have about 10 VMs running at a time. That's probably where I get the memory size from.
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Mon Mar 22, 2004 5:25 pm    Post subject: Reply with quote

Thanks you for the HOWTO, but i have a small problem.

I did "rc-update add vmware default" but vmware isn't startet at boot time.
I have to start it manually with "/etc/init.d/vmware start"

I don't have installed VMware-mui-3.x.tgz but I can't image that this is responsible for my problem.
Back to top
View user's profile Send private message
tychop
n00b
n00b


Joined: 20 Mar 2004
Posts: 8

PostPosted: Tue Mar 23, 2004 4:42 pm    Post subject: Reply with quote

I can't find xinitd ???

damn root # emerge -s xinitd
Searching...
[ Results for search key : xinitd ]
[ Applications found : 0 ]

How did you guys install xinitd?

(I run 2004.0 on an amd64)
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Tue Mar 23, 2004 4:48 pm    Post subject: Reply with quote

tychop wrote:
I can't find xinitd ???

damn root # emerge -s xinitd
Searching...
[ Results for search key : xinitd ]
[ Applications found : 0 ]

How did you guys install xinitd?

(I run 2004.0 on an amd64)


Does /etc/init.d/xinetd exist?

On my Gentoo machine xinitd was already installed.
I seems that it was installed during the Gentoo installation.
xinitd isn't a seperate package, but i don't know which ebuild contains it.
Back to top
View user's profile Send private message
tychop
n00b
n00b


Joined: 20 Mar 2004
Posts: 8

PostPosted: Tue Mar 23, 2004 5:08 pm    Post subject: Reply with quote

the is no xinitd in my /etc/init.d
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Tue Mar 23, 2004 5:34 pm    Post subject: Reply with quote

you did a mistake!

it's xinetd, not xinitd !

Code:
[/home/markus]$ emerge -s xinetd
Searching...
[ Results for search key : xinetd ]
[ Applications found : 1 ]

*  sys-apps/xinetd
      Latest version available: 2.3.12
      Latest version installed: 2.3.12
      Size of downloaded files: 285 kB
      Homepage:    http://www.xinetd.org
      Description: Xinetd is a powerful replacement for inetd, with advanced features
      License:     BSD


[/home/markus]$
Back to top
View user's profile Send private message
padrino121
n00b
n00b


Joined: 15 Feb 2003
Posts: 2

PostPosted: Thu Apr 22, 2004 5:17 pm    Post subject: Reply with quote

tuxian wrote:
Thanks you for the HOWTO, but i have a small problem.

I did "rc-update add vmware default" but vmware isn't startet at boot time.
I have to start it manually with "/etc/init.d/vmware start"

I don't have installed VMware-mui-3.x.tgz but I can't image that this is responsible for my problem.


I have the same problem. I've been running GSX on Gentoo for a very long time and because Gentoo doesn't seem to like startup scripts that aren't Gentoo specific (or LSB as the VMware GSX 3 script is) I had the same issue. rc-update will add it just fine but it won't actually start it.

I haven't bothered myself but in a few minutes you could write a wrapper script for it.
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Thu Apr 22, 2004 5:40 pm    Post subject: Reply with quote

padrino121 wrote:

I haven't bothered myself but in a few minutes you could write a wrapper script for it.


Please post it here when it works.
Back to top
View user's profile Send private message
padrino121
n00b
n00b


Joined: 15 Feb 2003
Posts: 2

PostPosted: Sat May 08, 2004 5:01 am    Post subject: Reply with quote

tuxian wrote:
padrino121 wrote:

I haven't bothered myself but in a few minutes you could write a wrapper script for it.


Please post it here when it works.


I put together the most simlpe script you could. Text below:

script is /etc/init.d/vmware

#!/sbin/runscript

start() {
ebegin "Starting VMware GSX"
/etc/vmware/init.d/vmware start > /dev/null
eend $?
}

stop() {
ebegin "Stopping VMware GSX"
/etc/vmware/init.d/vmware stop > /dev/null
eend $?
}
Back to top
View user's profile Send private message
fmeeusen
n00b
n00b


Joined: 18 May 2004
Posts: 13
Location: Albany, NY

PostPosted: Thu May 27, 2004 8:41 pm    Post subject: Reply with quote

Really appreciated all the help. It's working great on a first machine. Now to a problem on the second one:

Installed fine. From the Virtual Machine Console, added and configured a first virtual machine fine (accepted all defaults). Tried to start the machine and get the following window: "Error: The process exited with an error: End of error message" (real descriptive, huh?). On the gentoo server in /var/log/messages, I get this:

vmware-authd[1507]: The "/usr/lib/vmware/bin/vmware-vmx" process did not start properly. Exit 0xed00

Sounds like a security issue, but not sure how to tackle it. In /etc/services, "vmware-authd 902/tcp" has been added. Also commented out in /etc/xinet.d.conf "only_from = localhost as suggested earlier.

If it's worth anything, I also cannot connect to the Management Interface on this machine via a web browser (http://localhost:8222, or https://localhost:8333, or http://192.168.x.x:8222).

Any suggestions, please?
Back to top
View user's profile Send private message
fmeeusen
n00b
n00b


Joined: 18 May 2004
Posts: 13
Location: Albany, NY

PostPosted: Fri May 28, 2004 7:38 pm    Post subject: Reply with quote

Never mind. Resolved. Did a complete uninstall of GSX Server, emerge sync and emerge -u world. Reinstalled GSX Server and it worked as expected.

Not sure if that was the easiest fix, but it worked, and it got this system up to date.
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Mon May 31, 2004 9:33 pm    Post subject: Reply with quote

padrino121 wrote:
tuxian wrote:
padrino121 wrote:

I haven't bothered myself but in a few minutes you could write a wrapper script for it.


Please post it here when it works.


I put together the most simlpe script you could. Text below:

script is /etc/init.d/vmware

#!/sbin/runscript

start() {
ebegin "Starting VMware GSX"
/etc/vmware/init.d/vmware start > /dev/null
eend $?
}

stop() {
ebegin "Stopping VMware GSX"
/etc/vmware/init.d/vmware stop > /dev/null
eend $?
}


Thanks, works fine.
Back to top
View user's profile Send private message
rhoworth2
n00b
n00b


Joined: 10 Apr 2004
Posts: 10

PostPosted: Tue Sep 21, 2004 12:21 pm    Post subject: auto starting gsx and mui Reply with quote

Thanks for the great howto - I've been installing GSX 3.1.0, but the start-up scripts listed here don't work on my setup.

Instead, I add lines to /etc/conf.d/local.start e.g.:
/etc/init.d/vmware start
/etc/init.d/httpd.vmware start

...and don't forget to emerge apache
...and enable unload modules support in the kernel


tuxian wrote:
padrino121 wrote:
tuxian wrote:
padrino121 wrote:

I haven't bothered myself but in a few minutes you could write a wrapper script for it.


Please post it here when it works.


I put together the most simlpe script you could. Text below:

script is /etc/init.d/vmware

#!/sbin/runscript

start() {
ebegin "Starting VMware GSX"
/etc/vmware/init.d/vmware start > /dev/null
eend $?
}

stop() {
ebegin "Stopping VMware GSX"
/etc/vmware/init.d/vmware stop > /dev/null
eend $?
}


Thanks, works fine.
Back to top
View user's profile Send private message
BudgetDedicated
n00b
n00b


Joined: 26 Apr 2004
Posts: 12
Location: NL

PostPosted: Thu Sep 23, 2004 8:38 pm    Post subject: Reply with quote

If you want to emulate anyway... usermode linux is your friend. And if you absolutely have to do it with a windows host, coLinux is your friend. I'm running both in rather demanding environments. I've hardly had any real problems with it. I believe it is also much more efficient.
_________________
Grt, Erik
[ My commercial Ad.: Europe's top quality Gentoo VPS provider: BudgetDedicated (starting at 20 euro/month) ]
Back to top
View user's profile Send private message
cpunchin
n00b
n00b


Joined: 18 Feb 2004
Posts: 37

PostPosted: Fri Sep 24, 2004 3:08 am    Post subject: Reply with quote

BTW: has anyone been able to make GSX run under AMD64 64-bits? I've seen several posts about this problem with no solution...

:roll:
Back to top
View user's profile Send private message
bilan
n00b
n00b


Joined: 21 Jul 2003
Posts: 17

PostPosted: Mon Dec 20, 2004 2:15 pm    Post subject: Reply with quote

Hello,

U said: "vmware-authd also needs Xwindows libraries (libX11), which is why xfree is installed"

But isnt it a way to install only the libraries needed, without emerging all the xfree ?

Thanks,
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Mon Dec 20, 2004 3:48 pm    Post subject: Reply with quote

There may be but I don't know it. It doesn't take that long to emerge x11-org. Maybe 1 to 2 hours on a decent system. Besides, I hope you would run GSX on a decent system anyway.
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
hetman
n00b
n00b


Joined: 05 May 2003
Posts: 29
Location: Canada

PostPosted: Thu Feb 10, 2005 6:00 pm    Post subject: Reply with quote

are you able to run things like apache and webmin while running a gsx server?

how about configuring disc space, can u just specify a directory for the vm dsk files? im assuming it runs much like an esx server.
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Thu Feb 10, 2005 7:49 pm    Post subject: Reply with quote

GSX server is an application that runs on top of an operating system.

ESX server is the operating system.

So, to answer your questions, yes, with GSX server you can run apache and webmin while running gsx server. You configure your disk like you do for a normal server and then when you create a VM the files get placed in directories on your server.

Hope that answers your questions.
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
hetman
n00b
n00b


Joined: 05 May 2003
Posts: 29
Location: Canada

PostPosted: Thu Feb 10, 2005 8:30 pm    Post subject: Reply with quote

sure does, thanks.
i was just unsure if apache would conflict with the gsx web interface
Back to top
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Sun Feb 13, 2005 2:19 pm    Post subject: Reply with quote

Nope, GSX web interface runs on port 8222.
_________________
Life is too short and too important to { take seriously | use Windows }.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum