[virt-tools-list] where are vmnet0 and other virtual interfaces defined by virt-manager
Richard W.M. Jones
rjones at redhat.com
Mon Jan 10 08:41:09 UTC 2011
On Mon, Jan 10, 2011 at 01:40:31PM +0530, Tapas Mishra wrote:
> How ever I am curious to look at where are the vmnet0 vmnet 1 defined
> by the virt-manager(which I see in brctl show)
> so which files should I look in?
[The interfaces are called vnet0, etc]
You're getting confused about what interface is named on the host side
(vnet0 etc) and what the guest sees. The guest sees eth0 for a Linux
guest, it would be something completely different for a Windows guest.
To list the host devices do:
/sbin/ifconfig vnet0
_on the host_.
As explained here:
http://libvirt.org/formatdomain.html#elementsNICSTargetOverride
the <target dev='...'/> element is optional, and only needed if you
want to specify a particular host network device. In almost all cases
you would leave it out and libvirt/the hypervisor will pick one for
you. And if you do 'virsh dumpxml' then libvirt will show you which
temporary host device was assigned to the interface.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
More information about the virt-tools-list
mailing list