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,653
  • +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
...