製作OpenStack用的RHEL7系統鏡像,openstackrhel7

來源:互聯網
上載者:User

製作OpenStack用的RHEL7系統鏡像,openstackrhel7

 製作OpenStack使用的RHEL7系統鏡像,並進行相關設定,安裝XRDP以進行遠端存取。

1.在KVM中安裝RHEL7.2客戶機;

2.設定網卡為dhcp並onboot=yes,使得虛擬機器能自動擷取IP地址;

vim /etc/sysconfig/network-scripts/ifcfg-eth0

確保可以連網。

3.查看SELinux狀態:

/usr/sbin/sestatus -v     SELinux status:                 enabled

 enabled表示SELinux為開啟狀態

關閉SELinux:

vim /etc/selinux/config

設定"SELINUX=disabled"並注釋掉剩下的行。

重啟機器即可。

 4.查看和關閉firewalld

最新的CentOS7/REHL7防火牆已經更新為firewalld。

查看防火牆狀態:

systemctl status firewalld.service

關閉防火牆:

systemctl stop firewalld.service

禁止其開機啟動:

systemctl disable firewalld.service

5.安裝XRDP以遠端存取:

(1)安裝EPEL庫

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpmrpm -ivh epel-release-7-5.noarch.rpm

(2)安裝xrdp

yum updateyum -y install xrdp tigervnc-server

(3)啟動:

systemctl start xrdp.service

允許開機啟動:

systemctl enable xrdp.service

(4)查看xrdp 是否在監聽3389:

netstat -antup | grep xrdp

6.壓縮鏡像檔案並上傳到OpenStack,開啟執行個體,如不出意外就可以通過遠端桌面訪問了。

 

參考文章及出處:

https://blog.sloong.com/?p=76

http://www.zhongweicheng.com/?p=1419

http://idroot.net/tutorials/how-to-install-xrdp-on-centos-7/

http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.