Monthly Archives: September 2017

Clone CentOS 6/RHEL 6 VM template using Clonezilla

Clone RHEL 6 VM template to NFS server using Clonezilla for deploy to physical server.

System included:
– Clonezilla iso.
– RHEL 6 VM Template.
– Windows server 2012 R2 NFS server.
Continue reading

Command to re-read new VM disk CentOS/RHEL

System: CentOS/RHEL 6 and CentOS/RHEl 7

Added new VM disk in CentOS not showing the new VM disk when run fdisk -l.

Login as root, run this command to re-read the new VM disk without reboot the server.

ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

Continue reading

Setup Banner on Console and Remote login CentOS/RHEL 6

Example add below banner.

* *
* This system is for the use of authorized users only. Usage of *
* this system may be monitored and recorded by system personnel. *
* *
* Unauthorized access to this machine is prohibited *
* Press Ctrl+D if you are not an authorized user *
* *
* Anyone using this system expressly consents to such monitoring *
* and is advised that if such monitoring reveals possible *
* evidence of criminal activity, system personnel may provide the *
* evidence from such monitoring to law enforcement officials. *
* *

Continue reading