2013年7月20日星期六

ubuntu on openstack examples ping is not how

I configured as stand-alone single card, using kvm
instances can be created in Dashboard in successfully creating the state of active running

/ etc / network / interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.105
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 166.111.8.28 166.111.8.29

/ etc / nova / nova.conf

- dhcpbridge_flagfile = / etc / nova / nova.conf
- dhcpbridge = / usr / bin / nova-dhcpbridge
- logdir = / var / log / nova
- state_path = / var / lib / nova
- lock_path = / var / lock / nova
- allow_admin_api = true
- use_deprecated_auth = false
- auth_strategy = keystone
- scheduler_driver = nova.scheduler.simple.SimpleScheduler
- s3_host = 192.168.1.105
- ec2_host = 192.168.1.105
- rabbit_host = 192.168.1.105
- cc_host = 192.168.1.105
- nova_url = http://192.168.1.105:8774/v1.1/
- routing_source_ip = 192.168.1.105
- glance_api_servers = 192.168.1.105:9292
- image_service = nova.image.glance.GlanceImageService
- iscsi_ip_prefix = 10.0.0
- sql_connection = mysql :/ / novadbadmin: cloud1234@192.168.1.105 / nova
- ec2_url = http://192.168.1.105:8773/services/Cloud
- keystone_ec2_url = http://192.168.1.105:5000/v2.0/ec2tokens
- api_paste_config = / etc / nova / api-paste.ini
- libvirt_type = kvm
- libvirt_use_virtio_for_bridges = true
- start_guests_on_host_boot = true
- resume_guests_state_on_host_boot = true

# novnc
- novnc_enabled = true
- novncproxy_base_url = http://192.168.1.105:6080/vnc_auto.html
- vncserver_proxyclient_address = 127.0.0.1
- vncserver_listen = 127.0.0.1

# network specific settings
- network_manager = nova.network.manager.FlatDHCPManager
- public_interface = eth0
- flat_interface = eth0
- flat_network_bridge = br100
- fixed_range = 10.0.0.1/27
- floating_range = 192.168.1.210/27
- network_size = 32
- flat_network_dhcp_start = 10.0.0.2
- flat_injected = False
- force_dhcp_release
- iscsi_helper = tgtadm
- connection_type = libvirt
- root_helper = sudo nova-rootwrap
# - verbose
- verbose = False

ifconfig output

br100 Link encap: Ethernet HWaddr 50: e5: 49:23:4 c: e4
inet addr: 10.0.0.1 Bcast: 10.0.0.31 Mask: 255.255.255.224
inet6 addr: fe80 :: 646a: 40ff: fe19: 1086/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 36008 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 37394 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 29992407 (29.9 MB) TX bytes: 5999730 (5.9 MB)

eth0 Link encap: Ethernet HWaddr 50: e5: 49:23:4 c: e4
inet6 addr: fe80 :: 52e5: 49ff: fe23: 4ce4/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 36519 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 37915 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 30552937 (30.5 MB) TX bytes: 6063891 (6.0 MB)

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: 303426 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 303426 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 197002056 (197.0 MB) TX bytes: 197002056 (197.0 MB)

can ping bridge node 10.0.0.1, but the new instance (fixed ip is 10.0.0.2) but also how to ping nowhere

solve ah! ! ! Has transferred nearly a week, crazy
------ Solution ------------------------------- -------------------------
1, first make sure your instace and the host machine's firewall policy
2, attempts to bridge from instack ping your address.
3, look at your host routing information. Whether there is a route from the bridge to the instace

hey if you do not understand the last one, to a bursting point: first eth0 down fall, and then ping your instance
------ Solution -------- ------------------------------------------------
My situation is that, on the surface of the resulting instance assigned to the fixed_IP, the results I VNC a landing, view ifconfig find that it's IP and my server is actually the same network, so no matter how you route in place, are ping nowhere! Manually put the IP changed, no problem, do not know if you encounter is not my case, I have this issue cards for two weeks. . .
------ Solution ---------------------------------------- ----------------

cirros mirror straightforward to ping and ssh.
I made ubuntu server and desktop, as well as the windows of the mirror.
------ For reference only -------------------------------------- ------------------
If you need any information about the master ask for help, I'll make up
------ For reference only ----- -------------------------------------------------- -
I also encountered the same problem with you, you can log on WEB VNC instance you do?
------ For reference only -------------------------------------- ------------------


1, host firewall I follow the online documentation
nova secgroup-add-rule default tcp 1 65535 0.0.0.0 / 0
nova secgroup-add-rule default udp 1 65535 0.0.0.0 / 0
nova secgroup-add-rule default icmp -1 -1 0.0.0.0 / 0
is not on it?
2, in the host can ping to the bridge br100, 10.0.0.1
3, host routing indeed I think they also feel more strange, is not in the laboratory can not put route Tieshanglai, tomorrow I'll follow you to try that bursting point, then my route Tieshanglai Reference
------ For reference only ------------------------------------- -------------------


