Tutorial: Setup CentOS 7 Virtual Host Server as an everyday desktop
Minimalistic Virtual Host server
Chech if the CPU has extension for virtualization firstegrep --color '(vmx|svm)' /proc/cpuinfo
Prepare the Virtual Host Server
yum upgrade -y
yum groupinstall virtualization-hypervisor -y
yum install virt-install virt-df virt-filesystems virt-inspector virt-resize libguestfs-bash-completion iotop bash-completion -y
Tools breakdown:
=======================
- virt-install is a command line tool to provision new virtual machines. It supports both text-based and graphical installations, using serial console, SPICE, or VNC client/server pair graphics. Installation media can be local, or exist remotely on an NFS, HTTP, or FTP server. The tool can also be configured to run unattended and kickstart the guest when installation is complete, allowing for easy automation of installation. This tool is installed as part of the virt-install package.
- virt-df A command line tool used to show the actual physical disk usage of virtual machines, similar to the command line tool df. Note that this tool does not work across remote connections. It is installed as part of the libguestfs-tools package.
- virt-inspector examines a virtual machine and tries to determine the version of the OS, the kernel version, what drivers are installed, whether the virtual machine is fully virtualized (FV) or para-virtualized (PV), what applications are installed and more.
- virt-resize can resize existing virtual machine disk images.
- iotop - Linux has always been able to show how much I/O was going on.
=======================
- yum install tuned
- systemctl enable tuned (to autostart everytime the machine reboots)
- (To list available profiles run) tuned-adm list
- (To check which profile is currently active run) tuned-adm active
- (If not running virtual-host profile then run) tuned-adm profile virtual-host