Koozali.org: home of the SME Server

VMware2 on host sme, how to make vmware autostart ?

Offline femc

  • **
  • 54
  • +0/-0
VMware2 on host sme, how to make vmware autostart ?
« on: November 22, 2008, 09:56:43 AM »
how to make vmware2 autostart on host sme8.3beta ( or sme74 ) when the server is booting

tried with chkconfig - either did not work or nics did not come up on boot. Only after vmware-config.pl, I am able to get the management console up.

please somebody help

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #1 on: November 22, 2008, 04:37:46 PM »
It should work if you add the required startup commands to the SME local event.

You should be able to figure out how to do this by reading one of the Wiki articles that talk about the local event: http://wiki.contribs.org/Special:Search?search=%22signal-event+local%22&go=Go

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #2 on: November 22, 2008, 05:44:12 PM »
sorry - i do not know enough.

giving the command 'signal-event local' + then reboot, did not work, still cannot access the vmware gui without running vmware-config.pl after reboot

femc

Offline crazybob

  • ****
  • 894
  • +0/-0
    • Stalzer R&D
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #3 on: November 22, 2008, 06:11:15 PM »
Did you follow the vmware how to in the contribs section of the wiki? There is a reference about two thirds of the way down on making it start at re-boot. The command to enter is:
Code: [Select]
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware

Bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #4 on: November 22, 2008, 07:21:52 PM »
i am having vmware2.0

vmware-config-tools.pl <=== not work

ln -fs /etc/rc.d/init.d/vmware-tools /etc/rc7.d/S90vmware-tools <=== not work

ln -fs /etc/rc.d/init.d/vmware-tools /etc/rc7.d/S90vmware <=== not work

somebody please help

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #5 on: November 22, 2008, 07:33:30 PM »
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware

also does not work ( means the management gui ) does not come up

femc

Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #6 on: November 22, 2008, 07:42:35 PM »
i am having vmware2.0
vmware-config-tools.pl <=== not work

This command does not exist at all. The correct one should be vmware-config.pl
...

Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #7 on: November 22, 2008, 07:45:27 PM »
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware

also does not work ( means the management gui ) does not come up

femc
Have you really followed the VMware How-To in the Wiki?

What is the output of the command
db configuration show vmware
...

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #8 on: November 22, 2008, 07:50:19 PM »
[root@c90-pc ~]#
[root@c90-pc ~]# db configuration show vmware
[root@c90-pc ~]#

does not show anything - i am having vmware 2.0 not vmware 1.07. Have to go to bed now 02h50 am

Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #9 on: November 23, 2008, 04:52:27 AM »
From the Wiki (http://wiki.contribs.org/Vmware):

To allow Management UI access from all over the internet:

config set httpd.vmware service TCPPorts 8222,8333 access public status enabled

Note: You need at least to define a service "the SME way". Even if you do not want the ports above open for public access, you would need as a minimum:

config set httpd.vmware service status enabled

After defining the service we need to make the service start at boot time

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware

Now we can manually start the service

/etc/rc7.d/S91httpd.vmware restart
signal-event remoteaccess-update
...

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #10 on: November 23, 2008, 06:03:34 AM »
i did

[root@c90-pc ~]#
[root@c90-pc ~]# config set httpd.vmware service status enabled
[root@c90-pc ~]# ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware
ln: creating symbolic link `/etc/rc7.d/S91httpd.vmware' to `/etc/rc.d/init.d/e-smith-service': File exists
[root@c90-pc ~]#
[root@c90-pc ~]# ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91httpd.vmware
ln: creating symbolic link `/etc/rc7.d/S91httpd.vmware' to `/etc/rc.d/init.d/e-smith-service': File exists
[root@c90-pc ~]# /etc/rc7.d/S91httpd.vmware restart
/etc/rc7.d/S91httpd.vmware: Couldn't find/execute init script for service httpd.vmware
[root@c90-pc ~]# signal-event remoteaccess-update
[root@c90-pc ~]#

after reboot :
https://192.168.1.90:8333/  <=== not work

maybe i am not expert enough to get this thing working. somebody has an easy solution ?

Offline Mjohnson

  • *
  • 172
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #11 on: November 23, 2008, 06:41:36 AM »
......

Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #12 on: November 23, 2008, 08:55:50 AM »
[root@c90-pc ~]# /etc/rc7.d/S91httpd.vmware restart
/etc/rc7.d/S91httpd.vmware: Couldn't find/execute init script for service httpd.vmware
[root@c90-pc ~]# signal-event remoteaccess-update

Are you now (after the signal-event and a restart) able to do
/etc/rc7.d/S91httpd.vmware restart

What messages do you get then?
...

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #13 on: November 23, 2008, 09:12:50 AM »
[root@c90-pc ~]# /etc/rc7.d/S91httpd.vmware restart
/etc/rc7.d/S91httpd.vmware: Couldn't find/execute init script for service httpd.vmware
[root@c90-pc ~]#

i guess things are different in vmware2.0.

Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #14 on: November 23, 2008, 11:08:30 AM »
i guess things are different in vmware2.0.
Not much at at all. We have been using version 2 for quite a while now.

Did you actually follow the HowTo and install the required contrib?

yum install smeserver-vmware-server --enablerepo=smecontribs
...

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #15 on: November 23, 2008, 01:42:53 PM »
Hi mdo,

I followed the install process from http://forums.contribs.org/index.php/topic,41575.0.html ( sorry it's in german ) :

- manual download VMware-server-2.0.0-122956.i386.rpm
- yum localinstall VMware-server-2.0.0-122956.i386.rpm
- vmware-config.pl
- https://smeipadresse:8333

everything works perfect - except that whenever the machine boots I have to run - vmware-config.pl, in order that i can get the remote management console.

I am using smebeta8 ( the sme73 did not suit my intel mobo ), the sme74 did.

shall i install :

1) http://download3.vmware.com/software/vmserver/VMware-mui-1.0.6-91891.tar.gz ? but as i understand it this becomes redundant under v2.0

