分页: 1 / 1

自动获取Vbox 客户机的ip

发表于 : 2011-05-05 9:07
bigsun
命令:

代码: 全选

VBoxManage guestproperty get "winxp-lite" "/VirtualBox/GuestInfo/Net/0/V4/IP"
其中,将winxp-lite换成你的运行中的客户机名称.
结果:
Value: 192.168.0.125
限制:客户机要安装增强功能.

用法:
Connect via SSH to VirtualBox guest VM without knowing IP address

代码: 全选

ssh vm-user@`VBoxManage guestproperty get "vm-name" "/VirtualBox/GuestInfo/Net/0/V4/IP" | awk '{ print $2 }'`
Booting the VM headless via VBoxHeadless requires knowledge of the VM's network in order to connect. Using VBoxManage in this way and you can SSH to the VM without first looking up the current IP, which changes depending on how you have your VM configured.

Re: 自动获取Vbox 客户机的ip

发表于 : 2011-05-05 16:12
be00
winxp是终端服务客户端来管理吗?

代码: 全选

zhanggang@T410i:~$ VBoxManage guestproperty get "Testxp" "/VirtualBox/GuestInfo/Net/0/V4/IP"
No value set!
我虚拟机没启动

直接在console界面,老有键盘失效的问题