http://www.cnblogs.com/coltiam/archive/2010/03/26/1696939.html
http://blog.csdn.net/venoy4806/article/details/5412467
VBoxManage /?
cd C:\Program Files\Sun\VirtualBox
--设置端口映射:vbox_rhel54 虚拟机名称 pcnet:网卡名? ssh:服务名
VBoxManage setextradata vbox_rhel54 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata vbox_rhel54 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata vbox_rhel54 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
--显示端口映射
VBoxManage getextradata vbox_rhel54 enumerate
--删除端口映射
VBoxManage setextradata vbox_rhel54 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol"
VBoxManage setextradata vbox_rhel54 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort"
VBoxManage setextradata vbox_rhel54 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11990065/viewspace-755375/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11990065/viewspace-755375/