LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Virt-install: ERROR Host does not support any virtualization options. (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/virt-install-error-host-does-not-support-any-virtualization-options-4175483456/)

morrison71 11-05-2013 07:42 AM

Virt-install: ERROR Host does not support any virtualization options.
 
Hello guys!

First of all sorry about my english.

I am using KVM to virtualizate. But when i run the "virt-install" command, it shows the next error:
Code:

ERROR Host does not support any virtualization options.
My server had virtualisation extensions enabled in the bios.

It is my first time using it, so i donīt know too much.
Can you help me?

Thanks in advance!

druuna 11-05-2013 07:51 AM

Your CPU also needs to support virtualization technology.

Does the following command generate any output:
Code:

egrep -m 1 "svm|vmx" /proc/cpuinfo
svm -> AMD CPU capable of virtualization.
vmx -> Intel CPU capable of virtualization.

Here's a link about this: Linux: Find Out If CPU Support Intel VT and AMD-V Virtualization Support

morrison71 11-05-2013 07:54 AM

Quote:

Originally Posted by druuna (Post 5058691)
Your CPU also needs to support virtualization technology.

Does the following command generate any output:
Code:

egrep -m 1 "svm|vmx" /proc/cpuinfo
svm -> AMD CPU capable of virtualization.
vmx -> Intel CPU capable of virtualization.

Here's a link about this: Linux: Find Out If CPU Support Intel VT and AMD-V Virtualization Support

Thanks for your answer.

Quote:

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm arat xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
Quote:

model : 45
model name : Intel(R) Xeon(R) CPU E5-2407 0 @ 2.20GHz

druuna 11-05-2013 08:01 AM

You Intel CPU does support virtualization (vmx flag is found).

Assuming that the BIOS is correctly set, can you give us a more information?

- Is this an out-of-the-box/normal KVM installation?
- Which host is used?
- Which guest are you trying to install?
- How did you run the virt-intall command (which options etc)?

morrison71 11-05-2013 08:18 AM

Quote:

Originally Posted by druuna (Post 5058696)
You Intel CPU does support virtualization (vmx flag is found).

Assuming that the BIOS is correctly set, can you give us a more information?

- Is this an out-of-the-box/normal KVM installation?
- Which host is used?
- Which guest are you trying to install?
- How did you run the virt-intall command (which options etc)?

Thanks again for your help.
First of all sorry about my answer but this is the first time i try kvm so i do not know a lot of things.

I have a Red Hat Enterprise Linux Server 6.4 x64 installed. I am using the local RHEL CD/DVD-ROM as my yum repository.
I use this commands:
Code:

# yum install kvm
Quote:

