Bug 1326561 - Vagrant up fails if virtualization is disabled in BIOS, need to document
Summary: Vagrant up fails if virtualization is disabled in BIOS, need to document
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Development Kit (CDK)
Classification: Red Hat
Component: documentation
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: beta4
: 2.0
Assignee: Vikram Goyal
QA Contact: David Kutálek
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-13 04:31 UTC by Pavan
Modified: 2016-10-27 00:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-27 10:41:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Pavan 2016-04-13 04:31:18 UTC
Description of problem:
Vagrant up fails with error if virtualization is disabled in BIOS


Steps to Reproduce:
Disable virtualization in BIOS setting and try "vagrant up"

Additional info:

### Vagrant up fails if Virtualization is disabled by the bios.
--------------------------------------------------------------------------
[pavan@dhcp35-202 rhel-ose]$ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default:  -- Name:              rhel-ose_default
==> default:  -- Domain type:       kvm
==> default:  -- Cpus:              2
==> default:  -- Memory:            1024M
==> default:  -- Management MAC:    
==> default:  -- Loader:            
==> default:  -- Base box:          cdkv2
==> default:  -- Storage pool:      default
==> default:  -- Image:             /var/lib/libvirt/images/rhel-ose_default.img (41G)
==> default:  -- Volume Cache:      default
==> default:  -- Kernel:            
==> default:  -- Initrd:            
==> default:  -- Graphics Type:     vnc
==> default:  -- Graphics Port:     5900
==> default:  -- Graphics IP:       127.0.0.1
==> default:  -- Graphics Password: Not defined
==> default:  -- Video Type:        cirrus
==> default:  -- Video VRAM:        9216
==> default:  -- Keymap:            en-us
==> default:  -- TPM Path:          
==> default:  -- INPUT:             type=mouse, bus=ps2
==> default:  -- Command line : 
Error while creating domain: Error saving the server: Call to virDomainDefineXML failed: invalid argument: could not find capabilities for domaintype=kvm 
--------------------------------------------------------------------------


We can confirm that CPU actually supports virtualization but is disabled in BIOS by running virt-host-validate on a Fedora system:
--------------------------------------------------------------------------
[root@dhcp35-202 ~]# virt-host-validate 
  QEMU: Checking for hardware virtualization                                 : PASS
  QEMU: Checking if device /dev/kvm exists                                   : FAIL (Check that the 'kvm-intel' or 'kvm-amd' modules are loaded & the BIOS has enabled virtualization)
  QEMU: Checking if device /dev/vhost-net exists                             : PASS
  QEMU: Checking if device /dev/net/tun exists                               : PASS
   LXC: Checking for Linux >= 2.6.26                                         : PASS
--------------------------------------------------------------------------


### Need to enable virtualization for ex. Intel VT(if using Intel processor) in the bios setting. It would be better to document this error and steps to enable virtualization in the bios setting, maybe in the troubleshooting section of the CDK install guide.

Comment 1 Chris Negus 2016-04-20 03:57:42 UTC
I added a note to Chapter 6 "Troubleshooting Problems with the CDK" that explains the error condition and the need to enable Virtualization Support in the BIOS to overcome the problem.

The document is ready to publish.


Note You need to log in before you can comment on or make changes to this bug.