Dec 08

Configure Virtual Machine using CentOs/Redhat Virtualization Features

Yes, taken from the output of the history command

Check for Virtualization Support

lscpu | grep Virtualization
grep vmx /proc/meminfo  (should be in Redhat/CentOS installed in the actual machine - not when Linux is under VM)


Check info on different related packages

yum group info "virtualization hypervisor"
vim /etc/yum.repos.d/CentOS-Base.repo
yum install tree
yum group info "virtualization hypervisor"
yum group info "virtualization client"
yum group info "virtualization tools"
yum group info "virtualization platform"

The other commands such yum install tree or ping was to make sure internet is available and yum will work. Yum was not working as I was in a Lan segment then I changed network adapter to NAT. You can ignore these commands


ip addr

Install all related packages from all related package groups
yum -y group install "virtualization hypervisor" "virtualization client" "virtualization platform" "virtualization tools"

You could also try yum -y install virt-manager*   : to keep things simple and when you are not using virtualization heavily


Bring up the GUI for Virtualization Manager


Now, I created a Virtual Machine under Virt-Manager. However, I used the option FTP/HTTP/NFS. So, I needed to bring the CentOS installer under a FTP server.

Configure FTP server and Bring CentOS installer files under the FTP server
systemctl status vsftpd
systemctl status ftp
yum install vsftpd
systemctl status vsftpd
systemctl start vsftpd
systemctl enable vsftpd
df -h
mkdir /mnt/dvd1
mount /dev/sr0 /mnt/dvd1/
cp -r /mnt/dvd1/Packages /var/ftp/pub/
ls /var/ftp/pub/
ll /var/ftp/pub/Packages/
ls /var/ftp/pub/Packages/
cp --help
cp -u /mnt/dvd1/Packages/* /var/ftp/pub/Packages/
cp -u /mnt/dvd1/* /var/ftp/pub/
cp -ur /mnt/dvd1/* /var/ftp/pub/

Then in the Virtual Machine creation step, provide the URL of the ftp server (i.e. with CentOS installer)

Better, try to customize the installation and provide proper values. If you just select auto detect and auto-configure - things might not work as is.

And yes, rather than using a FTP server, you could point to an iso installer of CentOS. I used that in another instance. That also works.


In a later article, I will give more info on FTP install.

Skip to toolbar