Re: Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-23 Thread Chiradeep Vittal
Why do you need this information on the MS? Can you detail the steps of the algorithm you are trying to design? E.g., AddVMtoNetwork: Step 1: Step 2: Step 3: Aha. Here's where I need this info From: Pradeep Cloudstack pradeepcloudst...@yahoo.commailto:pradeepcloudst...@yahoo.com Reply-To:

Re: Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-23 Thread Pradeep Cloudstack
I have the NetworkGuru plugin(for orchestarting Juniper Switches) in the Management Server. (1)Create and Add first VM to Network. The Network is assigned a VLAN ID. (2)The implement() method of NetworkGuru plugin is invoked Here, I need to figure out the the vNIC to physical NIC mapping for this

Re: Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-22 Thread Pradeep Cloudstack
That is fine. But how do we convey this information to the Mgmt Server ? Without making any enhancements to MgmtSvr/Agent , is it possible to achieve this? -Pradeep On Saturday, December 21, 2013 4:19 AM, Chiradeep Vittal chiradeep.vit...@citrix.com wrote: On the KVM host you could parse

Re: Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-20 Thread Chiradeep Vittal
On the KVM host you could parse the output of 'brctl show', but that is awkward to parse. Or you might be able to iterate through /sys/devices/virtual/net/* and work backwards from that. On 12/19/13 10:16 PM, Pradeep Cloudstack pradeepcloudst...@yahoo.com wrote: Hi Chiradeep, the LLDP output on

Re: Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-19 Thread Chiradeep Vittal
What does the LLDP output look like? On 12/18/13 11:03 PM, Pradeep Cloudstack pradeepcloudst...@yahoo.com wrote: Hi , on a KVM host, I have a bridge interface - cloudbr1 to which eth1 has been added. This is for guest Network. When we create a VM on the KVM host, the NetworkGuru plugin gets to

Re: Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-19 Thread Pradeep Cloudstack
Hi Chiradeep, the LLDP output on the switch looks something like * Local Interface    Parent Interface    Chassis Id  Port info  System Name ge-0/0/21.0    -   00:30:48:c9:54:26   eth1  

Create VM - find out the NIC on KVM host connected to a Network switch

2013-12-18 Thread Pradeep Cloudstack
Hi , on a KVM host, I have a bridge interface - cloudbr1 to which eth1 has been added. This is for guest Network. When we create a VM on the KVM host, the NetworkGuru plugin gets to know about cloudbr1 (via the KVM traffic label). But is there any means to figure out the ports (like eth1)