2) smeserver-vmware-server from the sme73(74) contribs repo ? is there a reason for this ? shall i try ?

mdo - please give me some background how you did the installation for the vmware2 + the commands to make it run on boot.

I am currently playing around with vmware2 at home + once it is working will bring it to a production server in my company.


femc


Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #16 on: November 23, 2008, 06:57:19 PM »
I followed the install process from http://forums.contribs.org/index.php/topic,41575.0.html
everything works perfect
That sounds much better than yesterday
Quote
- except that whenever the machine boots I have to run - vmware-config.pl, in order that i can get the remote management console.

I am using smebeta8 ( the sme73 did not suit my intel mobo ), the sme74 did.
I do not know about VMware server2 on SME8beta. We are using it on SME7.3/7.4 only.

Quote
shall i install :

1) http://download3.vmware.com/software/vmserver/VMware-mui-1.0.6-91891.tar.gz ? but as i understand it this becomes redundant under v2.0

No, not required for VMware2.

Quote
2) smeserver-vmware-server from the sme73(74) contribs repo ? is there a reason for this ? shall i try ?

That's what I would install. You have done some things manually (ln -s) that this contrib will do so there might be a conflict but I would just try to install, then signal-event(s) upgrade&reboot.

If it works you might want let the original forum message creator know about this. He cannot 'update' this topic in a forum which is the reason why something like this (a "HowTo") should NOT be written in the forums but instead it should have gone into the Wiki.
...

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #17 on: November 25, 2008, 01:44:42 PM »
mdo,

i followed your advice - and installed the sme7.4 ( final ) new with a format of the raid1 ( and loss of 4 virtual machines - i know i could have saved them )

the reboot with autostart of the vmware2 is working now, without any complicated additional commands - surprisingly. here is what i did - and it works

======
intallation c90-pc
- install sme7.4 + update ( dedicated firewall )
-- int nic (intel) 192.168.1.90
-- ext nic 192.158.0.90
-- gateway + dns resolution 192.168.0.14 ( this is my firewall to the outside world )
- from w2k int network box (192.168.1.19) : 192.168.1.91/server-manager set ssh access right to local, workgroup to femc
- follow the vmware conribs ( go in to the c90-pc with putty )
-- copy over to the amdin bay VMware-server-2.0.0-122956.i386.rpm
-- change to this directory
-- yum install gcc
-- yum install VMware-server*.rpm smeserver-vmware-server --enablerepo=smecontrib
-- vmware-config.pl
--- bridge1 ==> vmnet0 to eht0
--- bridge2 ==> vmnet2 to eth1
--- hostonly1 = 172.16.176.0 / 255.255.255.0
--- hostonly2 = 192.168.217.0 / 255.255.255.0
--- license No = ***********************
-- signal-event post-upgrade; signal-event reboot
====

