nloding
July 15th, 2008, 12:49 PM
I have the following file, vm.sh, in /etc/init.d/:
#!/bin/sh
Xvfb :1012 -screen 0 640x480x8 &
sleep 60 && DISPLAY=:1012 vmplayer /image/image.vmx
I have added it to rc.local and tried, and added it via update-rc.d vm.sh defaults and it still failed. If I check the running processes with ps auwx, I can see both Xvfb and vmplayer running, but I cannot ping the guest OS.
If I remove the vm.sh script from startup, reboot, and execute the shell script itself, everything starts just fine -- I can ping the guest OS. Or, if I stop rc.local, killall Xvfb, then start rc.local, it works just fine. I just doesn't want to work on startup. syslog and vmware.log don't tell me anything is wrong.
Anyone have any suggestions? My goal to autostart my vmware image on a headless server. I partially followed this tutorial (http://www.linuxfromscratch.org/hints/downloads/files/vmware-player.txt).
#!/bin/sh
Xvfb :1012 -screen 0 640x480x8 &
sleep 60 && DISPLAY=:1012 vmplayer /image/image.vmx
I have added it to rc.local and tried, and added it via update-rc.d vm.sh defaults and it still failed. If I check the running processes with ps auwx, I can see both Xvfb and vmplayer running, but I cannot ping the guest OS.
If I remove the vm.sh script from startup, reboot, and execute the shell script itself, everything starts just fine -- I can ping the guest OS. Or, if I stop rc.local, killall Xvfb, then start rc.local, it works just fine. I just doesn't want to work on startup. syslog and vmware.log don't tell me anything is wrong.
Anyone have any suggestions? My goal to autostart my vmware image on a headless server. I partially followed this tutorial (http://www.linuxfromscratch.org/hints/downloads/files/vmware-player.txt).