|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] How to know which interface DomU sees the Vif device
On 11/18/2010 03:04 PM, Fajar A. Nugraha wrote:
> On Fri, Nov 19, 2010 at 12:49 AM, Diego Dias <diego.dias@xxxxxxxxxxx> wrote:
>
>> Is there a way to dinamically know on which network interface domU sees the
>> Vif Dom0 "gives" to them.
>>
>> Ex:
>> on Dom0: Vifname: vif111.0
>> on DomU: vif111.0 on network interface : eth0
>>
> On the default setup, it's easy
>
>
>> on Dom0: Vifname: vif111.0
>> on DomU: vif111.0 on network interface : eth0
>>
> vif111.0 means it's the first interface of a domU with id 111. Run "xm
> list" and see which domU has that ID. In the domU side,
> vif111.0 will be eth0, vif111.1 will be eth1, and so on.
>
>
> Another method to look (which is especially useful if you've changed
> the interface name) is something like this:
> # xm list
> Name ID Mem VCPUs State
> Time(s)
> Domain-0 0 2046 2 r-----
> 1700592.7
> ubuntu-test 231 128 1 -b---- 26724.9
>
> # xm network-list ubuntu-test
> Idx BE MAC Addr. handle state evt-ch tx-/rx-ring-ref BE-path
> 0 0 00:16:3E:63:2E:90 0 4 11 1297 /1296
> /local/domain/0/backend/vif/231/0
>
> # xenstore-ls /local/domain/0/backend/vif/231/0
> (selected output only)
> bridge = "br6"
> domain = "ubuntu-test"
> handle = "0"
> frontend = "/local/domain/231/device/vif/0"
> vifname = "u-test-eth0"
>
>
Good, tip, I didnt know how to match the vif from network-list.
Thanks.
--
Jorge Armando Medina
Computación Gráfica de México
Web: http://www.e-compugraf.com
Tel: 55 51 40 72, Ext: 124
Email: jmedina@xxxxxxxxxxxxxxx
GPG Key: 1024D/28E40632 2007-07-26
GPG Fingerprint: 59E2 0C7C F128 B550 B3A6 D3AF C574 8422 28E4 0632
signature.asc
Description: OpenPGP digital signature
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|