Re: [HOWTO] start and stop VM with your NAS.
Posted: Wed Sep 27, 2017 8:14 pm
Hi
I have tested the same part of your script on my server, VBoxManage works has expected, thus log is almost the same has yours ( I have the funny bug 'flase' in script too ), only the DEFAULT_AVOUTPUT is equal to HDMI1 on my server.
- Did you have installed this APPs : media-pack, xorg, virtualbox extension ?
- none of this APP are disabled ? ( they are all enabled ? )
- are all your APPs at the last level of update ? ( APP central --> installed APP --> refresh list , APP central --> all APP --> refresh , APP Central --> update)
I have tested the same part of your script on my server, VBoxManage works has expected, thus log is almost the same has yours ( I have the funny bug 'flase' in script too ), only the DEFAULT_AVOUTPUT is equal to HDMI1 on my server.
Code: Select all
+ PKG_PATH=/usr/local/AppCentral/virtualbox
+ VM_NAME=grenouille
+ 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=HDMI1
+ export EDID_PATH=/sys/class/drm/card0-HDMI-A-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 vms
"<inaccessible>" {d6342754-a55f-4548-bb8a-a8adf1ab0b56}
"<inaccessible>" {f29edb67-44e8-4410-a292-f101467fa97c}
"<inaccessible>" {3b9bb93d-5e86-495c-b635-2b792d8462a5}
+ VBoxManage list runningvms
+ exit 0
- none of this APP are disabled ? ( they are all enabled ? )
- are all your APPs at the last level of update ? ( APP central --> installed APP --> refresh list , APP central --> all APP --> refresh , APP Central --> update)
I was wrong : VBoxManage don't work directly , is not in the path of a logged shell. You must use it in the script.sksbir wrote:....
Out of that, vboxmanage command should work directly once connected to your NAS with ssh ( in my memory )...