zoukankan      html  css  js  c++  java
  • Deploy Openstack with RDO and Change VNC console to Spice

    Deploy Openstack with RDO and Change VNC console to Spice

    • host os: centOS 7 server

    • config network and keep network working
      here the IP address is 192.168.122.148

    • install openstack using RDO

    sudo yum update -y
    #install liberty default
    sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm   
    sudo yum install -y openstack-packstack
    packstack --allinone
    
    • login to http://$YOURIP/dashboard with admin or demo
      password is in /root/keystonerc_admin or keystonerc_demo

    • config spice manually
      stop vnc service and comment the vnc related configuration

    systemctl stop openstack-nova-novncproxy.service
    
     # /etc/nova/nova.conf 
         [DEFAULT]
         #novncproxy_host=0.0.0.0
         #novncproxy_port=6080
         #novncproxy_base_url=http://192.168.122.148:6080/vnc_auto.html
         #vncserver_listen=0.0.0.0
         #vncserver_proxyclient_address=192.168.122.148
         vnc_enabled=False
    
    • install spice service
    yum install spice-html5
    yum install openstack-nova-spicehtml5proxy
    
    • config spice
    # /etc/nova/nova.conf
         [spice]
         html5proxy_host=0.0.0.0
         html5proxy_port=6082
         html5proxy_base_url=http://192.168.122.148:6082/spice_auto.html
         server_listen=0.0.0.0
         enabled=True
         agent_enabled=true
         keymap=en-us
    
    • open the spice port
    iptables -I INPUT -p tcp -m multiport --dports 6082 -m comment --comment "Allow SPICE connections for console access " -j ACCEPT
    
    • restart services
    service openstack-nova-compute restart
    service httpd restart
    systemctl enable openstack-nova-spicehtml5proxy
    systemctl start  openstack-nova-spicehtml5proxy.service
    service openstack-nova-spicehtml5proxy status
    
    • check instance's spice port
    ps -ef | grep spice | grep port
    
  • 相关阅读:
    Apache httpd和JBoss构建高可用集群环境
    Ubuntu 14.04下NFS安装配置
    Ubuntu 14.04 安装 JDK 7.0
    Docker第三方项目小结
    Shipyard远程API
    Linux软件管理——yum命令详解
    Quartz集群原理及配置应用
    Rsync原理介绍及配置应用
    python构造wireshark可以解析的LTE空口数据
    A Simple Web Server
  • 原文地址:https://www.cnblogs.com/zeweiwu/p/4907119.html
Copyright © 2011-2022 走看看