Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS - virtualization

Unable to power on VM from foreman.
I could create the VM but it gives me below error when trying to power on. I could see that the VM is created in host.
Failed to start abc.sdnlab.com: Call to virDomainCreateWithFlags failed: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules.
I have checked that kvm kernel module is loaded.
Any idea what can be done?

I got fix for this issue : the details of the issue fix are as follows :
KVM Software tools should be on the controller
patterns-sles-kvm_server - KVM Host Server 12-58.8
patterns-sles-kvm_server-32bit - KVM Host Server
patterns-sles-kvm_tools - KVM Virtualization Host and tools
patterns-sles-kvm_tools-32bit - KVM Virtualization Host and tools
qemu-kvm - Kernel-based Virtual Machine
virt-v2v - Convert a virtual machine to run on KVM
yast2-vm - Configure Hypervisor and Tools for Xen and KVM
check the hardware requirement as mentioned below:
1.1. Hardware Requirements¶
Currently, SUSE only supports KVM full virtualization on x86_64 hosts. KVM is designed around hardware virtualization
features included in AMD (AMD-V) and Intel (VT-x) CPUs. It supports virtualization features of chipsets, and PCI devices,
such as an I/O Memory Mapping Unit (IOMMU) and Single Root I/O Virtualization (SR-IOV)).
You can test whether your CPU supports hardware virtualization with the following command:
egrep '(vmx|svm)' /proc/cpuinfo
If this command returns no output, your processor either does not support hardware virtualization, or this feature has been disabled in the BIOS.
The following Web site identifies processors which support hardware virtualization:
how to enable the vx-t in virtual machine :
https://forum.ivorde.com/kvm-nested-in-vmware-esxi-5-5-enable-guest-hypervisor-vmx-svm-flags-without-vsphere-web-client-
t19773.html
GO to the VMS vmdk folders and edit .vmx file and add the following flag in that file and save it.
vhv.enable = "TRUE"
Follow the commands below to restart the VM and reboot the machine.
/vmfs/volumes/53071ba5-6f9682d4-5898-002590883ef6/SLES 12 VM # vim-cmd vmsvc/getallvms | grep -i sles
15 SLES-82 [datastore1] SLES 1/SLES 1.vmx sles11_64Guest vmx-08
59 SLES 12 VM [datastore1] SLES 12 VM/SLES 12 VM.vmx sles11_64Guest vmx-08
/vmfs/volumes/53071ba5-6f9682d4-5898-002590883ef6/SLES 12 VM # vim-cmd vmsvc/reload 59
/vmfs/volumes/53071ba5-6f9682d4-5898-002590883ef6/SLES 12 VM #
Reboot your machine and try to start your controller it will work.
Thanks
Nagesh

You need to check in BIOS and enable virtualization there ( I think it should be there under Security section).
The, do this to verify kvm module is loaded.
#lsmod | grep kvm
if kvm module is not loaded, you need to do #modprobe kvm
Check whether kvm is properly loaded, using #dmesg.
PS:
You may need to check whether libvirtd daemon is running. (For this you need to start, libvirtd daemon).
I think it is "service libvirtd start"

Related

Serial communication between QEMU host and guest

I'm trying to set up a pair of serial ports between my QEMU host (Debian Jessie x86_64) and guest (also Debian Jessie, but on ARM). Everything except the serial port part works.
I'm really new to QEMU so there might be a better way but I've tested the following flags when running QEMU:
-chardev tty,id=mytty,path=/dev/pts/2 (/dev/pts/2 & 3 are up with socat)
-chardev pty,id=mypty QEMU opens a PTY but when I try to read or write from host get permission denied.
In either case I can't find the ports in my guest. /dev/pts is empty and in /dev there are only tty and ttyAMA3. So, my problem is setting up communication in general and I'm especially curious on where the ports are on my guest.
I found a solution to my own question. First the device tree was incomplete so I needed to add 3 additional uart ports. That's the reason I could not find my ports in the guest.
Second, I needed to tell QEMU to use on of the ports as stdio: -append ... console=ttyAMA3 and -serial mon:stdio. Then I'm able to, with -serial pty, link QEMUs ttyAMA* to pts/* on the host.

Redirect Serial Output to SSH or Local File - Device Lacks Serial Port and Being Accessed via SSH

