Setting up Neutron-dhcp-agent & Dnsmasq on Two Node Neutron GRE+OVS F20 Cluster to launch VMs with M

本文介绍如何通过调整Neutron-dhcp-agent和Dnsmasq配置文件,将虚拟机的MTU值设置为1454,从而解决GRE隧道连接问题。

Setting up Neutron-dhcp-agent & Dnsmasq on Two Node Neutron GRE+OVS F20 Cluster to launch VMs with MTU 1454 automatically

  When you first time boot cloud instance (RDO Havana) via `nova boot ..` or via Dashboard associated with ssh keypair , the default MTU value for eth0 of instance has been built would be 1500. The last one  in case of GRE tunnelling makes useless attempt to connect to instance via ssh (  $ ssh -l fedora -i key2.pem Instance-IP ). What actually forces you to write customization script to log into instance  via VNC console with account like "fedora","ubuntu","cloud-user" and set MTU manually to 1454 inside instance.    However ,  it exists known approach to tune dhcp_agent.ini and dnsmasq.conf to assign  internal IP for instance with MTU 1454 at the first boot up updating neutron-dhcp-agent.ini & dnsmasq.conf files as follows [ 1 ] :-

[root@dfw02 neutron(keystone_admin)]$ cat dhcp_agent.ini | grep -v ^# | grep -v ^$
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
handle_internal_only_routers = TRUE
external_network_bridge = br-ex
ovs_use_veth = True
use_namespaces = True
dnsmasq_config_file = /etc/neutron/dnsmasq.conf

[root@dfw02 neutron(keystone_admin)]$ cat  dnsmasq.conf
log-facility = /var/log/neutron/dnsmasq.log
log-dhcp
dhcp-option=26,1454

Then restart dnsmasq and neutron-dhcp-agent service.

#  ps -ef | grep dnsmasq

nobody    1953     1  0 09:28 ?        00:00:00 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf

nobody    5192     1  0 09:35 ?        00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-343b0090-24 --except-interface=lo --pid-file=/var/lib/neutron/dhcp/426bb226-0ab9-440d-ba14-05634a17fb2b/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/426bb226-0ab9-440d-ba14-05634a17fb2b/host --dhcp-optsfile=/var/lib/neutron/dhcp/426bb226-0ab9-440d-ba14-05634a17fb2b/opts --leasefile-ro --dhcp-range=set:tag0,40.0.0.0,static,120s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal

nobody    5197     1  0 09:35 ?        00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-40dd712c-e4 --except-interface=lo --pid-file=/var/lib/neutron/dhcp/1eea88bb-4952-4aa4-9148-18b61c22d5b7/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/1eea88bb-4952-4aa4-9148-18b61c22d5b7/host --dhcp-optsfile=/var/lib/neutron/dhcp/1eea88bb-4952-4aa4-9148-18b61c22d5b7/opts --leasefile-ro --dhcp-range=set:tag0,10.0.0.0,static,120s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal

# killall dnsmasq

Restart services :-

# /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf

# [root@dfw02 neutron(keystone_admin)]$ systemctl restart neutron-dhcp-agent.service

[root@dfw02 neutron(keystone_admin)]$ systemctl status neutron-dhcp-agent.service

neutron-dhcp-agent.service - OpenStack Quantum DHCP Agent
   Loaded: loaded (/usr/lib/systemd/system/neutron-dhcp-agent.service; enabled)
   Active: active (running) since Sun 2014-03-16 13:03:47 MSK; 9s ago
 Main PID: 20767 (neutron-dhcp-ag)
   CGroup: /system.slice/neutron-dhcp-agent.service
           ├─20767 /usr/bin/python /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.con...
           ├─20814 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-343b0090-24 --...
           └─20816 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-40dd712c-e4 --...