In the Dashboard noVNC not log on, specifically what I forgot, anyway, what is probably unable to connect. . . I feel like I have not even ping ping not VNC certainly not ah? Novice neighborhoods
------ For reference only ------------------------------------ --------------------


SORRY. . . . You did not see this reply. . . . Ah. . . My VNC is really not get on board, it simply can not go up the virtual machine ah
------ For reference only --------------------- -----------------------------------
even ping fails also can visit the VNC, because I was instances with VNC landing changed only after the IP PING pass instances. You do not know VNC is not prompt you failed to connect server. If this is the case most likely because the VNC component did not install correctly, you can try to write a key jedipunkz deploy openstack folsom scripts, install a single-node nova-network version of the script I use it can be successful in landing VNC, although a start ping is not. Also, if you want to log in with cirros produced VNC instance, because ubuntu's first landing must use the key, you change the root password after support for username password.
------ For reference only -------------------------------------- ------------------

brother I love you! ! ! Does seem to be the problem, my noVNC loaded question, I use libvirt graphical management system registry instance can climb to go, do not know why and the host is assigned the same network segment, changed instance of ifconfig settings can ping, ssh on! ! Too great! ! Of course, my configuration settings certainly a problem, and then checked, but at least you can use instance count, count on the instructor Yougejiaodai
------ For reference only -------- ------------------------------------------------

right, then you find out why your instance is not assigned you to set a fixed ip and assigned the same network with the host ip is the reason?
------ For reference only -------------------------------------- ------------------
not resolved this issue, most recently in training, no time to get that, but I feel it seems, and the version of openstack, I see that configuration files before they are able to correctly assign fixed_IP, but recently configured according to the document will appear in this issue, so I was so skeptical. If you get out of it is here to share ah.
------ For reference only -------------------------------------- ------------------


I have been trying to single NIC configuration, I suspect a lot of documentation simply not right, the network configuration that regard.
day I find such a document: http://openstack-folsom-install-guide.readthedocs.org/en/latest/
Nimbula written by a man, according to his re-configure my settings again on all the way, Ip can be allocated on a, VNC can also use the
------ For reference only - -------------------------------------------------- -----

I used jedipunkz script to deploy a single node nova-network version. The question now is cirros mirrored virtual machine can ping and ssh, but the official mirror ubuntu ping fails also ssh is not on. Puzzling that you have encountered?
------ For reference only -------------------------------------- ------------------


You can look at the relevant software libvirt has created virtual machine network is not working properly, compare recommend virt-manager, I was so resolved. . .
------ For reference only -------------------------------------- ------------------


I use virsh dumpxml view the next virtual machine information, IP address should be correct. Intends to use the other mirror resurgence instance look at the situation.
------ For reference only -------------------------------------- ------------------
weird. I also made several mirrors, examples ping and ssh no problem, download ubuntu official precise-server-cloudimg-amd64.img can not ping and ssh.
------ For reference only -------------------------------------- ------------------

I finished training, now get openstack, today recommended Nimbula with your configuration files written with a little, but with Later I felt his network configuration so strange, that 10.32.14.232 is set to br100 IP bar, but looks like all the other components will visit the IP, it eth0, anyway, and feel a lot worse before the document's appearance, but also Hope enlighten
------ For reference only ------------------------------------ --------------------

you cirros mirror is able to direct the ping and SSH do? It is not to turn over IP? That and my situation is not the same, I find it VNC up my SERVER IP and the IP of the same network segment, so put it after the IP manually changed fixed_IP able to access, so I guess it could also be that ubuntu problem, but ubuntu only support key landing, so I can not go and change it boarded IP. See you later said he made several mirrors successful, what the system is doing a mirror ah?
------ For reference only -------------------------------------- ------------------

Oh, you take on the physical machine's environment?
------ For reference only -------------------------------------- ------------------


SORRY reply late. . . .
most when I started experiencing this problem kvm find some documents related to network configuration, and today they find the look seems to be the big inspiration to me
http://www.cnblogs.com/york-hust/archive/2012/05/29/2523437.html
The inside says, "You may have noticed that this file may have about eth0 configuration, please delete it, that is, you can not make any configuration eth0, the interface after a reboot, you should IP is not configured, otherwise it will not work. "
I feel like Nimbula seem quite like this idea, specifically why I am also very puzzled
------ For reference only --------------- -----------------------------------------
Hello, I ask you 9M with that instance of cirros img thing to do, and why I use virt manager to landing, after a while he said shutoff guest not running a virtual machine, the virtual machine is running from the shutoff estimate only less than 1 minute Thank you Ha!

没有评论:

发表评论