id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	guest	host
4034	VirtualBox stop_vm init script does not work	Flancer		My VMs do not shutdown properly everything I reboot or shutdown the host machine.\r\n\r\nI have noticed that the stop_vm function in the init script of vboxdrv does not really work.\r\n\r\nI have made the following modification to the stop_vm function to make it work.\r\n\r\n{{{\r\nelif [ "$SHUTDOWN" = "savestate" ]; then\r\n    begin_msg "Saving state of remaining VMs"\r\n    for v in $VMS; do\r\n        v=`echo ${v:1}`\r\n        v=`echo ${v%\\"}`\r\n        sudo -H -u $i $VBOXMANAGE -nologo controlvm $v savestate\r\n    done\r\n    succ_msg\r\n}}}\r\nI am using VirtualBox 2.2.2. and Ubuntu 8.0.4.	defect	closed	major	other	VirtualBox 2.2.2	worksforme			other	other
