VirtualBox——CLI——VBoxManage——VBoxHeadless——rdesktop-vrdp

VirtualBox——CLI——VBoxManage——VBoxHeadless——rdesktop-vrdp


VBoxManage list hostifs
VBoxManage list vms
VBoxManage list runningvms            # 列出运行中的虚拟机
VBoxManage startvm Winxp --type gui        # 使用gui类型启动虚拟机 or
VBoxManage startvm Winxp
VBoxManage controlvm Winxp acpipowerbutton    # 关闭虚拟机,等价于点击系统关闭按钮,正常关机
VBoxManage controlvm Winxp poweroff        # 关闭虚拟机,等价于直接关闭电源,非正常关机
VBoxManage controlvm Winxp pause        # 暂停虚拟机的运行
VBoxManage controlvm Winxp resume        # 恢复暂停的虚拟机
VBoxManage controlvm Winxp savestate        # 保存当前虚拟机的运行状态

VBoxManage startvm Winxp --type headless    # 使用headless类型启动虚拟机 or
VBoxHeadless --startvm Winxp
VBoxManage controlvm Winxp acpipowerbutton    # 关闭虚拟机,等价于点击系统关闭按钮,正常关机

VBoxHeadless --startvm Winxp --vrde config
VBoxHeadless --startvm Winxp --vrde on
rdesktop-vrdp -a 16 -N 127.0.0.1:3389


VBoxManage startvm Winxp
VBoxManage modifyvm Winxp --vrde on --vrdeport 3389 --vrdeaddress 10.108.162.164
VBoxHeadless --startvm Winxp
rdesktop-vrdp -a 16 -N 10.108.162.164:3389
VBoxManage controlvm Winxp acpipowerbutton


VBoxManage startvm android-x86-6.0-rc1-1
VBoxManage modifyvm android-x86-6.0-rc1-1 --vrde on --vrdeport 3389 --vrdeaddress 10.108.162.164
VBoxHeadless --startvm android-x86-6.0-rc1-1
rdesktop-vrdp -a 16 -N 10.108.162.164:3389
VBoxManage controlvm android-x86-6.0-rc1-1 acpipowerbutton



VBoxManage startvm Winxp --type VRDP
rdesktop-vrdp -a 16 -N 10.108.162.164:3389


VBoxManage modifyvm Winxp --memory 1024 --nic1 bridged --bridgeadapter1 br-a-1


原文地址:https://www.cnblogs.com/ztguang/p/12646350.html