yum install kvm
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
DVD-RHEL6-Repository | 3.9 kB 00:00 ...
centos | 1.1 kB 00:00
epel/metalink | 2.1 kB 00:00
epel | 4.2 kB 00:00
epel/primary_db | 5.6 MB 00:30
rpmforge | 1.9 kB 00:00
Setting up Install Process
Package kvm is obsoleted by qemu-kvm, trying to install 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package qemu-kvm.x86_64 2:0.12.1.2-2.355.el6 will be installed
epel/filelists_db | 7.8 MB 00:43
--> Processing Dependency: qemu-img = 2:0.12.1.2-2.355.el6 for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: seabios >= 0.6.1.2-20.el6 for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: vgabios-vmware for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: vgabios-stdvga for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: vgabios-qxl for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: vgabios for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.8.3)(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.8.2)(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.8.1)(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.6.0)(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.11.2)(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1(SPICE_SERVER_0.10.4)(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: /usr/share/sgabios/sgabios.bin for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: /usr/share/gpxe/virtio-net.rom for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: /usr/share/gpxe/rtl8139.rom for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: /usr/share/gpxe/rtl8029.rom for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: /usr/share/gpxe/pcnet32.rom for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: /usr/share/gpxe/e1000-0x100e.rom for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Processing Dependency: libspice-server.so.1()(64bit) for package: 2:qemu-kvm-0.12.1.2-2.355.el6.x86_64
--> Running transaction check
---> Package gpxe-roms-qemu.noarch 0:0.9.7-6.9.el6 will be installed
---> Package qemu-img.x86_64 2:0.12.1.2-2.355.el6 will be installed
---> Package seabios.x86_64 0:0.6.1.2-26.el6 will be installed
---> Package sgabios-bin.noarch 0:0-0.3.20110621svn.el6 will be installed
---> Package spice-server.x86_64 0:0.12.0-12.el6 will be installed
---> Package vgabios.noarch 0:0.6b-3.7.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
qemu-kvm x86_64 2:0.12.1.2-2.355.el6 DVD-RHEL6-Repository 1.3 M
Installing for dependencies:
gpxe-roms-qemu noarch 0.9.7-6.9.el6 DVD-RHEL6-Repository 219 k
qemu-img x86_64 2:0.12.1.2-2.355.el6 DVD-RHEL6-Repository 469 k
seabios x86_64 0.6.1.2-26.el6 DVD-RHEL6-Repository 91 k
sgabios-bin noarch 0-0.3.20110621svn.el6 DVD-RHEL6-Repository 6.6 k
spice-server x86_64 0.12.0-12.el6 DVD-RHEL6-Repository 326 k
vgabios noarch 0.6b-3.7.el6 DVD-RHEL6-Repository 42 k

Transaction Summary
================================================================================
Install 7 Package(s)

Total download size: 2.5 M
Installed size: 6.8 M
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------
Total 756 kB/s | 2.5 MB 00:03
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
file /usr/bin/qemu-img from install of qemu-img-2:0.12.1.2-2.355.el6.x86_64 conflicts with file from package kvm-qemu-img-83-262.el5.centos.4.x86_64
file /usr/share/man/man1/qemu-img.1.gz from install of qemu-img-2:0.12.1.2-2.355.el6.x86_64 conflicts with file from package kvm-qemu-img-83-262.el5.centos.4.x86_64

Error Summary
-------------
Code:

# yum install virt-manager libvirt libvirt-python python-virtinst
Quote:

Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package virt-manager-0.9.0-18.el6.x86_64 already installed and latest version
Package libvirt-0.10.2-18.el6.x86_64 already installed and latest version
Package libvirt-python-0.10.2-18.el6.x86_64 already installed and latest version
Package python-virtinst-0.600.0-15.el6.noarch already installed and latest version
Nothing to do
And the virt-install command is:
Code:

virt-install -r 2048 --accelerate -n UbuntuServer -f /var/lib/libvirt/images/guest.img --cdrom /datos/UbuntuServer_ISO/ubuntu-13.10-server-amd64.iso
Anyway if i use another command it always show me the same error.


Thanks again and i hope it helps!

druuna 11-05-2013 08:56 AM

Quote:

Originally Posted by morrison71 (Post 5058699)
I have a Red Hat Enterprise Linux Server 6.4 x64 installed. I am using the local RHEL CD/DVD-ROM as my yum repository.
I use this commands:
Code:

# yum install kvm
Code:

# yum install virt-manager libvirt libvirt-python python-virtinst

That looks correct. You might want to install virt-viewer as well.

Have a look at this link: CentOS / Redhat: Install KVM Virtualization Software

BTW: Do check if the correct KVM module are loaded:
Code:

lsmod | grep kvm
You use an Intel CPU, so the output should read:
Code:

kvm_intel    <some_number>  <some_number>
kvm          <some_number>  <some_number>  kvm_intel

Quote:

And the virt-install command is:
Code:

virt-install -r 2048 --accelerate -n UbuntuServer -f /var/lib/libvirt/images/guest.img --cdrom /datos/UbuntuServer_ISO/ubuntu-13.10-server-amd64.iso

I'm not sure about the virt-install command. I usually use something like this (split ovre multiple lines for readability):
Code:

virt-install \
  --name      UbuntuServer \
  --ram        2048 \
  --vcpus      2 \
  --os-type    linux \
  --disk      path=/var/lib/libvirt/images/guest.img,size=16 \
  --cdrom      /dev/cdrom

- About the green entry: Substitute 16 for the size in Gb's you want/need.
- About the blue entry: /dev/cdrom assumes a real cdrom player, if you want to use an image stored on your hd use something like this: --cdrom /path/to/iso

You can also run virt-install --prompt for an interactive install.

If the above doesn't work can you post the exact error message(s) that are produced?

morrison71 11-05-2013 09:11 AM

Quote:

Originally Posted by druuna (Post 5058715)
That looks correct. You might want to install virt-viewer as well.
Have a look at this link: CentOS / Redhat: Install KVM Virtualization Software

Quote:

Code:

yum install virt-viewer
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package virt-viewer.x86_64 0:0.5.2-18.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================
Package Arch Version Repository Size
=============================================================================================
Installing:
virt-viewer x86_64 0.5.2-18.el6 DVD-RHEL6-Repository 200 k

Transaction Summary
=============================================================================================
Install 1 Package(s)

Total download size: 200 k
Installed size: 763 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : virt-viewer-0.5.2-18.el6.x86_64 1/1
Verifying : virt-viewer-0.5.2-18.el6.x86_64 1/1

Installed:
virt-viewer.x86_64 0:0.5.2-18.el6

Complete!
Quote:

Originally Posted by druuna (Post 5058715)
BTW: Do check if the correct KVM module are loaded:
Code:

lsmod | grep kvm
You use an Intel CPU, so the output should read:
Code:

kvm_intel    <some_number>  <some_number>
kvm          <some_number>  <some_number>  kvm_intel


It does not show anything:

Code:

[root@xxxx ~]# lsmod | grep kvm
Code:

[root@xxxx ~]#

Quote:

Originally Posted by druuna (Post 5058715)
I'm not sure about the virt-install command. I usually use something like this (split ovre multiple lines for readability):
Code:

virt-install \
  --name      UbuntuServer \
  --ram        2048 \
  --vcpus      2 \
  --os-type    linux \
  --disk      path=/var/lib/libvirt/images/guest.img,size=16 \
  --cdrom      /dev/cdrom

Quote:

Originally Posted by druuna (Post 5058715)
- About the green entry: Substitute 16 for the size in Gb's you want/need.
- About the blue entry: /dev/cdrom assumes a real cdrom player, if you want to use an image stored on your hd use something like this: --cdrom /path/to/iso

You can also run virt-install --prompt for an interactive install.

If the above doesn't work can you post the exact error message(s) that are produced?

Code:

[root@xxxx ~]# virt-install --name UbuntuServer --ram 2048 --vcpus 2 --os-type linux --disk path=/var/lib/libvirt/images/guest.img,size=16 --cdrom /datos/UbuntuServer_ISO/ubuntu-13.10-server-amd64.iso
ERROR Host does not support any virtualization options.
Code:

[root@xxxx ~]# virt-install --prompt
ERROR Host does not support any virtualization options.



Again, thanks a lot for your help. It is very useful to me.

druuna 11-05-2013 09:30 AM

Quote:

Originally Posted by morrison71 (Post 5058722)
It does not show anything:

Code:

[root@xxxx ~]# lsmod | grep kvm
Code:

[root@xxxx ~]#

That must be the problem.

Try running:
Code:

# modprobe kvm
Check to see if the module is now available using the lsmod command given earlier.

dyasny 11-05-2013 09:41 AM

after you enable VT in BIOs, you have to do a full powercycle of the host, otherwise VT doesn't not really get enabled, even if the bios says it is.

morrison71 11-05-2013 09:46 AM

Quote:

Originally Posted by druuna (Post 5058730)
That must be the problem.

Try running:
Code:

# modprobe kvm
Check to see if the module is now available using the lsmod command given earlier.

Code:

[root@xxxx ~]# modprobe kvm
Code:

[root@xxxx ~]# lsmod | grep kvm
Quote:

kvm 316506 0
Code:

root@xxxx ~]# virt-install --name UbuntuServer --ram 2048 --vcpus 2 --os-type linux --disk path=/var/lib/libvirt/images/guest.img,size=16 --cdrom /datos/UbuntuServer_ISO/ubuntu-13.10-server-amd64.iso
ERROR Host does not support any virtualization options.


Thanks again!

---------- Post added 11-05-13 at 10:47 AM ----------

Quote:

Originally Posted by dyasny (Post 5058738)
after you enable VT in BIOs, you have to do a full powercycle of the host, otherwise VT doesn't not really get enabled, even if the bios says it is.

It was always enabled in the bios, it was not disabled. Anyway, i did a reboot.
Thanks!

druuna 11-05-2013 09:56 AM

The kvm_intel module is still missing.

I just noticed this:
Quote:

Transaction Check Error:
file /usr/bin/qemu-img from install of qemu-img-2:0.12.1.2-2.355.el6.x86_64 conflicts with file from package kvm-qemu-img-83-262.el5.centos.4.x86_64
file /usr/share/man/man1/qemu-img.1.gz from install of qemu-img-2:0.12.1.2-2.355.el6.x86_64 conflicts with file from package kvm-qemu-img-83-262.el5.centos.4.x86_64
Did you mix and match RHEL/CentOS versions 5 and 6? You cannot upgrade from version 5 to version 6! A fresh install is needed in that case.

This might be the reason why things don't work. Maybe you can try to remove all the kvm/qemu/libvirt related software that is installed and re-install kvm again. But if you did mix-and-match I would suggest a clean RHEL 6 (or CenOS 6) install and go from there.

morrison71 11-05-2013 10:20 AM

Quote:

Originally Posted by druuna (Post 5058751)
The kvm_intel module is still missing.

I just noticed this:Did you mix and match RHEL/CentOS versions 5 and 6? You cannot upgrade from version 5 to version 6! A fresh install is needed in that case.

This might be the reason why things don't work. Maybe you can try to remove all the kvm/qemu/libvirt related software that is installed and re-install kvm again. But if you did mix-and-match I would suggest a clean RHEL 6 (or CenOS 6) install and go from there.


Another friend uses CentOs repositories before. Can you tell me how to remove all the kvm/qemu/libvirt? I would like to try this. Otherwise i will have to reinstall RHEL.

Thanks a lot!

druuna 11-05-2013 10:43 AM

Quote:

Originally Posted by morrison71 (Post 5058767)
Another friend uses CentOs repositories before. Can you tell me how to remove all the kvm/qemu/libvirt? I would like to try this. Otherwise i will have to reinstall RHEL.

I would _strongly_ suggest to bite the bullet and do a fresh install. Mixing versions (5 and 6) and mixing RHEL and CentOS repo's is a very bad idea and it will give you problems along the way. These won't be limited to KVM!

That said: I was thinking of using yum to get rid of the installed packages, but now that it is confirmed that this is a mix-and-match system I'm not sure that will get rid of all the (old) packages.

If yum isn't familiar to you: 15 Linux Yum Command Examples – Install, Uninstall, Update Packages

morrison71 11-05-2013 11:44 AM

Quote:

Originally Posted by druuna (Post 5058782)
I would _strongly_ suggest to bite the bullet and do a fresh install. Mixing versions (5 and 6) and mixing RHEL and CentOS repo's is a very bad idea and it will give you problems along the way. These won't be limited to KVM!

That said: I was thinking of using yum to get rid of the installed packages, but now that it is confirmed that this is a mix-and-match system I'm not sure that will get rid of all the (old) packages.

If yum isn't familiar to you: 15 Linux Yum Command Examples – Install, Uninstall, Update Packages

Excellent. I will do a fresh install.
And before that, i would like to tell you what i am going to do so you can confirm me.

After the installation i will set the local RHEL CD/DVD-ROM as my yum repository because the system is not registered to Red Hat Subscription Management (http://www.ehowstuff.com/how-to-setu...age-on-rhel-6/).

Then i will run the next commands:
Code:

# yum install kvm
Code:

# yum install virt-manager libvirt libvirt-python python-virtinst
After that i will try the virt-install command to see what happens and i will post here.

Is it ok?

Thanks a lot for your help. You are very kind!

druuna 11-05-2013 12:14 PM

Before answering your questions: Is there a specific reason why you want to use RHEL? You are already aware that you don't have access to RHN and I'm just wondering if one of the RHEL clone's would be handier.

Server based alternatives for RedHat EL (free and 99.9% compatible):
- CentOS
- Scientific Linux

Consumer based alternative for RedHat EL (free, and geared toward home usage):
- Fedora

Quote:

Originally Posted by morrison71 (Post 5058807)
Excellent. I will do a fresh install.
And before that, i would like to tell you what i am going to do so you can confirm me.

After the installation i will set the local RHEL CD/DVD-ROM as my yum repository because the system is not registered to Red Hat Subscription Management (http://www.ehowstuff.com/how-to-setu...age-on-rhel-6/).

That's a nice howto. I personally use this method: RHEL local DVD Repo (from my blog here at LQ).

Quote:

Then i will run the next commands:
Code:

# yum install kvm
Code:

# yum install virt-manager libvirt libvirt-python python-virtinst

Running either of these two would suffice:
Code:

# yum install kvm virt-viewer virt-manager libvirt libvirt-python python-virtinst

- or -

# yum groupinstall KVM

Quote:

After that i will try the virt-install command to see what happens and i will post here.

Is it ok?
See the above comments and do let us know if it worked!


All times are GMT -5. The time now is 08:33 PM.