[root@controller ~]# nova list
+--------------------------------------+--------+--------+-----------------------+
| ID                                   | Name   | Status | Networks              |
+--------------------------------------+--------+--------+-----------------------+
| 17b50953-5833-4a08-b509-5bcccf7ce0ae | cirros | ACTIVE | private=192.168.100.2 |
+--------------------------------------+--------+--------+-----------------------+

解决方案 »

  1.   

    nova console-log 17b50953-5833-4a08-b509-5bcccf7ce0aeinfo: initramfs: up at 8.52
    NOCHANGE: partition 1 is size 64260. it cannot be grown
    info: initramfs loading root from /dev/vda1
    info: /etc/init.d/rc.sysinit: up at 8.72
    Starting logging: OK
    Initializing random number generator... done.
    Starting acpid: OK
    cirros-ds 'local' up at 9.03
    no results found for mode=local. up 9.08. searched: nocloud configdrive ec2
    Starting network...
    udhcpc (v1.20.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    WARN: /etc/rc3.d/S40-network failed
    cirros-ds 'net' up at 190.00
    checking http://169.254.169.254/2009-04-04/instance-id
    failed 1/20: up 190.06. request failed
    failed 2/20: up 192.25. request failed
    failed 3/20: up 194.29. request failed
    failed 4/20: up 196.34. request failed
    failed 5/20: up 198.37. request failed
    failed 6/20: up 200.41. request failed
    failed 7/20: up 202.44. request failed
    failed 8/20: up 204.46. request failed
    failed 9/20: up 206.48. request failed
    failed 10/20: up 208.52. request failed
    failed 11/20: up 210.55. request failed
    failed 12/20: up 212.60. request failed
    failed 13/20: up 214.64. request failed
    failed 14/20: up 216.67. request failed
    failed 15/20: up 218.71. request failed
    failed 16/20: up 220.75. request failed
    failed 17/20: up 222.79. request failed
    failed 18/20: up 224.83. request failed
    failed 19/20: up 226.87. request failed
    failed 20/20: up 228.91. request failed
    failed to read iid from metadata. tried 20
    no results found for mode=net. up 230.97. searched: nocloud configdrive ec2
    failed to get instance-id of datasource
    Starting dropbear sshd: generating rsa key... generating dsa key... OK
    === network info ===
    if-info: lo,up,127.0.0.1,8,::1
    if-info: eth0,up,,8,fe80::f816:3eff:fe47:4dbd
    === datasource: None None ===
    === cirros: current=0.3.1 uptime=231.26 ===
    route: fscanf
    === pinging gateway failed, debugging connection ===
    ############ debug start ##############
    ### /etc/init.d/sshd start
    Starting dropbear sshd: OK
    route: fscanf
    ### ifconfig -a
    eth0      Link encap:Ethernet  HWaddr FA:16:3E:47:4D:BD  
              inet6 addr: fe80::f816:3eff:fe47:4dbd/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:112 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:10193 (9.9 KiB)  TX bytes:1112 (1.0 KiB)lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:12 errors:0 dropped:0 overruns:0 frame:0
              TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:1020 (1020.0 B)  TX bytes:1020 (1020.0 B)### route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    route: fscanf
    ### cat /etc/resolv.conf
    cat: can't open '/etc/resolv.conf': No such file or directory
    ### gateway not found
    /sbin/cirros-status: line 1: can't open /etc/resolv.conf: no such file
    ### pinging nameservers
    ### uname -a
    Linux cirros 3.2.0-37-virtual #58-Ubuntu SMP Thu Jan 24 15:48:03 UTC 2013 x86_64 GNU/Linux
    ### lsmod
    Module                  Size  Used by    Not tainted
    nls_iso8859_1          12713  0 
    nls_cp437              16991  0 
    vfat                   17585  0 
    fat                    61512  1 vfat
    isofs                  40257  0 
    ip_tables              27473  0 
    x_tables               29891  1 ip_tables
    pcnet32                42119  0 
    8139cp                 27409  0 
    ne2k_pci               13691  0 
    8390                   18856  1 ne2k_pci
    e1000                 108589  0 
    acpiphp                24231  0 
    ### dmesg | tail
    [    8.829200] acpiphp: Slot [29] registered
    [    8.829209] acpiphp: Slot [30] registered
    [    8.829218] acpiphp: Slot [31] registered
    [    8.869595] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    [    8.869598] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [    8.885276] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
    [    8.899206] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
    [    8.914753] pcnet32: pcnet32.c:v1.35 21.Apr.2008 [email protected]
    [    8.940446] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   19.464991] eth0: no IPv6 routers present
    ### tail -n 25 /var/log/messages
    Jan  9 13:50:25 cirros kern.info kernel: [    0.000000] KERNEL supported cpus:
    Jan  9 13:50:25 cirros kern.info kernel: [    0.000000]   Intel GenuineIntel
    Jan  9 13:50:25 cirros kern.info kernel: [    0.000000]   AMD AuthenticAMD
    Jan  9 13:50:25 cirros kern.info kernel: [    0.000000]   Centaur CentaurHauls
    Jan  9 13:50:25 cirros kern.info kernel: [    0.000000] Disabled fast string operations
    Jan  9 13:50:25 cirros kern.info kernel: [    0.000000] BIOS-provided physical RAM map:
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828874] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828937] acpiphp: Slot [1] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828949] acpiphp: Slot [2] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828958] acpiphp: Slot [3] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828968] acpiphp: Slot [4] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828977] acpiphp: Slot [5] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828986] acpiphp: Slot [6] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.828996] acpiphp: Slot [7] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.829005] acpiphp: Slot [8] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.829017] acpiphp: Slot [9] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.829026] acpiphp: Slot [10] registered
    Jan  9 13:50:25 cirros kern.info kernel: [    8.869595] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    Jan  9 13:50:25 cirros kern.info kernel: [    8.869598] e1000: Copyright (c) 1999-2006 Intel Corporation.
    Jan  9 13:50:25 cirros kern.info kernel: [    8.885276] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
    Jan  9 13:50:25 cirros kern.info kernel: [    8.899206] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
    Jan  9 13:50:25 cirros kern.info kernel: [    8.914753] pcnet32: pcnet32.c:v1.35 21.Apr.2008 [email protected]
    Jan  9 13:50:25 cirros kern.info kernel: [    8.940446] ip_tables: (C) 2000-2006 Netfilter Core Team
    Jan  9 13:50:35 cirros kern.debug kernel: [   19.464991] eth0: no IPv6 routers present
    Jan  9 13:54:07 cirros authpriv.info dropbear[288]: Running in background
    ############ debug end   ##############
      ____               ____  ____
     / __/ __ ____ ____ / __ \/ __/
    / /__ / // __// __// /_/ /\ \ 
    \___//_//_/  /_/   \____/___/ 
       http://cirros-cloud.net
    login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.
    cirros login: 
      

  2.   


    用vnc 连看到 虚拟机里面
      

  3.   

    实例的状态是active  我发现主要的问题是
    root@controller ~]# ps -ef |grep dnsmasq
    nobody    1852     1  0 12:20 ?        00:00:00 /usr/sbin/dnsmasq --strict-order --local=// --domain-needed --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --bind-interfaces --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override --dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile --addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
    我这里面没有 我设置br100  100的网段,不知道为什么没有