一、命令说明:
后台启动VirtualBox虚拟机的命令有2个:
    
     VBoxHeadless -s|–startvm <uuid>|<name> [–vrde=on|off|config]
    
   
   VirtualBox 1.6后的版本里,VBoxVRDP只是VBoxHeadless的快捷方式,不再是单独的命令。
   
   防止VRDP端口(虚拟机设置里的远程桌面)被外界访问到,用参数–vrde=off,虚拟机用桥接
   
   网络时,虚拟机系统自带的远程桌面不受此参数影响。
   
    VBoxManage [-q|–nologo] startvm <uuid>|<name> [–type gui|sdl|headless]
    
    The following values are allowed:
    
    gui – Starts a VM showing a GUI window. This is the default.
    
    headless – Starts a VM without a window for remote display only.
   
   启动虚拟机的脚本(虚拟机的名称为XP):
   
   
    @echo off
    
    :: by oicu
    
    cd /d “D:\Program Files\Oracle\VirtualBox”
    
    VBoxHeadless –startvm “XP”
    
    :: VBoxManage startvm “XP” –type headless
   
直接启动批处理脚本的话(包括脚本放到“启动”里),无
 
