3

我正在尝试使用VBoxManage guestproperty enumerate <vm_name>获取 vm ip 地址

但得到这个结果:

Name: /VirtualBox/HostInfo/GUI/LanguageID, value: en_US, timestamp: 1592898609729744000, flags: RDONLYGUEST
Name: /VirtualBox/HostInfo/VBoxVerExt, value: 6.1.6_Ubuntu, timestamp: 1592898565935338001, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/VMInfo/ResumeCounter, value: 0, timestamp: 1592898564265851000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/HostGuest/SysprepExec, value: , timestamp: 1592898564265851000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/HostGuest/SysprepArgs, value: , timestamp: 1592898564265851000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/VMInfo/ResetCounter, value: 0, timestamp: 1592898564265851000, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/HostInfo/VBoxRev, value: 137129, timestamp: 1592898565935338002, flags: TRANSIENT, RDONLYGUEST
Name: /VirtualBox/HostInfo/VBoxVer, value: 6.1.6, timestamp: 1592898565935338000, flags: TRANSIENT, RDONLYGUEST

但是 vm 有 IP 地址,我可以从主机 ping 它

user@user:~$ ping 192.168.88.120
PING 192.168.88.120 (192.168.88.120) 56(84) bytes of data.
64 bytes from 192.168.88.120: icmp_seq=1 ttl=64 time=1.04 ms
64 bytes from 192.168.88.120: icmp_seq=2 ttl=64 time=0.642 ms
4

0 回答 0