LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2016, 02:54 PM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
kvm_amd missing in CentOS 7 virtual machine


I have a host with Linux Mint 18, and it has KVM like so:

Code:
/proc/sys/dev/cdrom $ lsmod | grep -i kvm
kvm_amd                65536  4
kvm                   540672  1 kvm_amd
irqbypass              16384  1 kvm
I am installing kvm on a CentOS7 virtual machine (VM) so I can run another CentOS7 VM inside this VM!
No, this is not a typo. I am doing it for learning purposes.
There are two way to install virtualization like so:
Quote:
#yum group install "Virtualization Host"
or
# yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer
I tried both cases, but I am not able to install kvm_amd on my virtual machine.
Code:
[root@server1 ~]# modprobe kvm_amd
modprobe: ERROR: could not insert 'kvm_amd': Operation not supported

#from Centos7 VM, kvm_amd is missing!:
[root@server1 ~]# lsmod | grep -i kvm
kvm                   525409  0
What did I missed?
Thank you.

Last edited by fanoflq; 12-16-2016 at 02:55 PM.
 
Old 12-16-2016, 03:30 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You cannot run a VM in a VM.
 
Old 12-16-2016, 04:09 PM   #3
Coffee!!!
LQ Newbie
 
Registered: Dec 2016
Distribution: RHEL
Posts: 18

Rep: Reputation: Disabled
What you're trying to attempt is called nested virtualization and is not usually supported in consumer grade products like VirtualBox and VMware Player (do they still call it that?). What virtualization client are you using to host your CentOS 7 VM?
 
Old 12-16-2016, 04:41 PM   #4
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
You cannot run a VM in a VM.
Incorrect, IMHO.
 
Old 12-16-2016, 04:41 PM   #5
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Coffee!!! View Post
What you're trying to attempt is called nested virtualization and is not usually supported in consumer grade products like VirtualBox and VMware Player (do they still call it that?). What virtualization client are you using to host your CentOS 7 VM?
See OP at top.....
 
Old 12-19-2016, 09:18 AM   #6
Coffee!!!
LQ Newbie
 
Registered: Dec 2016
Distribution: RHEL
Posts: 18

Rep: Reputation: Disabled
The confusion for me is that you didn't explicitly say what platform were hosting the VM on. You just compared the VM to your KVM setup on your Mint host. So the explanation to your problem is that your VM doesn't have a virtualization bit. When you look at the modules currently loaded on your Mint Host, you see KVM is supported because you have an AMD processor with virtualization support. As soon as you create a guest(VM) on top of the KVM host, you're not going to see virtualization support because its a virtual CPU and there is a layer of abstraction that prevents the guest from seeing the actual hardware of the host. There's a nice article on Wikipedia about virtualization that I think you should read (both Intel and AMD sections): https://en.wikipedia.org/wiki/X86_vi...on_.28AMD-V.29
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6.7 - Missing md0 raid usao CentOS 2 04-22-2016 08:06 AM
[SOLVED] CentOS 5.4 missing repositories artur13 Red Hat 4 03-29-2010 05:21 PM
Missing some process I/O stats with CentOS 4.8 markseger Linux - Server 0 11-21-2009 08:52 AM
CentOS 5 missing dependency ALInux Linux - Software 2 06-15-2009 11:49 AM
xorgconfig missing on Centos--what do use for autoconfig of X pgb205 Red Hat 1 07-23-2008 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration