[CLOSE]VirtualBox 3.0.12 loses its guests

Discussions related to using VirtualBox on Linux hosts.
Post Reply
syj
Posts: 6
Joined: 7. Dec 2009, 10:59
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Linux, Windows

[CLOSE]VirtualBox 3.0.12 loses its guests

Post by syj »

Hi,
I launch two guest by those commands.

Code: Select all

/usr/lib/virtualbox/VBoxHeadless -s 2K3 --vrdp on --vrdpport 10001
/usr/lib/virtualbox/VBoxHeadless -s uglpi --vrdp on --vrdpport 10000
At first time, all work fine. Rdp control is enable. VBoxManage say my vms are up.

But next day (or maybe after long time), the rdp control is disable. VBoxManage say there is no more vm running.

Code: Select all

administrateur@vbox2:~$ VBoxManage list runningvms
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
administrateur@vbox2:~$ 
I can ping again vm, I can connect on by SSH or RDP of my 2003.
This command show they work run.

Code: Select all

administrateur@vbox2:~$  ps aux | grep VBoxHeadless
1000      6264  0.0  0.0  42188  1568 ?        S    Dec07   0:00 su -c VBoxHeadless -s uglpi --vrdp on --vrdpport 10000 administrateur
1000      6266  0.0  0.0  42188  1568 ?        S    Dec07   0:00 su -c VBoxHeadless -s 2K3 --vrdp on --vrdpport 10001 administrateur
1000      6280  140 18.0 2460528 2192816 ?     Sl   Dec07 1674:50 /usr/lib/virtualbox/VBoxHeadless -s 2K3 --vrdp on --vrdpport 10001
1000      6281  0.3  2.6 532360 316952 ?       Sl   Dec07   4:39 /usr/lib/virtualbox/VBoxHeadless -s uglpi --vrdp on --vrdpport 10000
1000     17409  0.0  0.0   6548   804 pts/0    R+   08:31   0:00 grep VBoxHeadless
I'm under Ubuntu 9.04, I test 3.0.10 and 3.0.12.

I use my owns scripts for launch my vms.

Code: Select all

administrateur@vbox2:/etc/init.d$ cat VBoxNetwork 
#!/bin/bash
# Plug VM Network interface on bridge
function createTun() {
echo "Up dev=$1 user=$2 bridge=$3"
tunctl -t $1 -u $2
ip link set up dev $1
brctl addif $3 $1
}

function deleteTun() {
echo "Down dev=$1 bridge=$3 "
brctl delif $3 $1
tunctl -d $1
}

function upNetwork() {
cat /etc/vbox/guests | grep -v \# | while curLine=`line`
do
	createTun $curLine
done
}

function downNetwork() {
cat /etc/vbox/guests | grep -v \# | while curLine=`line`
do
	deleteTun $curLine
done
}

case "$1" in
start)
	upNetwork
	;;

stop)
	downNetwork
	;;

force-reload|restart)
	downNetwork
	sleep 5
	upNetwork
	;;

*)
	echo "Usage: /etc/init.d/VBoxNetwork.sh {start|stop|restart|force-reload}"
	exit 1
	;;
esac
exit 0

Code: Select all

administrateur@vbox2:/etc/init.d$ cat VBoxControler 
#!/bin/bash
# Launch VM

function startGuest() {
echo "Start guest=$4"
su -c "VBoxHeadless -s $4 --vrdp on --vrdpport $6" administrateur < /dev/null &> /home/administrateur/log/$1.log &
}

function stopGuest() {
echo "Stop guest=$4"
su -c "VBoxManage controlvm $4 poweroff" administrateur &
}

function controlGuest() {
echo "control guest=$4"
if ! ping -q -c 2 $5
then
        echo La VM $4 ne repond pas au ping
        if su administrateur -c VBoxManage list runningvms | grep $4
        then
                su administrateur -c VBoxManage controlvm $4 poweroff &
                sleep 60
        fi

        echo Lancement de la VM $4
	startGuest $curLine
else
        echo La VM $4 est en vie
fi

}



function startAllGuests() {
cat /etc/vbox/guests | grep -v \# | while curLine=`line`
do
	startGuest $curLine
done
}

function stopAllGuests() {
cat /etc/vbox/guests | grep -v \# | while curLine=`line`
do
	stopGuest $curLine
done
}

function controlAllGuests() {
cat /etc/vbox/guests | grep -v \# | while curLine=`line`
do
        controlGuest $curLine
done
}

case "$1" in
start)
	startAllGuests
	;;

stop)
	stopAllGuests
	;;

control)
	controlAllGuests
	;;

force-reload|restart)
	stopAllGuests
	sleep 60
	controlAllGuests
	;;

*)
	echo "Usage: /etc/init.d/VBoxNetwork.sh {start|stop|control|restart|force-reload}"
	exit 1
	;;
esac

