Hi Alisson, The --nic option was only added to nova client in Essex, thus it will not be available in Diablo code.
However, if you spin up a VM with no --nic options, the VM will actually automatically get a NIC on each "global" network (i.e. no project is set) and each project network (--project set when creating the network). You need to create these networks using nova-network. This is all document here: http://docs.openstack.org/incubation/openstack-network/admin/content/QuantumManager-d1e450.html Dan On Tue, Jan 24, 2012 at 10:59 AM, Alisson Soares Limeira Pontes < apon...@cpqd.com.br> wrote: > Hello everybody. > > > I am searching for some days but I can't figure out how to attach a vm to > a network? > > I am using Quantum 2011.3 with OVS to create the network. And Diablo. > > I am looking to something like: > > $ nova boot --flavor 1 --image 2 *--nic net-id=xxxx* --key_name key > instance10 > > But in Diablo *--nic* does not work > > > I apreciate any help. > Thank you. > > > > ps. I created the network and when I boot a vm nova-network.log returns > > 2012-01-24 18:27:34,941 DEBUG nova.network.quantum.quantum_connection [-] > Quantum Client Request: > POST /v1.0/tenants/default/networks/None/ports.json > from (pid=872) do_request /var/lib/nova/nova/network/quantum/client.py:176 > 2012-01-24 18:27:34,941 DEBUG nova.network.quantum.quantum_connection [-] > {"port": {"state": "ACTIVE"}} from (pid=872) do_request > /var/lib/nova/nova/network/quantum/client.py:178 > 2012-01-24 18:27:36,540 DEBUG nova.network.quantum.quantum_connection [-] > Quantum Client Reply (code = 420) : > {"networkNotFound": {"message": "Unable to find a network with the > specified identifier.", "code": 420, "detail": "Network None could not be > found"}} from (pid=872) do_request > /var/lib/nova/nova/network/quantum/client.py:187 > 2012-01-24 18:27:36,540 ERROR nova.rpc [-] Exception during message > handling > (nova.rpc): TRACE: Traceback (most recent call last): > (nova.rpc): TRACE: File "/var/lib/nova/nova/rpc/impl_kombu.py", line > 620, in _process_data > (nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args) > (nova.rpc): TRACE: File "/var/lib/nova/nova/network/quantum/manager.py", > line 175, in allocate_for_instance > (nova.rpc): TRACE: vif_rec['uuid']) > (nova.rpc): TRACE: File > "/var/lib/nova/nova/network/quantum/quantum_connection.py", line 86, in > create_and_attach_port > (nova.rpc): TRACE: resdict = self.client.create_port(net_id, > port_data, tenant=tenant_id) > (nova.rpc): TRACE: File "/var/lib/nova/nova/network/quantum/client.py", > line 81, in with_params > (nova.rpc): TRACE: ret = self.func(instance, *args) > (nova.rpc): TRACE: File "/var/lib/nova/nova/network/quantum/client.py", > line 277, in create_port > (nova.rpc): TRACE: return self.do_request("POST", self.ports_path % > (network), body=body) > (nova.rpc): TRACE: File "/var/lib/nova/nova/network/quantum/client.py", > line 202, in do_request > (nova.rpc): TRACE: % locals())) > (nova.rpc): TRACE: QuantumServerException: Server 420 error: > {"networkNotFound": {"message": "Unable to find a network with the > specified identifier.", "code": 420, "detail": "Network None could not be > found"}} > (nova.rpc): TRACE > > > -- > Alisson Pontes > __________________________________________________________ > Network Technology Evolution Researcher > CPqD - Center for Research and Development in Telecommunications > Tel.: +55 19 3705-4996 > apon...@cpqd.com.br <apo...@cpqd.com.br> > www.cpqd.com.br > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dan Wendlandt Nicira Networks: www.nicira.com twitter: danwendlandt ~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp