I have a situation where in I know IP Address of the VM but hostname info is not available. Currently VM is down. So, is there any way to find out host name ?
virt-cat
is useful but you have to tell which OS ?
For debian systems you can try this command in the host
# virt-cat Debian6x64 /etc/hostname
For windows you can try this
# virt-win-reg Win7x32 \
'HKEY_LOCAL_MACHINE\System\ControlSet001\Services\Tcpip\Parameters' \
Hostname
Also you can use virt-inspector
. Have a look at here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.