Code: Select all
VBoxManage list runningvms
Code: Select all
VBoxManage list runningvms
maybe you are right. I could not determine if NAS shutdown let enough time to VM to shutdown properly. To be sure, I use scheduler from VM OS to shutdown VM gracefully, and after that, use scheduler from NAS to reboot : after reboot, VM is brought up again.duffoy wrote:Thank you sksbir,
I know this command but what I looking for is a way to control in Logfile etc...to check if a VMs is really shut down gracefully or not.
If you testing the whole installation I think this is a important thing.
The first VM I used is working great, whit the 2 something is weird so have to check this.
Think the script is not used.
Is there a other limitation in /usr/local/etc/init.d/ of the certain levels I can use.
For shutdown I want use K47-K49 and for start the VM's S97-S99.
Best D.
First thank you sksbir, can you describe where and how you setup this...will be great...sksbirwrote:
maybe you are right. I could not determine if NAS shutdown let enough time to VM to shutdown properly. To be sure, I use scheduler from VM OS to shutdown VM gracefully, and after that, use scheduler from NAS to reboot : after reboot, VM is brought up again.
For example:duffoy wrote:First thank you sksbir, can you describe where and how you setup this...will be great...sksbirwrote:
maybe you are right. I could not determine if NAS shutdown let enough time to VM to shutdown properly. To be sure, I use scheduler from VM OS to shutdown VM gracefully, and after that, use scheduler from NAS to reboot : after reboot, VM is brought up again.
Best D.
Code: Select all
VBoxManage controlvm $VM_NAME savestate
Code: Select all
EXT4-fs (dm-0): INFO: recovery required on readonly filesystem
Code: Select all
error while loading shared libraries: VBoxDDU.so: cannot open shared object file: No such file or directory
Code: Select all
#!/bin/sh
PKG_PATH=/usr/local/AppCentral/virtualbox
VM_NAME="UbuntuServer"
source $PKG_PATH/CONTROL/env.sh
. /lib/lsb/init-functions
VBoxManage list runningvms
Code: Select all
set -x
Code: Select all
admin@AS:/volume1/Download/scripts $ ./VM_UbuntuServer_test.sh
+ PKG_PATH=/usr/local/AppCentral/virtualbox
+ VM_NAME=UbuntuServer
+ source /usr/local/AppCentral/virtualbox/CONTROL/env.sh
+ XORG_PATH=/usr/local/AppCentral/xorg
+ [ ! -e /usr/local/AppCentral/xorg/CONTROL/env.sh ]
+ source /usr/local/AppCentral/xorg/CONTROL/env.sh
+ PKG_PATH=/usr/local/AppCentral/xorg
+ export XORG_BIN_PATH=/usr/local/AppCentral/xorg/bin:/usr/local/AppCentral/xorg/usr/bin:/usr/local/AppCentral/xorg/usr/sbin:/usr/local/AppCentral/xorg/sbin:/usr/local/AppCentral/xorg/usr/libexec
+ export XORG_LD_LIBRARY_PATH=/usr/local/AppCentral/xorg/lib:/usr/local/AppCentral/xorg/usr/lib
+ export PATH=/usr/local/AppCentral/xorg/bin:/usr/local/AppCentral/xorg/usr/bin:/usr/local/AppCentral/xorg/usr/sbin:/usr/local/AppCentral/xorg/sbin:/usr/local/AppCentral/xorg/usr/libexec:/bin:/sbin:/usr/bin:/usr/sbin:/usr/builtin/bin:/usr/builtin/sbin:/usr/local/bin:/usr/local/sbin
+ export LD_LIBRARY_PATH=/usr/local/AppCentral/xorg/lib:/usr/local/AppCentral/xorg/usr/lib:/usr/lib64:/usr/lib
+ export PYTHONPATH=:/usr/local/AppCentral/xorg/usr/lib/python2.7/site-packages
+ export DISPLAY=:0
+ export XCURSOR_THEME=whiteglass
+ export XCURSOR_SIZE=48
+ export LD_PRELOAD=/usr/lib/preloadable_libiconv.so
+ export DEFAULT_AVOUTPUT=DP1
+ export EDID_PATH=/sys/class/drm/card0-DP-1/edid
+ DEBUG=flase
+ [ true == flase ]
+ PKG_PATH=/usr/local/AppCentral/virtualbox
+ export VIRTUALBOX_BIN_PATH=/usr/local/AppCentral/virtualbox/bin:/usr/local/AppCentral/xorg/bin:/usr/local/AppCentral/xorg/usr/bin:/usr/local/AppCentral/xorg/usr/sbin:/usr/local/AppCentral/xorg/sbin:/usr/local/AppCentral/xorg/usr/libexec
+ export PATH=/usr/local/AppCentral/virtualbox/bin:/usr/local/AppCentral/xorg/bin:/usr/local/AppCentral/xorg/usr/bin:/usr/local/AppCentral/xorg/usr/sbin:/usr/local/AppCentral/xorg/sbin:/usr/local/AppCentral/xorg/usr/libexec:/bin:/sbin:/usr/bin:/usr/sbin:/usr/builtin/bin:/usr/builtin/sbin:/usr/local/bin:/usr/local/sbin
+ export VIRTUALBOX_LD_LIBRARY_PATH=/usr/local/AppCentral/virtualbox/lib:/usr/local/AppCentral/xorg/lib:/usr/local/AppCentral/xorg/usr/lib
+ export LD_LIBRARY_PATH=/usr/local/AppCentral/virtualbox/lib:/usr/local/AppCentral/xorg/lib:/usr/local/AppCentral/xorg/usr/lib:/usr/lib64:/usr/lib
+ export DISPLAY=:0
+ DEBUG=flase
+ [ true == flase ]
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ true
+ VBoxManage list runningvms
VBoxManage: error while loading shared libraries: VBoxDDU.so: cannot open shared object file: No such file or directory
admin@AS:/volume1/Download/scripts $ ./VBoxManage
-sh: ./VBoxManage: not found
admin@AS:/volume1/Download/scripts $ VBoxManage
-sh: VBoxManage: not found
admin@AS:/volume1/Download/scripts $ vboxmanage
-sh: vboxmanage: not found
admin@AS:/volume1/Download/scripts $