exit 0
Configuration File:

Code: Select all

administrateur@vbox2:/etc/init.d$ cat /etc/vbox/guests 
# Each line should be of the format :
# <interface name> <user name> <bridge> <guestname> <guestip> <rdpport>
vbox0 administrateur br0 uglpi X.X.X.45 10000
vbox1 administrateur br0 2K3 X.X.X.46 10001
administrateur@vbox2:/etc/init.d$ 
Last edited by syj on 16. Dec 2009, 14:52, edited 1 time in total.
syj
Posts: 6
Joined: 7. Dec 2009, 10:59
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: VirtualBox 3.0.12 loses its guests

Post by syj »

Before , we ask me:

Code: Select all

administrateur@vbox2:~/log$ VBoxManage list hostinfo
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Host Information:

Host time: 2009-12-08T07:56:27.813000000Z
Processor online count: 4
Processor count: 4
Processor#0 speed: 2000 MHz
Processor#1 speed: 2000 MHz
Processor#2 speed: 2000 MHz
Processor#3 speed: 2000 MHz
Memory size: 11868 MByte
Memory available: 9258 MByte
Operating system: Linux
Operating system version: 2.6.28-16-server

administrateur@vbox2:~/log$ vboxmanage showvminfo 2K3                   
The program 'vboxmanage' is currently not installed.  To run 'vboxmanage' please ask your administrator to install the package 'virtualbox-ose'
-bash: vboxmanage: command not found
administrateur@vbox2:~/log$ VBoxManage showvminfo 2K3
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Name:            2K3
Guest OS:        Windows 2003
UUID:            5378ed18-d258-436d-8cbf-8bfd93bb863a
Config file:     /home/administrateur/.VirtualBox/Machines/2K3/2K3.xml
Memory size:     2048MB
VRAM size:       12MB
Number of CPUs:  2
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
PAE:             on
Time offset:     0 ms
Hardw. virt.ext: on
Nested Paging:   off
VT-x VPID:       off
State:           powered off (since 2009-12-07T11:39:50.000000000)
Monitor count:   1
3D Acceleration: off
Floppy:          empty
SATA:            disabled
IDE Controller:  PIIX4
Primary master:  /home/administrateur/.VirtualBox/HardDisks/2K3.vdi (UUID: 495386be-808c-4f7a-93df-afa91b6f2674)
DVD:             /usr/share/virtualbox/VBoxGuestAdditions.iso (UUID: 2ed1808d-ad52-4251-816c-ec5f8984ca7c)
NIC 1:           MAC: 080027526391, Attachment: Bridged Interface 'vbox1', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
UART 1:          disabled
UART 2:          disabled
Audio:           enabled (Driver: ALSA, Controller: AC97)
Clipboard Mode:  Bidirectional
VRDP:            enabled (Address 0.0.0.0, Port 10001, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
USB:             enabled

USB Device Filters:

<none>

Shared folders:  <none>

Guest:

Statistics update:                   disable


administrateur@vbox2:~/log$ VBoxManage showvminfo uglpi
VirtualBox Command Line Management Interface Version 3.0.12
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Name:            uglpi
Guest OS:        Ubuntu
UUID:            0df89261-5238-4051-9556-2781a65b5c2e
Config file:     /home/administrateur/.VirtualBox/Machines/uglpi/uglpi.xml
Memory size:     512MB
VRAM size:       12MB
Number of CPUs:  1
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
PAE:             off
Time offset:     0 ms
Hardw. virt.ext: on
Nested Paging:   off
VT-x VPID:       off
State:           powered off (since 2009-12-07T11:39:50.000000000)
Monitor count:   1
3D Acceleration: off
Floppy:          empty
SATA:            disabled
IDE Controller:  PIIX4
Primary master:  /home/administrateur/VirtualBox/HardDisk/ubuntuserver.vdi (UUID: 07a8836b-42be-4aa6-a138-dc6e55e90b52)
DVD:             Host drive /dev/sr0
NIC 1:           MAC: 080027899C2E, Attachment: Bridged Interface 'vbox0', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
UART 1:          disabled
UART 2:          disabled
Audio:           disabled
Clipboard Mode:  Bidirectional
VRDP:            enabled (Address 0.0.0.0, Port 10000, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
USB:             disabled

USB Device Filters:

<none>

Shared folders:  <none>

Guest:

Statistics update:                   disabled



syj
Posts: 6
Joined: 7. Dec 2009, 10:59
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: VirtualBox 3.0.12 loses its guests

Post by syj »

One day after , I make this request ( http://www.virtualbox.org/ticket/5691 ).
My VirtualBox doesn't lose its guests. So maybe, it changes tomorrow.
syj
Posts: 6
Joined: 7. Dec 2009, 10:59
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: VirtualBox 3.0.12 loses its guests

Post by syj »

I lost my guests two time but since I never lost them again.
Post Reply