Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kvm installation on CentOS7
05-09-2018, 04:27 PM (This post was last modified: 05-09-2018 04:31 PM by rayluk.)
Post: #1
kvm installation on CentOS7
As told here ( http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=11081&pid=7212 ), KVM seems to have package collision with xen.

So we have to remove xen before installing KVM.

Code:
# yum remove xen-runtime


Following is kvm and some management tools. Not sure if all is needed. May remove some when we find they are not needed later.
Code:
yum install kvm virt-manager libvirt libvirt-python python-virtinst

Enable libvirt service
Code:
systemctl enable libvirt-guests
Find all posts by this user
Quote this message in a reply
05-09-2018, 04:32 PM
Post: #2
RE: kvm installation on CentOS7
A problem is observed when creating a new VM

Code:
[root@tetra ~]# virt-install --virt-type=kvm --name=centos72 --vcpus=2 --memory=4096 --cdrom /thinker/dstore/DStorage/software/autation/CentOS/7/ISO/CentOS-7.iso --network bridge=br0 --os-type=linux --disk size=16,format=rawWARNING  No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.
WARNING  Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Allocating 'centos72.img'                                                                                              |  16 GB  00:00:00    
ERROR    internal error: qemu unexpectedly closed the monitor: qemu: could not load PC BIOS 'bios-256k.bin'
Removing disk 'centos72.img'                                                                                           |    0 B  00:00:00    
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start centos72
otherwise, please restart your installation.

/usr/share/seabios/bios-256k.bin seems to be missing
Code:
[root@tetra ~]# ls /usr/share/qemu/bios-256k.bin -alhlrwxrwxrwx 1 root root 24 May  9 16:03 /usr/share/qemu/bios-256k.bin -> ../seabios/bios-256k.bin
[root@tetra ~]# ls /usr/share/seabios/bios-256k.bin
ls: cannot access /usr/share/seabios/bios-256k.bin: No such file or directory
Find all posts by this user
Quote this message in a reply
05-09-2018, 05:06 PM
Post: #3
RE: kvm installation on CentOS7
As suggested in https://unix.stackexchange.com/questions...https://unix.stackexchange.com/questions/134893/cannot-start-kvm-vm-because-mis someone get this through by using the bios-256k.bin from xen-runtime. I have copied one to /usr/share/seabios/bios-256k.bin and it looks like it started installing.
Find all posts by this user
Quote this message in a reply
05-09-2018, 07:16 PM
Post: #4
RE: kvm installation on CentOS7
Latest version of seabio-bin don't have /usr/share/seabios/bios-256k.bin but an older version has. It seems the verison doesn't match for what we can get from latest repository.

Package that has /usr/share/seabios/bios-256k.bin
Code:
seabios-bin-1.10.2-3.el7.noarch
Find all posts by this user
Quote this message in a reply
05-09-2018, 11:25 PM
Post: #5
RE: kvm installation on CentOS7
(05-09-2018 07:16 PM)rayluk Wrote:  Latest version of seabio-bin don't have /usr/share/seabios/bios-256k.bin but an older version has. It seems the verison doesn't match for what we can get from latest repository.

Package that has /usr/share/seabios/bios-256k.bin
Code:
seabios-bin-1.10.2-3.el7.noarch

Pls ask the question about it in the official support venue.

I guess we need to create a new autation ISO and a new AutBIIntall for PHs, don't we?
Find all posts by this user
Quote this message in a reply
05-11-2018, 12:28 PM
Post: #6
RE: kvm installation on CentOS7
(05-09-2018 11:25 PM)lingu Wrote:  
(05-09-2018 07:16 PM)rayluk Wrote:  Latest version of seabio-bin don't have /usr/share/seabios/bios-256k.bin but an older version has. It seems the verison doesn't match for what we can get from latest repository.

Package that has /usr/share/seabios/bios-256k.bin
Code:
seabios-bin-1.10.2-3.el7.noarch

Pls ask the question about it in the official support venue.

I guess we need to create a new autation ISO and a new AutBIIntall for PHs, don't we?

?
Find all posts by this user
Quote this message in a reply
05-11-2018, 01:01 PM (This post was last modified: 05-11-2018 01:01 PM by rayluk.)
Post: #7
RE: kvm installation on CentOS7
(05-11-2018 12:28 PM)lingu Wrote:  
(05-09-2018 11:25 PM)lingu Wrote:  
(05-09-2018 07:16 PM)rayluk Wrote:  Latest version of seabio-bin don't have /usr/share/seabios/bios-256k.bin but an older version has. It seems the verison doesn't match for what we can get from latest repository.

Package that has /usr/share/seabios/bios-256k.bin
Code:
seabios-bin-1.10.2-3.el7.noarch

Pls ask the question about it in the official support venue.

I guess we need to create a new autation ISO and a new AutBIIntall for PHs, don't we?

?

I couldn't find a proper place to ask that question yet.

I am still unsure about a new Autation ISO , expecially when there is some uncertainty in /usr/share/seabios/bios-256k.bin

While for AutBIIntall, I believe updating the current algorithm would be enough. There is not much difference between the creation of kvm and xen. Meanwhile, as there is a TODO of moving scripts from shell to python, I think its good for a AutBIInstall.py that does both items
Find all posts by this user
Quote this message in a reply
05-11-2018, 01:35 PM
Post: #8
RE: kvm installation on CentOS7
Code:
[root@tetra ~]# rpm -qpl seabios-bin-1.11.0-2.el7.noarch.rpm
/usr/share/seabios
/usr/share/seabios/bios-256k.bin
/usr/share/seabios/bios.bin

seabios actually didn't remove bios-256k.bin in latest version. The absence of the binary maybe due to the previous package removal process
Find all posts by this user
Quote this message in a reply
05-15-2018, 04:31 PM
Post: #9
RE: kvm installation on CentOS7
Use following command can install KVM without removing xen. Since the file of collision is some minor files, this would be acceptable if we didn't see any error for limbo tests and 'xl console'
Code:
yum install kvm --downloadonly --downloaddir=./kvm
rpm -U --force ./kvm/*
Find all posts by this user
Quote this message in a reply
05-22-2018, 12:51 PM
Post: #10
RE: kvm installation on CentOS7
(05-15-2018 04:31 PM)rayluk Wrote:  Use following command can install KVM without removing xen. Since the file of collision is some minor files, this would be acceptable if we didn't see any error for limbo tests and 'xl console'
Code:
yum install kvm --downloadonly --downloaddir=./kvm
rpm -U --force ./kvm/*

xen works normally with this installation by testing limbo00716. Network and xl console has also be tested.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: