Hello,
Am Mittwoch 30 März 2011 12:10:18 schrieb 徐滕:
I'm new to libvirt, and have some questions about How to get the
IP address
of a Domain?
A domain does not have an IP address. A domain is equivalent to a PC in
hardware, which might have none, 1 2 or more network cards, each one with
it's own MAC address. This is the only propertpy of the hardware and can be
configured via the domain XML description.
What IP address your hosts uses is in complete control of your guest operating
system: It might configure no IP addresses at all, use a mix of IPv4 and ipv4
addresses, use static assignment, or use external services like DHCP, but is
completely independent from the hardware.
So from libvirts point of view, your domain does not have an IP address.
Sincerely
Philipp Hahn
--
Philipp Hahn Open Source Software Engineer hahn(a)univention.de
Univention GmbH Linux for Your Business fon: +49 421 22 232- 0
Mary-Somerville-Str.1 D-28359 Bremen fax: +49 421 22 232-99
http://www.univention.de/