Mar 16 13:03:48 dfw02.localdomain dnsmasq[20816]: started, version 2.68 cachesize 150
Mar 16 13:03:48 dfw02.localdomain dnsmasq[20816]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHC...auth
Mar 16 13:03:48 dfw02.localdomain dnsmasq[20816]: warning: no upstream servers configured
Mar 16 13:03:48 dfw02.localdomain dnsmasq-dhcp[20816]: DHCP, static leases only on 10.0.0.0, lease time 2m
Mar 16 13:03:48 dfw02.localdomain dnsmasq-dhcp[20816]: DHCP, sockets bound exclusively to interface ns-40dd712c-e4
Mar 16 13:03:48 dfw02.localdomain dnsmasq[20816]: cleared cache
Mar 16 13:03:48 dfw02.localdomain dnsmasq-dhcp[20816]: read /var/lib/neutron/dhcp/1eea88bb-4952-4aa4-9148-18b...ost
Mar 16 13:03:48 dfw02.localdomain dnsmasq-dhcp[20816]: read /var/lib/neutron/dhcp/1eea88bb-4952-4aa4-9148-18b...pts
Mar 16 13:03:58 dfw02.localdomain dnsmasq-dhcp[20814]: DHCPREQUEST(ns-343b0090-24) 40.0.0.6 fa:16:3e:d7:33:35
Mar 16 13:03:58 dfw02.localdomain dnsmasq-dhcp[20814]: DHCPNAK(ns-343b0090-24) 40.0.0.6 fa:16:3e:d7:33:35 lea...und
Mar 16 13:04:02 dfw02.localdomain dnsmasq-dhcp[20814]: DHCPDISCOVER(ns-343b0090-24) fa:16:3e:d7:33:35
Mar 16 13:04:02 dfw02.localdomain dnsmasq-dhcp[20814]: DHCPOFFER(ns-343b0090-24) 40.0.0.6 fa:16:3e:d7:33:35
Mar 16 13:04:02 dfw02.localdomain dnsmasq-dhcp[20814]: DHCPREQUEST(ns-343b0090-24) 40.0.0.6 fa:16:3e:d7:33:35
Mar 16 13:04:02 dfw02.localdomain dnsmasq-dhcp[20814]: DHCPACK(ns-343b0090-24) 40.0.0.6 fa:16:3e:d7:33:35 hos...0-6
Hint: Some lines were ellipsized, use -l to show in full.

Creating instance via dashboard manage as usually ( just  submit ssh key-pair when launching instance)

It will now result :-

$ ssh -l fedora -i key2.pem 192.168.1.106
The authenticity of host '192.168.1.106 (192.168.1.106)' can't be established.
RSA key fingerprint is 68:1a:79:33:c3:f8:2f:61:6a:a3:e1:40:9f:1c:76:33.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.106' (RSA) to the list of known hosts.

