VirtualBox Startup Script Solaris 10 U6


 
Thread Tools Search this Thread
Operating Systems Solaris VirtualBox Startup Script Solaris 10 U6
# 1  
Old 12-30-2008
VirtualBox Startup Script Solaris 10 U6

I have an Ultra 24 with Solaris 10 U6 with the latest patches. I'm running VirtualBox 2.1.0 with Windows 2003 as the guest. What I'm trying to do is have the Windows VM start at Solaris startup. I had a simple script that was working that was in /etc/init.d and linked to /etc/rc3.d. For some reason the script stopped working and I'm not sure why. I rewrote the script to act more as a legacy script with start and stop arguments needed. I have created the script in /etc/init.d with a link in /etc/rc3.d names S99startmyvm. I have even tried to make it into a service with a manifest but I could not get it to work. I can manually start the scipt from command line successfully after start up but Solaris doens't seem able to run them. Any ideas why I can run the scripts but Solaris isn't able to?
# 2  
Old 12-31-2008
Probably something to do with login variables. The easiest thing would be to post your startup script.
# 3  
Old 01-05-2009
Both of these work if ran manually.


Here is my original that seemed to work for a little while but does not now.

Quote:
#!/bin/bash

VBoxHeadless -s merrywin1 -v off &
Here is a different one I tried that doesn't seem to work.

Quote:
#!/bin/bash
#
#
#merrywin1 start stop script
#
#
#ident "@(#)merrywin1 1.1 08/12/30 SMI"

case "$1" in
'start')
/opt/VirtualBox/VBoxManage startvm merrywin1 &
;;

'stop')
/opt/VirtualBox/VBoxManage controlvm merrywin1 poweroff
;;

*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac

exit 0
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 dual boot with BSD on virtualbox

Hi there, I am new to this operating system, so would like to ask for directions on how to go about doing Solaris 10 dual boot with freeBSD on a virtual machine (virtualbox). Do you have to partition the disk to allow for another OS to occupy? Like in windows? I tried doing this but failed... (6 Replies)
Discussion started by: czy
6 Replies

2. Solaris

JVM startup script in Solaris

Hi, I've installed dynatrace on a SunOS(5.10) & I need to update its agent path in JVM start up script. Where can I find or which script starts JVM? Some Details here : Java location : /<server location>/oracle/forms/FRHome_1/jdk/jre/bin Please help me in this. I did some research... (2 Replies)
Discussion started by: raj100
2 Replies

3. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

4. UNIX for Dummies Questions & Answers

Having a problem with the time sync from Solaris 10 to VirtualBox

I have a VirtualBox w2008r2 Domain Controller running on a Solaris 10 server. I have the time on the Virtual machine set to Default time sync (bios clock) and the Solaris server set to sync to 0 8,20 * * * /usr/sbin/ntpdate tick.usno.navy.mil tock.usno.navy.mil >> /tmp/ntp.log My problem is... (2 Replies)
Discussion started by: SIFT3R
2 Replies

5. Solaris

Is there a way to debug the startup on Solaris?

Is there a way to debug the startup on a VT100 running Solaris 5? I have a problem related to file attributes that are resetting to there prior settings when the machine reboots. (3 Replies)
Discussion started by: jimcz2it
3 Replies

6. UNIX for Dummies Questions & Answers

can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC?

Hi Gurus can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC? regards, Israel. (9 Replies)
Discussion started by: iga3725
9 Replies

7. Virtualization and Cloud Computing

VirtualBox on Solaris -> no 64 bit guests

Hi, we try to export a Solaris installation from one laptop to another. I installed Solaris as 64 bit guest OS on my Mac in VirtualBox. After the transfer of the exported files to the other laptop (Dell Studio with T4300 Intel CPU) we try to start the guest in 64 bit mode but the guest only runs... (2 Replies)
Discussion started by: DukeNuke2
2 Replies

8. Shell Programming and Scripting

[Help] startup script on solaris 8

hi experts, i have some problem with my solaris 8 v890 server, is : the server running process called SS7 below is example process : PID STAT MODE HOST MUX OBJECT 384 ok LX|A USSDGmdn-1a spm/0 daemon 385 ok LX|A USSDGmdn-1a spm/2 ... (0 Replies)
Discussion started by: bucci
0 Replies

9. Shell Programming and Scripting

Solaris Startup script for Apache.

I'm running Solaris 5.9 and Apache 2.... I've created a startup script for Apache....but it doesn't work!!! it resides in /etc/init.d and has a link to /etc/rc3.d and if it run it as /etc/init.d/apache_start stop it stops the httpd services and /etc/init.d/apache_start start starts the... (3 Replies)
Discussion started by: Zak
3 Replies
Login or Register to Ask a Question