-
Openstack Nova 설치하기Cloud 2016. 2. 22. 09:00Nova에서 사용할 rabbitmq 설치하기wget https://www.rabbitmq.com/rabbitmq-signing-key-public.ascsudo apt-key add rabbitmq-signing-key-public.ascapt-get updatesudo apt-get install rabbitmq-serverrabbitmq-plugins enable rabbitmq_managementopenstack에서 사용할 rabbitmq 계정 만들기rabbitmqctl add_user openstack openstackNova 컨트롤러 노드 설치하기mysql DB 준비mysql -u root -pCREATE DATABASE nova;GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS';source admin-openrc.shopenstack user create --domain default --password-prompt nova패스워드는 'nova'로 설정openstack role add --project service --user nova adminopenstack service create --name nova --description "OpenStack Compute" computeopenstack endpoint create --region RegionOne compute public http://controller:8774/v2/%\(tenant_id\)sopenstack endpoint create --region RegionOne compute internal http://controller:8774/v2/%\(tenant_id\)sopenstack endpoint create --region RegionOne compute admin http://controller:8774/v2/%\(tenant_id\)sapt-get install nova-api nova-cert nova-conductor nova-consoleauth nova-novncproxy nova-scheduler python-novaclientvi /etc/nova/nova.conf[DEFAULT]dhcpbridge_flagfile=/etc/nova/nova.confdhcpbridge=/usr/bin/nova-dhcpbridgelogdir=/var/log/novastate_path=/var/lib/novalock_path=/var/lock/novaforce_dhcp_release=Trueiscsi_helper=tgtadmlibvirt_use_virtio_for_bridges=Trueconnection_type=libvirtroot_helper=sudo nova-rootwrap /etc/nova/rootwrap.confverbose=Trueec2_private_dns_show_ip=Trueapi_paste_config=/etc/nova/api-paste.inivolumes_path=/var/lib/nova/volumesenabled_apis=osapi_compute,metadatarpc_backend=rabbitauth_strategy = keystonemy_ip = 192.168.123.103network_api_class = nova.network.neutronv2.api.APIsecurity_group_api = neutronlinuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriverfirewall_driver = nova.virt.firewall.NoopFirewallDriver[oslo_messaging_rabbit]rabbit_host=controllerrabbit_userid=openstackrabbit_password=openstack[database]connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova[keystone_authtoken]auth_uri = http://controller:5000auth_url = http://controller:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = defaultproject_name = serviceusername = novapassword = NOVA_PASS[vnc]vncserver_listen = $my_ipvncserver_proxyclient_address = $my_ip[glance]host=controller[oslo_concurrency]lock_path = /var/lib/nova/tmpapi-paste.ini파일에서 authtoken영역을 아래처럼 변경vi /etc/nova/api-paste.ini[filter:authtoken]#paste.filter_factory = keystoneclient.middleware.auth_token:filter_factorypaste.filter_factory = keystonemiddleware.auth_token:filter_factoryidentity_uri = http://controller:35357admin_user=adminadmin_password=admindelay_auth_decision = truenova DB 마이그레이션su -s /bin/sh -c "nova-manage db sync" nova프로세스 재시작service nova-api restartservice nova-cert restartservice nova-consoleauth restartservice nova-scheduler restartservice nova-conductor restartservice nova-novncproxy restartsqlite DB 파일 삭제rm -f /var/lib/nova/nova.sqliteNova Compute 노드 설치하기apt-get install nova-compute sysfsutilsvi /etc/nova/nova.conf컨트롤러설정과 동일컴퓨트 노드가 하드웨어 가속을 지원하는지 확인.egrep -c '(vmx|svm)' /proc/cpuinfovi /etc/nova/nova-compute.conf[DEFAULT]compute_driver=libvirt.LibvirtDriver[libvirt]#virt_type=kvmvirt_type=qemuservice nova-compute restartrm -f /var/lib/nova/nova.sqlite설치내용 확인컨트롤러 노드에서 아래명령 실행source admin-openrc.shnova service-listnova endpointsnova image-list참고
'Cloud' 카테고리의 다른 글
gnocchi 간단 정리 (0) 2017.02.27 Openstack glance 설치하기 (0) 2016.02.19 openstack keystone 설치해보기 (0) 2016.02.17 Large-scale cluster management at Google with Borg 정리 (0) 2015.09.21 kubernetes 기본 개념 (0) 2015.09.14 댓글