[fedora@vf20rs001 ~]$ ifconfig
eth0: flags=4163  mtu 1454
        inet 40.0.0.5  netmask 255.255.255.0  broadcast 40.0.0.255
        inet6 fe80::f816:3eff:feb9:83e9  prefixlen 64  scopeid 0x20
        ether fa:16:3e:b9:83:e9  txqueuelen 1000  (Ethernet)
        RX packets 252  bytes 30901 (30.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 230  bytes 28014 (27.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

and at the same time

# tail -f /var/log/neutron/dnsmasq.log will report

Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 next server: 40.0.0.3
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  1 option: 53 message-type  5
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option: 54 server-identifier  40.0.0.3
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option: 51 lease-time  2m
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option: 58 T1  56s
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option: 59 T2  1m41s
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option:  1 netmask  255.255.255.0
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option: 28 broadcast  40.0.0.255
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size: 14 option: 15 domain-name  openstacklocal
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size: 13 option: 12 hostname  host-40-0-0-7
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option:  3 router  40.0.0.1
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  4 option:  6 dns-server  83.221.202.254
Mar 16 14:35:42 dnsmasq-dhcp[26111]: 1830014980 sent size:  2 option: 26 mtu  1454



  

   

   



[boris@dfw02 Downloads]$ ssh -l ubuntu  -i key2.pem 192.168.1.109
The authenticity of host '192.168.1.109 (192.168.1.109)' can't be established.
ECDSA key fingerprint is 9f:c6:eb:23:ee:87:6b:47:b1:5f:f0:e6:e8:1c:80:45.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.109' (ECDSA) to the list of known hosts.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

ubuntu@ubunturs001:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr fa:16:3e:97:b1:6a  
          inet addr:40.0.0.2  Bcast:40.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe97:b16a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1454  Metric:1
          RX packets:337 errors:0 dropped:0 overruns:0 frame:0
          TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:48072 (48.0 KB)  TX bytes:31092 (31.0 KB)

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:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)




Three active instances running simultaneously :-

[root@dfw02 ~(keystone_boris)]$ nova list | grep ACTIVE

| 878cb009-8afa-4fb2-ab81-b59d7b94a040  |  UbuntuRS001 | ACTIVE    | None       | Running     | int1=40.0.0.2, 192.168.1.109 |

| 47bae1d0-1be7-4b84-8392-b36270410934 |  VF20RS001   | ACTIVE    | None       | Running     | int1=40.0.0.5, 192.168.1.106  |

| 6e88e18c-c2f9-48c4-b19c-b757b104a194  |  VF20RS003   | ACTIVE    | None       | Running     | int1=40.0.0.4, 192.168.1.107 |

Log file /var/log/neutron/dnsmasq.log (renewing lease in loop all the time) :-

   Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  1 option: 53 message-type  5
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 54 server-identifier  40.0.0.3
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 51 lease-time  2m
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 58 T1  56s
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 59 T2  1m41s
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option:  1 netmask  255.255.255.0
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 28 broadcast  40.0.0.255
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size: 14 option: 15 domain-name  openstacklocal
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size: 13 option: 12 hostname  host-40-0-0-4
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option:  3 router  40.0.0.1
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option:  6 dns-server  83.221.202.254
Mar 16 23:13:05 dnsmasq-dhcp[26111]: 933653313 sent size:  2 option: 26 mtu  1454
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 available DHCP subnet: 40.0.0.0/255.255.255.0
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 client provides name: ubunturs001
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 DHCPREQUEST(ns-343b0090-24) 40.0.0.2 fa:16:3e:97:b1:6a 
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 tags: tag0, known, ns-343b0090-24
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 DHCPACK(ns-343b0090-24) 40.0.0.2 fa:16:3e:97:b1:6a host-40-0-0-2
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 requested options: 1:netmask, 28:broadcast, 2:time-offset, 3:router, 
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 requested options: 15:domain-name, 6:dns-server, 119:domain-search, 
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 requested options: 12:hostname, 44:netbios-ns, 47:netbios-scope, 
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 requested options: 26:mtu, 121:classless-static-route, 42:ntp-server
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 next server: 40.0.0.3
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  1 option: 53 message-type  5
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option: 54 server-identifier  40.0.0.3
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option: 51 lease-time  2m
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option: 58 T1  55s
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option: 59 T2  1m40s
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option:  1 netmask  255.255.255.0
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option: 28 broadcast  40.0.0.255
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size: 14 option: 15 domain-name  openstacklocal
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size: 13 option: 12 hostname  host-40-0-0-2
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option:  3 router  40.0.0.1
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  4 option:  6 dns-server  83.221.202.254
Mar 16 23:13:25 dnsmasq-dhcp[26111]: 1796100447 sent size:  2 option: 26 mtu  1454
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 available DHCP subnet: 40.0.0.0/255.255.255.0
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 client provides name: vf20rs001
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 DHCPREQUEST(ns-343b0090-24) 40.0.0.5 fa:16:3e:b9:83:e9 
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 tags: tag0, known, ns-343b0090-24
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 DHCPACK(ns-343b0090-24) 40.0.0.5 fa:16:3e:b9:83:e9 host-40-0-0-5
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 requested options: 1:netmask, 28:broadcast, 2:time-offset, 121:classless-static-route, 
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 requested options: 15:domain-name, 6:dns-server, 12:hostname, 
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server, 
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 requested options: 26:mtu, 119:domain-search, 3:router
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 next server: 40.0.0.3
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  1 option: 53 message-type  5
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 54 server-identifier  40.0.0.3
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 51 lease-time  2m
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 58 T1  55s
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 59 T2  1m40s
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option:  1 netmask  255.255.255.0
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 28 broadcast  40.0.0.255
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size: 14 option: 15 domain-name  openstacklocal
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size: 13 option: 12 hostname  host-40-0-0-5
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option:  3 router  40.0.0.1
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option:  6 dns-server  83.221.202.254
Mar 16 23:13:36 dnsmasq-dhcp[26111]: 2212500329 sent size:  2 option: 26 mtu  1454
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 available DHCP subnet: 40.0.0.0/255.255.255.0
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 client provides name: vf20rs003
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 DHCPREQUEST(ns-343b0090-24) 40.0.0.4 fa:16:3e:a4:21:bb 
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 tags: tag0, known, ns-343b0090-24
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 DHCPACK(ns-343b0090-24) 40.0.0.4 fa:16:3e:a4:21:bb host-40-0-0-4
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 requested options: 1:netmask, 28:broadcast, 2:time-offset, 121:classless-static-route, 
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 requested options: 15:domain-name, 6:dns-server, 12:hostname, 
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server, 
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 requested options: 26:mtu, 119:domain-search, 3:router
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 next server: 40.0.0.3
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  1 option: 53 message-type  5
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 54 server-identifier  40.0.0.3
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 51 lease-time  2m
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 58 T1  53s
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 59 T2  1m38s
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option:  1 netmask  255.255.255.0
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option: 28 broadcast  40.0.0.255
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size: 14 option: 15 domain-name  openstacklocal
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size: 13 option: 12 hostname  host-40-0-0-4
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option:  3 router  40.0.0.1
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  4 option:  6 dns-server  83.221.202.254
Mar 16 23:13:58 dnsmasq-dhcp[26111]: 933653313 sent size:  2 option: 26 mtu  1454
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 available DHCP subnet: 40.0.0.0/255.255.255.0
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 client provides name: vf20rs001
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 DHCPREQUEST(ns-343b0090-24) 40.0.0.5 fa:16:3e:b9:83:e9 
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 tags: tag0, known, ns-343b0090-24
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 DHCPACK(ns-343b0090-24) 40.0.0.5 fa:16:3e:b9:83:e9 host-40-0-0-5
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 requested options: 1:netmask, 28:broadcast, 2:time-offset, 121:classless-static-route, 
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 requested options: 15:domain-name, 6:dns-server, 12:hostname, 
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server, 
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 requested options: 26:mtu, 119:domain-search, 3:router
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 next server: 40.0.0.3
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  1 option: 53 message-type  5
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 54 server-identifier  40.0.0.3
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 51 lease-time  2m
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 58 T1  53s
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 59 T2  1m38s
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option:  1 netmask  255.255.255.0
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option: 28 broadcast  40.0.0.255
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size: 14 option: 15 domain-name  openstacklocal
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size: 13 option: 12 hostname  host-40-0-0-5
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option:  3 router  40.0.0.1
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  4 option:  6 dns-server  83.221.202.254
Mar 16 23:14:31 dnsmasq-dhcp[26111]: 2212500329 sent size:  2 option: 26 mtu  1454
Mar 16 23:14:41 dnsmasq-dhcp[26111]: 933653313 available DHCP subnet: 40.0.0.0/255.255.255.0


   



  

   [root@dallas2 ~]# ps -ef | grep nova
nova      1702     1  0 10:01 ?        00:03:50 /usr/bin/python /usr/bin/nova-compute --logfile /var/log/nova/compute.log
root      3531     1  0 10:06 ?        00:01:39 /usr/sbin/glusterfs --volfile-id=cinder-volumes012 --volfile-server=192.168.1.130 /var/lib/nova/mnt/1c9688348ab38662e3ac8fb121077d34
qemu     12054     1  7 18:20 ?        00:05:32 /usr/bin/qemu-system-x86_64 -name instance-0000007f -S -machine pc-i440fx-1.6,accel=tcg,usb=off -cpu Penryn,+osxsave,+xsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -m 2048 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 773e454d-675a-4f93-98db-12a1a2812e58 -smbios type=1,manufacturer=Fedora Project,product=OpenStack Nova,version=2013.2.2-1.fc20,serial=6050001e-8c00-00ac-818a-90e6ba2d11eb,uuid=773e454d-675a-4f93-98db-12a1a2812e58 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000007f.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/mnt/1c9688348ab38662e3ac8fb121077d34/volume-8d696bc5-4b12-4d44-92bb-28a00a3700fe,if=none,id=drive-virtio-disk0,format=raw,serial=8d696bc5-4b12-4d44-92bb-28a00a3700fe,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=26,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:8a:cd:db,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/773e454d-675a-4f93-98db-12a1a2812e58/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0 -vnc 127.0.0.1:1 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -incoming fd:23 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
qemu     27517     1 45 16:57 ?        01:11:56 /usr/bin/qemu-system-x86_64 -name instance-00000080 -S -machine pc-i440fx-1.6,accel=tcg,usb=off -cpu Penryn,+osxsave,+xsave,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -m 2048 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 9c5333f1-b5eb-4de7-90f8-6cbd1c72199d -smbios type=1,manufacturer=Fedora Project,product=OpenStack Nova,version=2013.2.2-1.fc20,serial=6050001e-8c00-00ac-818a-90e6ba2d11eb,uuid=9c5333f1-b5eb-4de7-90f8-6cbd1c72199d -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000080.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/mnt/1c9688348ab38662e3ac8fb121077d34/volume-6cbf9ac4-0ebd-4f30-9c4d-2354343975c0,if=none,id=drive-virtio-disk0,format=raw,serial=6cbf9ac4-0ebd-4f30-9c4d-2354343975c0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=24,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:65:d7:64,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/9c5333f1-b5eb-4de7-90f8-6cbd1c72199d/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
root     28361 28057  0 19:34 pts/3    00:00:00 grep --color=auto nova
[root@dallas2 ~]# cd /FDR/Replicate
[root@dallas2 Replicate]# ls -la
total 8712708
drwxr-xr-x.  3  165  165       4096 Mar 21 16:56 .
drwxr-xr-x.  3 root root       4096 Mar  6 00:50 ..
drw-------. 39 root root       4096 Mar 21 16:54 .glusterfs
-rw-rw-rw-.  2 root root 5368709120 Mar 17 21:58 volume-4b807fe8-dcd2-46eb-b7dd-6ab10641c32a
-rw-rw-rw-.  2 qemu qemu 5368709120 Mar 21 19:44 volume-6cbf9ac4-0ebd-4f30-9c4d-2354343975c0
-rw-rw-rw-.  2 qemu qemu 5368709120 Mar 21 19:44 volume-8d696bc5-4b12-4d44-92bb-28a00a3700fe
-rw-rw-rw-.  2 root root 5368709120 Mar 21 14:10 volume-abc0f5b8-5144-42b7-b49f-a42a20ddd88f
-rw-rw-rw-.  2 root root 5368709120 Mar 20 23:41 volume-ec9670b8-fa64-46e9-9695-641f51bf1421


   

SSH connect to newly built Ubuntu 14.04 instance :-

[boris@dallas1 Downloads]$ ssh -l ubuntu -i key2.pem 192.168.1.106
The authenticity of host '192.168.1.106 (192.168.1.106)' can't be established.
ECDSA key fingerprint is cf:6b:20:a9:6b:30:9b:30:c4:a0:13:7e:82:98:fc:3d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.106' (ECDSA) to the list of known hosts.
Welcome to Ubuntu Trusty Tahr (development branch) (GNU/Linux 3.13.0-19-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Mon Mar 24 06:34:23 UTC 2014

  System load:  3.1               Processes:           55
  Usage of /:   55.1% of 1.32GB   Users logged in:     0
  Memory usage: 3%                IP address for eth0: 10.0.0.4
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.



The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

ubuntu@ubuntuts024:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr fa:16:3e:14:69:59  
          inet addr:10.0.0.4  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe14:6959/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1454  Metric:1
          RX packets:339 errors:0 dropped:0 overruns:0 frame:0
          TX packets:342 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:48048 (48.0 KB)  TX bytes:39526 (39.5 KB)

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:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ubuntu@ubuntuts024:~$ sudo su -
sudo: unable to resolve host ubuntuts024

root@ubuntuts024:~# vi /etc/hosts

root@ubuntuts024:~# apt-get update
Ign http://security.ubuntu.com trusty-security InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Ign http://nova.clouds.archive.ubuntu.com trusty InRelease        
Ign http://nova.clouds.archive.ubuntu.com trusty-updates InRelease
Get:1 http://nova.clouds.archive.ubuntu.com trusty Release.gpg [933 B]
Hit http://nova.clouds.archive.ubuntu.com trusty-updates Release.gpg
Get:2 http://nova.clouds.archive.ubuntu.com trusty Release [58.5 kB]
Get:3 http://security.ubuntu.com trusty-security/main Sources [14 B]
Get:4 http://security.ubuntu.com trusty-security/universe Sources [14 B]                       
Hit http://nova.clouds.archive.ubuntu.com trusty-updates Release                                 
Hit http://security.ubuntu.com trusty-security/main amd64 Packages                               
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Get:5 http://nova.clouds.archive.ubuntu.com trusty/main Sources [1,074 kB]
Hit http://security.ubuntu.com trusty-security/main Translation-en         
Hit http://security.ubuntu.com trusty-security/universe Translation-en     
Ign http://security.ubuntu.com trusty-security/main Translation-en_US
Ign http://security.ubuntu.com trusty-security/universe Translation-en_US
Get:6 http://nova.clouds.archive.ubuntu.com trusty/universe Sources [6,403 kB]
Get:7 http://nova.clouds.archive.ubuntu.com trusty/main amd64 Packages [1,362 kB]                                 
Get:8 http://nova.clouds.archive.ubuntu.com trusty/universe amd64 Packages [5,867 kB]                             
Hit http://nova.clouds.archive.ubuntu.com trusty/main Translation-en                                              
Get:9 http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en [4,048 kB]                             
Get:10 http://nova.clouds.archive.ubuntu.com trusty-updates/main Sources [14 B]                                   
Get:11 http://nova.clouds.archive.ubuntu.com trusty-updates/universe Sources [14 B]                               
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/main amd64 Packages                                      
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe amd64 Packages                                  
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/main Translation-en                                      
Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe Translation-en                                  
Ign http://nova.clouds.archive.ubuntu.com trusty/main Translation-en_US                                           
Ign http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en_US                                       
Ign http://nova.clouds.archive.ubuntu.com trusty-updates/main Translation-en_US                                   
Ign http://nova.clouds.archive.ubuntu.com trusty-updates/universe Translation-en_US                               
Fetched 18.8 MB in 1min 17s (243 kB/s)                                                                            
Reading package lists... Done

root@ubuntuts024:~# apt-get upgrade -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@ubuntuts024:~# passwd ubuntu
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully



References

1.  https://ask.openstack.org/en/question/12499/forcing-mtu-to-1400-via-etcneutrondnsmasq-neutronconf-per-daniels/?comment=25356#comment-25356
源码下载地址: https://pan.quark.cn/s/a4b39357ea24 谷歌公司设计了一款无费用且具备开源特性的网络浏览器,名为Chrome,因其卓越的速度、稳定性和安全性而广受赞誉。该浏览器运用了前沿的Web渲染引擎Blink以及JavaScript引擎V8,旨在保障网页载入与脚本运行的卓越效能。为应对无网络环境下的Chrome安装需求,特别准备了离线安装包。此压缩文件内含32位与64位两种规格的Chrome浏览器离线安装方案,具体文件名分别为"chromedev_x64-v68.0.3423.2.exe"与"chromedev_x86-v68.0.3423.2.exe"。在文件命名中,"x64"标识64位版本,适用于64位操作系统平台,而"x86"则对应32位版本,适配32位操作系统。文件名中的"v68.0.3423.2"代表Chrome的一个特定版本号,各版本可能涵盖安全补丁、性能改进或新增功能。与32位Chrome相比,64位版本具备如下长处:能够处理更多内存容量,从而提升多任务作业能力;针对现代硬件的优化使其运行更为迅猛;64位版本更具备高级别的安全防护,能更周全地抵御恶意软件的侵袭。尽管如此,32位版本对于仍在使用32位操作系统的用户,或是在系统资源需求不高的场景下,依然适用。在部署Chrome浏览器时,用户需依据其个人计算机的操作系统平台,挑选匹配的版本进行安装。通过双击相应的.exe文件,安装流程将自动启动,一般包含接受使用许可、确定安装路径及构建桌面快捷方式等环节。若在安装阶段遭遇难题,可参照提示信息或联系技术支援获取协助,同时该压缩文件发布者亦表明欢迎用户以留言形式反映问题。Chrome浏览器的主要特质涵盖:直观的用户界面设计...
内容概要:本文围绕直驱式永磁同步电机(PMSM)矢量控制系统的建模与仿真展开研究,基于Simulink平台构建了完整的控制系统仿真模型,涵盖了电机本体数学建模、三相/两相坐标变换(Clarke/Park变换)、磁场定向控制(FOC)、电流环与速度环双闭环PID控制策略、空间矢量脉宽调制(SVPWM)技术以及转速调节器设计等核心技术环节。通过仿真实验验证了该控制策略在动态响应速度、稳态运行精度及抗负载扰动能力方面的优良性能,充分体现了矢量控制在实现电机高性能调速中的优势,为永磁同步电机在工业驱动、新能源汽车和高端装备制造等领域的实际应用提供了可靠的理论依据与技术支撑。; 适合人群:具备电机学、电力电子技术和自动控制原理基础知识的电气工程、自动化、机电一体化等相关专业的研究生、高校教师、科研人员,以及从事电机驱动系统、新能源汽车电驱、工业自动化设备研发的工程技术人员。; 使用场景及目标:①深入理解永磁同步电机矢量控制的基本原理与实现机制;②掌握在Simulink中搭建高精度电机控制系统仿真模型的方法与技巧;③为电机控制算法的设计、优化与参数整定提供高效的仿真验证平台;④服务于高校课程设计、毕业课题研究、科研项目前期验证及企业产品开发中的控制策略测试。; 阅读建议:建议结合经典电机控制教材进行对照学习,重点关注各功能模块间的信号流向、反馈机制与参数耦合关系,动手复现并调试仿真模型,通过改变PI参数、负载条件和给定转速等方式观察系统响应,从而深入掌握控制策略的内在逻辑与性能优化方法。
代码下载地址: https://pan.quark.cn/s/a4b39357ea24 Java学习路线(鱼皮)是一个全面且循序渐进的Java开发技能培养方案,该路线从基础入门直至高级应用,致力于协助学习者高效地掌握Java编程的全部核心内容。此学习路线的独特之处在于其新颖性、系统性、实践性、开放性以及社区回馈与持续迭代更新。其核心构成涵盖了预备阶段、Java入门知识、Java进阶技能、Java高级技术、Java框架应用以及Java项目实践等多个学习模块,每个模块均整合了相应的知识点、学习策略与资源指引。在预备阶段,学习者需配置在线编程环境、选择笔记工具、熟悉Markdown文档编写等基本技能,为编程学习奠定基础。在Java入门阶段,学习者应重点掌握Java编程的基础理论、开发环境配置、IDEA集成开发环境的使用、项目创建与执行调试、界面设置及插件配置等关键技能。在Java入门阶段,学习者还须深入理解Java基础语法、数据结构类型、程序流程控制、数组操作、面向对象编程、方法重载机制、封装原则、继承特性、多态表现、抽象类的概念、接口定义、枚举类型、常用类库、字符串处理、日期时间管理、集合框架、泛型编程、注解应用、异常处理机制、多线程技术、IO流操作、反射机制等核心知识点。在Java进阶阶段,学习者需要重点学习Java 8的更新特性、Stream API的应用、Lambda表达式的使用、新的日期时间处理API以及接口默认方法的实现。在Java高级阶段,学习者需要掌握Java框架的应用、Spring Boot框架的搭建、Spring Cloud微服务架构的实施等高级技术。在Java项目阶段,学习者需要学习Java项目开发的全过程操作,包括项目架构设计、项目编码实现、项...
内容概要:本文围绕基于Matlab代码实现的卫星信号传播模拟研究,系统阐述了卫星信号在大气层及空间环境中传播特性的数值仿真方法。研究通过建立精确的数学模型,对信号衰减、传输延迟、多普勒效应以及噪声干扰等关键物理现象进行建模与仿真分析,全面还原实际通信场景下的信号行为特征。该仿真体系不仅可用于验证通信链路设计的可靠性,还能为星地链路预算、抗干扰策略优化及接收机算法开发提供理论依据和技术支持。; 适合人群:具备一定Matlab编程能力、通信原理基础和电磁波传播知识的高校研究生、科研机构研究人员及从事卫星通信系统设计与仿真的工程技术人员。; 使用场景及目标:①用于高校课程中卫星通信相关理论的教学演示与实验教学;②支撑航天通信项目的链路性能评估与系统参数优化;③为新型调制解调、纠错编码和信号增强算法的研发提供可验证的仿真平台;④辅助科研人员开展低轨星座、深空探测等前沿领域的通信建模研究; 阅读建议:建议读者结合经典通信理论教材,深入理解各模块的物理意义,动手运行并调试提供的Matlab代码,尝试调整轨道参数、大气模型和噪声水平等变量,观察其对信号质量的影响,进而拓展模型以适配不同卫星轨道类型或复杂多径环境,提升综合仿真与分析能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值