Re: Virtualbox starten
Hi Boris,
eins vorweg: ich kenne Virtualbox überhaupt nicht,
habe aber schon einige init-Script's gebaut.
Am Donnerstag 17 Januar 2008 17:13:24 schrieb Boris Andratzek:
> VBoxVRDP -startvm "Windows 2003 Server"
> Wenn ich nun die ssh-Session schieße, fällt die VirtualBox auf die Nase -
klar
So könnte es aussehen:
dom0:~# cat /etc/init.d/vbox_win2003server
#!/bin/bash
# Author: Boris Andratzek
# Please send feedback to Boris.Andratzek@cation.de
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
### BEGIN INIT INFO
# Provides: vbox_win2003server
# Required-Start:
# Should-Start: $ALL
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Short-Description: Start Windows 2003 Server in a VirtualBox
# Description: Start Windows 2003 Server in a VirtualBox
### END INIT INFO
#
case "$1" in
start)
VBoxVRDP -startvm "Windows 2003 Server" &
;;
stop)
echo "Befehl muss noch eingefuegt werden)&
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
echo "Befehl muss noch eingefuegt werden)&
;;
*)
echo "Usage: $0 { start | stop | restart | status }"
exit 1
;;
esac
>
> Thanks,
>
> Boris
Hoffe geholfen zu haben.
MfG, Chris.....
Reply to: