Create an RHEL7 system image for OpenStack, openstackrhel7
Create the RHEL7 system image used by OpenStack, set the image, and install XRDP for remote access.
1. Install the RHEL7.2 client in KVM;
2. Set the NIC to dhcp and onboot = yes so that the virtual machine can automatically obtain the IP address;
vim /etc/sysconfig/network-scripts/ifcfg-eth0
Make sure you can connect to the Internet.
3. View The SELinux status:
/usr/sbin/sestatus -v SELinux status: enabled
Enabled indicates that SELinux is enabled.
Disable SELinux:
vim /etc/selinux/config
Set "SELINUX = disabled" and comment out the remaining rows.
Restart the machine.
4. View and disable firewalld
The latest CentOS7/REHL7 firewall has been updated to firewalld.
View the Firewall Status:
systemctl status firewalld.service
Disable Firewall:
systemctl stop firewalld.service
Disable startup:
systemctl disable firewalld.service
5. Install XRDP for remote access:
(1) install the EPEL Library
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) install xrdp
yum updateyum -y install xrdp tigervnc-server
(3) start:
systemctl start xrdp.service
Enable startup:
systemctl enable xrdp.service
(4) Check whether xrdp is listening for 3389:
netstat -antup | grep xrdp
6. compress the image file and upload it to OpenStack to enable the instance. You can access the image through the Remote Desktop without accident.
References and sources:
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