Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #21  
Old 18th August 2008, 16:44
thanis thanis is offline
Member
 
Join Date: Aug 2007
Location: somewhere over the rainbox
Posts: 30
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Actually, this is quite easy. VMWare Server 2.0 uses a different way of starting VM's. So, if you edit the vmstart file and change the lines using "vmware-cmd start/stop..." to
Code:
#!/bin/bash 
case "$1" in 
start) 
/usr/bin/vmrun -T server -h https://<server-ip-address>:<port>/sdk -u root -p <rootpassword> start nogui "<path-to-vmxfile>" 2>/dev/null 
# EXAMPLE:  /usr/bin/vmrun -T server -h https://192.168.1.13/sdk -u root -p password start nogui "/var/vm/myvirtualmachine/myvm.vmx"
;;
stop) 
/usr/bin/vmrun -T server -h https://<server-ip-address>:<port>/sdk -u root -p <rootpassword> stop "<path-to-vmxfile>" 2>/dev/null 
;;
status) 
/usr/bin/vmrun -T server -h https://<server-ip-address>:<port>/sdk -u root -p <rootpassword> list
;;
*) 
echo "Usage: `basename $0` 'virtual machine file' {start|stop|status}" 
echo "This commands stops/starts/displays all configured VM's. Update this script !!
;;
esac 
exit 0
Beware, I do not run VMWare Server 2.0 so I do not guarantee the validity of this script. Please check the VMWare Server manual, or revert to version 1.0x for compatability reasons.

Grtz,
Thanis
Reply With Quote
The Following User Says Thank You to thanis For This Useful Post:
Bart van Kleef (18th August 2008)
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 8.04 Server LTS and VMware Server 1.05 Ken Lee Suggest HOWTO 3 10th June 2008 16:03
VMware Server and Linux Mint 5 waellerbe HOWTO-Related Questions 1 2nd June 2008 10:42
VMWARE server 1.0.3 from 1.0.1 gone bad rjn456 Installation/Configuration 2 13th June 2007 08:13
vmware server setup with multiple users handband2 HOWTO-Related Questions 3 19th April 2007 14:44
VMWare Server Free License - Invalid bardgd HOWTO-Related Questions 6 19th November 2006 17:50


All times are GMT +2. The time now is 13:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.