Ask Your Question
0

vm can't generate nic with xenserver 6.2

asked 2014-08-28 05:13:32 -0600

Qiang gravatar image

updated 2014-08-29 04:17:44 -0600

dbaxps gravatar image

Controller: Ubuntu 14.04 Compute: Ubuntu 14.0.4 is working in PV mode of Xenserver 6.2, and is connecting with Xenserver 6.2 That means hypervisor is Xenserver 6.2

Problem: we can generate the vm in Xenserver 6.2 with nova boot command in Openstack, however, the generated vm can't generate any NIC, that menas we can only see lo with ifconfig command, we can't see any eth0 with ifconfig command in the cirros VM.

If we can add the interface manually with Xencenter, and the nic is working.

Why ? Anyone can help us ? Thanks.

root@compute-xen:~# nova image-list
+--------------------------------------+-----------------------------------+--------+--------+
| ID                                   | Name                              | Status | Server |
+--------------------------------------+-----------------------------------+--------+--------+
| a8e06660-b69f-43d9-9718-19c0ad1bd7cd | Centos-5.8-x86_64-iso             | ACTIVE |        |
| 520e49e6-d08d-4525-b071-0b608f2cf122 | Debian-2.6.32-vmware              | ACTIVE |        |
| 3680c67d-e9b2-4ca8-96b9-1c37aa078128 | cirros-0.3.0-x86_64-disk.vhd      | ACTIVE |        |
| 6080011e-22d2-4d22-aceb-ea1b8a72d6d5 | cirros-0.3.2-x86_64               | ACTIVE |        |
| c508ca5f-ffd3-4c57-8e22-aed67376581a | cirros-0.3.2-x86_64-disk.vhd      | ACTIVE |        |
| 2b45787f-8d8f-40fb-8a2a-7377862697d0 | cirros-0.3.2-x86_64-vmware-sparse | ACTIVE |        |
| e926f2ec-0fea-4ce7-a692-053438ff51c7 | cirros0.3.1-i386-vmware-sparse    | ACTIVE |        |
+--------------------------------------+-----------------------------------+--------+--------+
root@compute-xen:~# 
root@compute-xen:~# nova net-list 
+--------------------------------------+----------+--------------+
| ID                                   | Label    | CIDR         |
+--------------------------------------+----------+--------------+
| 7a44a852-1150-4fb7-a90e-05e9876e871b | demo-net | 10.11.4.0/24 |
+--------------------------------------+----------+--------------+
nova boot --flavor m1.tiny --image cirros-0.3.0-x86_64-disk.vhd \
--nic net-id=7a44a852-1150-4fb7-a90e-05e9876e871b \
--key-name demo-key --availability-zone az-xenserver demo-xs2

root@compute-xen:~# nova list
| 623f421b-a808-4201-9d64-f7d5dd10b13b | demo-xs2 | ACTIVE | -          | Running     |         

root@compute-xen:~# nova hypervisor-list
\+----+---------------------+
| ID | Hypervisor hostname |
+----+---------------------+
| 2  | domain-c9(cluster1) |
| 3  | xenserver-fskqadde  |
+----+---------------------+
root@compute-xen:~# nova hypervisor-show xenserver-fskqadde 
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                       | Value                                                                                                                                                                              |
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| cpu_info_cpu_count             | 8                                                                                                                                                                                  |
| cpu_info_family                | 6                                                                                                                                                                                  |
| cpu_info_features              | 040ce33d-bfebfbff-00000001-20100800                                                                                                                                                |
| cpu_info_features_after_reboot | 040ce33d-bfebfbff-00000001-20100800                                                                                                                                                |
| cpu_info_flags                 | fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc aperfmperf pni vmx ssse3 sse4_1 hypervisor tpr_shadow vnmi flexpriority |
| cpu_info_maskable              | base                                                                                                                                                                               |
| cpu_info_model                 | 23                                                                                                                                                                                 |
| cpu_info_modelname             | Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz                                                                                                                                    |
| cpu_info_physical_features     | 040ce33d-bfebfbff-00000001-20100800                                                                                                                                                |
| cpu_info_socket_count          | 2                                                                                                                                                                                  |
| cpu_info_speed                 | 1995.040                                                                                                                                                                           |
| cpu_info_stepping              | 10                                                                                                                                                                                 |
| cpu_info_vendor                | GenuineIntel                                                                                                                                                                       |
| current_workload               | 0                                                                                                                                                                                  |
| disk_available_least           | -                                                                                                                                                                                  |
| free_disk_gb                   | 62                                                                                                                                                                                 |
| free_ram_mb                    | 6111                                                                                                                                                                               |
| host_ip                        | 10.11.21.37                                                                                                                                                                        |
| hypervisor_hostname            | xenserver-fskqadde                                                                                                                                                                 |
| hypervisor_type                | xen                                                                                                                                                                                |
| hypervisor_version             | 6002000                                                                                                                                                                            |
| id                             | 3                                                                                                                                                                                  |
| local_gb                       | 65                                                                                                                                                                                 |
| local_gb_used                  | 3                                                                                                                                                                                  |
| memory_mb                      | 8186                                                                                                                                                                               |
| memory_mb_used                 | 2075                                                                                                                                                                               |
| running_vms                    | 3                                                                                                                                                                                  |
| service_host                   | compute-xen                                                                                                                                                                        |
| service_id                     | 9                                                                                                                                                                                  |
| vcpus                          | 8                                                                                                                                                                                  |
| vcpus_used                     | 3                                                                                                                                                                                  |
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
root@compute-xen:~#
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-29 03:50:34 -0600

Qiang gravatar image

Now I am facing new problem:

Exception: Found no network for bridge xpai11 # This represents the bridge associated with the tenant network created earlie

2014-08-29 16:35:16.011 2236 TRACE nova.utils [instance: f668fc84-3ed8-4f72-9c4b-6ec2b84593b4] self._session, CONF.xenserver.ovs_integration_bridge) 2014-08-29 16:35:16.011 2236 TRACE nova.utils [instance: f668fc84-3ed8-4f72-9c4b-6ec2b84593b4] File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/network_utils.py", line 48, in find_network_with_bridge 2014-08-29 16:35:16.011 2236 TRACE nova.utils [instance: f668fc84-3ed8-4f72-9c4b-6ec2b84593b4] raise Exception(_('Found no network for bridge %s') % bridge) 2014-08-29 16:35:16.011 2236 TRACE nova.utils [instance: f668fc84-3ed8-4f72-9c4b-6ec2b84593b4] Exception: Found no network for bridge xpai11 # This represents the bridge associated with the tenant network created earlier 2014-08-29 16:35:16.011 2236 TRACE nova.utils [instance: f668fc84-3ed8-4f72-9c4b-6ec2b84593b4]

edit flag offensive delete link more

Comments

I have made it fixed. please give me on your Domain 0: xl list xe network-list ovs-vsctl show

on your compute: brctl show ifconfig -a

thanks.

Qiang gravatar imageQiang ( 2014-09-05 01:41:13 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-28 05:13:32 -0600

Seen: 258 times

Last updated: Aug 29 '14