Hi guys my problem is as follows:
Environment - Im in a windows machine and connected via ssh to an ubuntu machine that is running a hypervisor https://github.com/siemens/jailhouse alongside ubuntu.
Problem:
The hypervisor in question dumps debug and "cell"(like guest VM's but not quite) outputs to a serial port, and the physical machine that is running the hypervisor lacks a serial port.
What I need to know if it is possible:
I wish to redirect that serial output to SSH back to me or dump to a file that I can "nano" later.
Thanks in advance
Regards
André Santos
You can't. The reason is that the output is written by the hypervisor, not by the operating system, through a specific serial driver implemented in the hypervisor itself.
Thus, the hypervisor does not have knowledge of the Linux filesystem, nor of the Linux drivers, and the only channels that it can use are a 8250-compliant serial line or (in case of x86) the VGA.
Side note: depending on your particular needs, you may want to wrap the Jailhoused Linux through an additional Qemu/KVM virtual machine. In this case, the output of Jailhouse (exceuted by the guest machine) is written on the console of the host machine, and it can be easily retrievable through the SSH connection.

Verifying CUDA-Capable GPU in Ubuntu

I downloaded and installed CUDA-7.5 and found that instruction that I need to check whether I have a CUDA-Capable GPU.
I did as
lin#lin-VirtualBox:/opt/caffe$ sudo update-pciids
Downloaded daily snapshot dated 2015-09-07 03:15:01
then why I type
lspci | grep -i nvidia
nothing comes out.
lin#lin-VirtualBox:/opt/caffe$ lspci | grep -i nvidia
lin#lin-VirtualBox:/opt/caffe$
I have NVIDIA graphic card GEFORCE GT750M.
What could be wrong?
My OS is Ubuntu14.04.
Thanks
It seems you are running in a VirtualBox VM (virtual machine) instance. With a typical VirtualBox setup, the graphics in the VM is virtualized; there is no physical GPU device present in the VM.
As a result, the GPU does not show up when you run lspci in the VM.
One possible approach to work around this would be to switch to a "baremetal" config; i.e. load Ubuntu directly on your laptop as the primary (or "host") OS, rather than in a VM. The GPU should show up that way.
Another possible approach would be to attempt to use VirtualBox PCI Passthrough to make the GPU "visible" in the VM. Whether or not this would work in a laptop scenario I don't know; there may be side effects of trying to pass through the laptop GPU to a VM; your laptop hypervisor and any other OS's would not have access to the GPU (or the laptop display) in this situation. I think there are a number of other requirements and restrictions with this approach. Your laptop hardware may or may not meet the requirements, and I think it is expected that the host OS uses some specific flavors of linux (kernel); you may have windows as the host OS on your laptop.
In any event, how to configure your machine with VirtualBox and/or PCI Passthrough is not a programming question, and I think is off-topic for SO. You might try askubuntu or another similar forum, for related questions.

Can KVM be used inside a GCE instance?

Is it possible to run a KVM virtual machine inside of a Google Compute Engine instance? Nested virtualization, in short?
As of right now, the virtualized environment the GCE instances run on doesn't offer the virtualization extensions KVM requires to function. During installation it does indicate so, and running:
sudo /etc/init.d/qemu-kvm start
[FAIL] Your system does not have the CPU extensions required to use
KVM. Not doing anything. ... failed!
PS - Even so, at least in theory, there's nothing preventing the execution of virtualized environments that do not depend on these extensions: Docker, QEMU (stand-alone), etc...

Need Oracle Solaris 10 SPARC VM template for VirtualBox

I have Windows 7 64 bit as host OS on which I've installed VirtualBox 4.2.16. Now I want to install Solaris 10 SPARC vm inside VirtualBox. Can anyone tell me from where can I download Oracle Solaris 10 SPARC VM template for VirtualBox?
This page lists only the 64 bit versions.
This page lists 'Oracle VM Templates for SPARC' but I'm not sure if these templates are for VirtualBox. Can anyone tell me if that will work or not?
Thanks,
AndyT
I do not think that VirtualBox does emulation. It does only virtualization. You would have to use QEMU (or similar software) to emulate SPARC on top of Intel hardware.
You can only use template on virtual box from Oracle.
Or use QEMU for simulation.

Resources