日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

OpenStack icehouse系列之计算节点搭建

發(fā)布時(shí)間:2025/4/5 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 OpenStack icehouse系列之计算节点搭建 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

OpenStack icehouse系列之計(jì)算節(jié)點(diǎn)搭建

我們接著上一篇博文OpenStack icehouse系列之網(wǎng)絡(luò)節(jié)點(diǎn)搭建繼續(xù)往下搭建下面是環(huán)境介紹

網(wǎng)絡(luò)節(jié)點(diǎn):ml2openvswitchDHCPl3metadata

控制節(jié)點(diǎn):mysqlkeystoneglancenovaneutrondashboardcinder

計(jì)算節(jié)點(diǎn):nova-computeqemu-kvmopenvswitchml2

Compute?setup?(計(jì)算節(jié)點(diǎn)安裝)

1.檢查cpu是否支持kvm

apt-get?install?-y?cpu-checker

kvm-ok

2.安裝qemu-kvm

apt-get?install?-y?kvm?libvirt-bin?pm-utils

3.安裝nova服務(wù)

apt-get?install?-y?nova-compute-kvm?python-guestfs

4.使當(dāng)前內(nèi)核可讀:

dpkg-statoverride??--update?--add?root?root?0644?/boot/vmlinuz-$(uname?-r)

5.覆蓋新內(nèi)核,創(chuàng)建/etc/kernel/postinst.d/statoverride

vi?/etc/kernel/postinst.d/statoverride#!/bin/shversion="$1"#?passing?the?kernel?version?is?required[?-z?"${version}"?]?&&?exit?0dpkg-statoverride?--update?--add?root?root?0644?/boot/vmlinuz-${version}

6.給文件賦予權(quán)限

chmod?+x?/etc/kernel/postinst.d/statoverride

7.編輯/etc/nova/nova.conf

vi?/etc/nova/nova.conf[DEFAULT]auth_strategy?=?keystonerpc_backend?=?rabbitrabbit_host?=?controllermy_ip?=?10.0.0.31vnc_enabled?=?Truevncserver_listen?=?0.0.0.0vncserver_proxyclient_address?=?10.0.0.31novncproxy_base_url?=?http://controller:6080/vnc_auto.htmlglance_host?=?controllervif_plugging_is_fatal=falsevif_plugging_timeout=0?[database]connection?=?mysql://nova:NOVA_DBPASS@controller/nova?[keystone_authtoken]auth_uri?=?http://controller:5000auth_host?=?controllerauth_port?=?35357auth_protocol?=?httpadmin_tenant_name?=?serviceadmin_user?=?novaadmin_password?=?service_pass

8.刪除nova原數(shù)據(jù)庫

rm?/var/lib/nova/nova.sqlite

9.重啟nova-compute服務(wù)

service?nova-compute?restart

10.編輯/etc/sysctl.conf

vi?/etc/sysctl.confnet.ipv4.ip_forward=1net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0

11.更新下sysctl

sysctl?-p

12.安裝網(wǎng)絡(luò)服務(wù)

apt-get?install?-y?neutron-common?neutron-plugin-ml2?neutron-plugin-openvswitch-agent

13.編輯/etc/neutron/neutron.conf

vi?/etc/neutron/neutron.conf?[DEFAULT]auth_strategy?=?keystonecore_plugin?=?ml2service_plugins?=?routerallow_overlapping_ips?=?True?rpc_backend?=?neutron.openstack.common.rpc.impl_komburabbit_host?=?controller?[keystone_authtoken]auth_uri?=?http://controller:5000auth_host?=?controllerauth_port?=?35357auth_protocol?=?httpadmin_tenant_name?=?serviceadmin_user?=?neutronadmin_password?=?service_pass

14.編輯/etc/neutron/plugins/ml2/ml2_conf.ini

vi?/etc/neutron/plugins/ml2/ml2_conf.ini?[ml2]type_drivers?=?gretenant_network_types?=?gremechanism_drivers?=?openvswitch?[ml2_type_gre]tunnel_id_ranges?=?1:1000?[ovs]local_ip?=?10.0.1.31tunnel_type?=?greenable_tunneling?=?True?[securitygroup]firewall_driver?=?neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriverenable_security_group?=?True

15.重啟OVS服務(wù)

service?openvswitch-switch?restart

16.創(chuàng)建橋接

ovs-vsctl?add-br?br-int

17.編輯/etc/nova/nova.conf

vi?/etc/nova/nova.conf?[DEFAULT]network_api_class?=?nova.network.neutronv2.api.APIneutron_url?=?http://controller:9696neutron_auth_strategy?=?keystoneneutron_admin_tenant_name?=?serviceneutron_admin_username?=?neutronneutron_admin_password?=?service_passneutron_admin_auth_url?=?http://controller:35357/v2.0linuxnet_interface_driver?=?nova.network.linux_net.LinuxOVSInterfaceDriverfirewall_driver?=?nova.virt.firewall.NoopFirewallDriversecurity_group_api?=?neutron

18.編輯/etc/nova/nova-compute.conf

vi?/etc/nova/nova-compute.conf?[DEFAULT]compute_driver=libvirt.LibvirtDriver[libvirt]virt_type=qemu

19.重啟nova-compute

service?nova-compute?restart

20.重啟ovs?agent服務(wù)

service?neutron-plugin-openvswitch-agent?restart

21.查看nova服務(wù)狀態(tài)

nova-manage?service?list


本文轉(zhuǎn)自Devin 51CTO博客,原文鏈接:http://blog.51cto.com/devingeng/1564429

總結(jié)

以上是生活随笔為你收集整理的OpenStack icehouse系列之计算节点搭建的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。