More Related Content Similar to OpenStackトラブルシューティング入門 (20) More from VirtualTech Japan Inc. (20) OpenStackトラブルシューティング入門2. 私について
名前: 遠山 洋平
出身: 宮城県大崎市
VDI / 最近はOpenStack担当
[他の仕事]
– 日経Linux執筆・連載(2011年5月〜)
– 秀和システム「VMware 設計・運用・構築
プロフェッショナルガイド」
– 技評「VMwareポケットリファレンス」
2
12. LinuxでNested KVM
1. Linux KVM環境を構築
2. KVMホストでカーネルパラメータを変
更して再起動
3. Nested KVMのvirbr0を無効化
12
# virsh net-destroy default
# virsh net-autostart default --disable
192.168.122.0/24
13. Ubuntu Server 14.04 LTS
$ sudo apt-get install kvm qemu-kvm
libvirt-bin
$ sudo -i
# echo "options kvm_intel nested=1" >>
/etc/modprobe.d/qemu-system-x86.conf
# reboot
!
$ cat /sys/module/kvm_intel/parameters/
nested
Y
13
14. Fedora 20 / CentOS 7
# yum install kvm qemu-kvm libvirt
# systemctl enable libvirtd
# systemctl start libvirtd
# echo "options kvm_intel nested=1" >>
/etc/modprobe.d/kvm-nested.conf
# reboot
!
# cat /sys/module/kvm_intel/parameters/
nested
Y
14
15. VMware ESXi 5.1以降
1. /etc/vmware/configに書く
– 全体に適用
2. vmxファイルに書く(→参考)
– 仮想マシンごと
– vhv.enable = "true"
– 再起動で有効
15
19. フラグの確認
# cat /proc/cpuinfo | grep vmx
!
flags : fpu vme de pse tsc msr pae mce cx8
apic sep mtrr pge mca cmov pat pse36 clflush
dts mmx fxsr sse sse2 ss syscall nx rdtscp lm
constant_tsc arch_perfmon pebs bts xtopology
tsc_reliable nonstop_tsc aperfmperf
unfair_spinlock pni pclmulqdq vmx ssse3 cx16
pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx
f16c rdrand hypervisor lahf_lm ida arat epb
xsaveopt pln pts dts tpr_shadow vnmi ept vpid
fsgsbase smep
flags …(CPUコア分が標準出力される)
19
AMD: svm
24. RDO Packstackによる導入
• RHEL, CentOS 6.5以降, Fedora 20
• 下記コマンドを順に実行
• 単体構成なら30分程度でデプロイ
24
# setenforce permissive
# yum -y install http://rdo.fedorapeople.org/rdo-
release.rpm
# yum install -y openstack-packstack
# packstack --allinone (--provision-demo=n 推奨)
公式ドキュメント > http://goo.gl/FgbuVS
http://openstack.redhat.com/Quickstart etc..
50. 解決方法
# systemctl start rabbitmq-server
(rabbitmq-serverを起動)
# watch systemctl status -l rabbitmq-server
(起動状況を詳細確認)
# systemctl start neutron-server.service
(neutron-serverを起動)
# watch systemctl status -l neutron-server.service
(起動状況を詳細確認)
# ovs-vsctl show
(両ノードでtunnelが作られていることを確認)
50
56. DHCP OptionでMTU 1450を配布
• dhcp_agent.iniの設定を変更
!
!
• dnsmasq.confの変更
!
!
• サービスの再起動
56
# vi /etc/neutron/dhcp_agent.ini
dnsmasq_config_file=/etc/dnsmasq.d/dnsmasq.conf
# systemctl restart neutron-dhcp-agent.service
# vi /etc/dnsmasq.d/dnsmasq.conf
dhcp-option=26,1450
→参考
66. qrouterとqdhcp
• ip netnsで一覧
• ip netns execで内容確認
!
• qrouter
– ルータをネットワーク接続すると出現
• qdhcp
– DHCPサーバが作成されると出現
※はじめてインスタンスが作られたタイミングでDHCP
サーバーが作られる
66
72. それでもつながらない
1. ログを見る
2. Floating IPを付け直し
3. クライアントのMTUを下げてみる
4. インスタンス中→外にPing
5. Open vSwitchエージェントの再起動
6. qrouterやqdhcpを確認
7. 各種設定の見直し
8. Neutronネットワークの作り直し
72
80. Ubuntuでの回避策
• /etc/network/interface
80
auto eth0
iface eth0 inet static
pre-up service openvswitch-switch start || true
address 192.168.0.9
netmask 255.255.255.0
auto br-ex
iface br-ex inet static
pre-up service openvswitch-switch start || true
address 10.0.0.9
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 10.0.0.1
auto eth1
iface eth1 inet manual
pre-up service openvswitch-switch start || true
up ip address add 0/0 dev $IFACE
up ip link set $IFACE up
down ip link set $IFACE down