[ovirt-users] Nova- oVirt Driver : Adding NIC to VM

Moti Asayag masayag at redhat.com
Tue Jun 17 09:03:43 UTC 2014



----- Original Message -----
> From: "Udaya Kiran P" <ukiran770 at yahoo.in>
> To: "Moti Asayag" <masayag at redhat.com>
> Cc: "users" <users at ovirt.org>
> Sent: Tuesday, June 17, 2014 8:46:19 AM
> Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
> 
> Hi Moti,
> 
> Sorry for the delayed response.
> 
> The command neutron agent-list on the neutron server gives the alive status
> as xxx, for the neutron-ovs-agent that is installed on the oVirt Host.
>  However, I am able to import the network from OpenStack into oVirt.
> 
> The port for the mac_address assigned is already created in the neutron
> server. Therefore, when I try to add it again, it gives error, port already
> exists.
> 
> How do I attach this port to the VM in oVirt.

In the ovirt-neutron integration the ports are allocated for the vm by ovirt.
The ovirt-engine creates the port on the neutron server and bind it to the
vm nic:
1. Click on the specific vm
2. Select the 'Vm Interfaces' sub tab
3. Add a vm interface, and select the profile/network of Net1 (the imported neutron
network).

At this point, you should see on your neutron server the created port (by 'neutron port-list').
The mac address for that port will be the one selected by the engine.
You can provide your own custom mac address (as long it is unique).

Once the vm is started or if the nic was added while the vm is running (hotplug),
the vdsm-hook-openstacknet will wire the port to the integration bridge and
the neutron-ovs-agent will become aware of it.

Could you elaborate about your use-cases and what would you like to achieve
with ovirt-neutron ? 

You can also ping me (masayag) on #ovirt (oftc.net)

Regards,
Moti

> 
> How do I interact with the neutron-ovs-agent to get the port and assign to
> oVirt VM.
> 
> Please suggest your inputs.
> 
> Thank You.
> 
> Regards,
> Udaya Kiran
> 
> 
> On Wednesday, 28 May 2014 5:54 PM, Moti Asayag <masayag at redhat.com> wrote:
>  
> 
> 
> 
> 
> ----- Original Message -----
> > From: "Udaya Kiran P" <ukiran770 at yahoo.in>
> > To: "users" <users at ovirt.org>
> > Sent: Wednesday, May 28, 2014 2:46:00 PM
> > Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
> > 
> > Hi All,
> > 
> > I am working on Nova - oVirt driver. I was able to test the VM life cycle
> > successfully - spawn, suspend, resume, shuttof, start and terminate.
> > 
> > I am now exploring the Neutron integration in oVirt. I have imported the
> > Network (Net1) form Openstack to oVirt.
> > 
> > I get the below error when I try to add a NIC (for imported Net1) to the VM
> > (created by Nova-oVirt driver), having the same MAC address which is
> > assigned in Openstack (Port Details page).
> > 
> > "Error while executing action Add NIC to VM: Failed to communicate with the
> > external provider."
> > 
> > However, I am able to add a NIC with different MAC address.
> > 
> > What changes needs to be done to add a NIC with MAC address as assigned by
> > Neutron? Please suggest.
> > 
> 
> Could you attach the neutron server log (/etc/neutron/server.log) from the
> external network provider ?
> 
> 
> > I am using oVirt 3.4.0-1.fc19.
> > 
> > Thank you.
> > 
> > Regards,
> > Udaya Kiran
> > 
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >



More information about the Users mailing list