hope everything ok now

thks to mdo and the forum - again


Offline mdo

  • *
  • 355
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #18 on: November 25, 2008, 06:32:38 PM »
Thanks for reporting back. Good to know that it is working.
...

Offline Per

  • *
  • 63
  • +0/-0
    • Bends - better on the internet than in reality
Re: VMware2 on host sme, how to make vmware autostart ? [Solved]
« Reply #19 on: January 17, 2009, 04:30:34 PM »
Hi!
I was in the same position today with an SMEserver 7.4 that didn't start vmware after reboot.

The solution was to, like you did, reinstall SME (formatting the drives), update, and install VMware server 2 together with the contrib, just as the wiki HowTo states.
GCC still seems to be an optional as it worked for me without it.

The problem orginated from installing vmware server 2 without the contrib smeserver-vmware-server.
Just uninstalling vmware didn't fix it, I had to reinstall the whole server before I succeded with vmware.
But what should I have done otherwise this slightly boring saturday? :-)
I think I'll throw in some additional comments in the wiki HowTo about this.
/Per
NO! I refuse to put some clever latin sentence here!

Offline leon85

  • 8
  • +0/-0
    • OpenCSI.it
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #20 on: April 10, 2009, 09:49:16 AM »
[SOLVED]
Ciao
I have a server with SME 7.4 and I had installed vmware-server 1.0.8
Now I want to upgrade to vmware-server 2.0.1
I have read the guide in the contrib page:
http://wiki.contribs.org/Vmware

I uninstall the old version:
Code: [Select]
vmware-uninstall-mui.pl
yum remove VMware-server gcc smeserver-vmware-server

so now I have installed the 2.0.1 version, but not autostart!
Code: [Select]
yum install /path/to/VMware-server.rpm smeserver-vmware-server gcc --enablerepo=smecontribs
vmware-config.pl
signal-event post-upgrade; signal-event reboot
and have an error in the start log:
Code: [Select]
/etc/rc7.d/S91httpd.vmware: Couldn't find/execute init script for service httpd.vmware
I remove the vmware-server 2.0.1 and the configuration file:
Code: [Select]
yum remove VMware-server gcc smeserver-vmware-server
rm -Rf /etc/vmware/
rm -Rf /var/log/vmware/
rm -Rf /usr/lib/vmware/     ******attention to this folder is the default position of virtual machines****
rm -Rf /etc/rc7.d/S91httpd.vmware      *****This service does not exist*****

Now i have install again the server 2.0.1
Not autostart!!!

Them i checked the service:
Code: [Select]
db configuration show vmware
the service name is "S91vmware" and not "S91httpd.vmware"!!!!!!!!!!!

link to service:
Code: [Select]
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S91vmware
and now it works!!!!!!!!!!!!!!!!!!



Now when I connect to the page:
Code: [Select]
http://servername:8222redirect to:
Code: [Select]
https://servername:8333/ui/#but request a certificate...

I need to find the solution...

Bye Bye
Leonardo Cioni
www.opencsi.it

Offline femc

  • **
  • 54
  • +0/-0
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #21 on: April 11, 2009, 04:31:56 PM »
As I mentioned earlier - I did not unistall vmware + install new, I reformated the hdd with a new installation of sme7.4, yum updared, and then installed vmware new.

A new installation does not take long .....

hdmueller

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Re: VMware2 on host sme, how to make vmware autostart ?
« Reply #22 on: April 12, 2009, 07:13:45 AM »
A new installation does not take long .....

hdmueller

That's well and good for some ... but if there is a solution then it would be better then a re-load.

It's not practical just to reload a server operating system every time an addon doesn't work properly.

In saying that though there is a warning at the bottom of the http://wiki.contribs.org/Vmware page.

Quote
Installing VMware Server 2 without the contrib smeserver-vmware-server will likely result in failure to start VMware after a reboot.
If that is your case you probably have to reinstall the whole server before attempting to install VMware again.

Regards,

Tib