LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-16-2016, 10:23 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
KVM-capable machine?


Hi,

I'm planning on fiddling with KVM, since up until now, I've only used VirtualBox for virtualization.

I have a book about virtualization using KVM, and in the introductory chapter, it says to first check the processors' capacities. This looks OK on my sandbox machine, an old HP Compaq workstation:

Code:
# egrep '^flags.*(vmx|svm)' /proc/cpuinfo 
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch lbrv
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch lbrv
On the other hand, I get a "kvm: disabled by bios" error message on bootup. I took a peek in the BIOS, but there seems to be no virtualization option to enable.

Does that mean that's it? No KVM on this machine?
 
Old 02-16-2016, 11:16 AM   #2
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 67

Rep: Reputation: 11
Hmmm in the BIOS, look for Intel VT-x if your cpu is Intel-based or AMD-V if it's AMD. Enable that and then you have to load kvm-intel or kvm-amd module before using kvm with qemu
 
1 members found this post helpful.
Old 02-16-2016, 11:34 AM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I'll quote myself.

Quote:
Originally Posted by kikinovak View Post
I took a peek in the BIOS, but there seems to be no virtualization option to enable.
 
Old 02-16-2016, 11:50 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
which model is the workstation? maybe we can find something related about it...

Quote:
Originally Posted by kikinovak View Post
I get a "kvm: disabled by bios" error message on bootup
in which part of the boot you got that message?
do you have it when you do a "modprobe kvm"?
 
1 members found this post helpful.
Old 02-16-2016, 12:13 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Unless you have virtualization capabilities then you won't have kvm at all. Are you on a Celeron based machine?
 
Old 02-16-2016, 12:36 PM   #6
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by ponce View Post
which model is the workstation? maybe we can find something related about it...


in which part of the boot you got that message?
do you have it when you do a "modprobe kvm"?
It's an HP Compaq DC5850.
 
Old 02-16-2016, 12:37 PM   #7
philanc
Member
 
Registered: Jan 2011
Posts: 308

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by kikinovak View Post
I'll quote myself.
Quote:
I took a peek in the BIOS, but there seems to be no virtualization option to enable.
Maybe "I took a peek" suggested that you gave a cursory look...

Just in case, in some BIOS, the VT-related options are under "Security" or oddly under "Power".

Beyond that,
- in some older BIOS, VT was just silently blocked by enabling Intel AMT,
- in others, VT was disabled when DEP (Data Execution Prevention - Intel XD or AMD NX) was enabled (*, **)

You may have a BIOS option for one of these and want to try.

(*) This DEP thing is strange because it looks like in more recent machines, on the contrary, it must be enabled, at least for Hyper-V -- see
http://blogs.technet.com/b/iftekhar/...n-hyper-v.aspx

(**) It is strongly suggested in this document and at other places to power off then power on the PC after having changed the DEP setting. From the link above:
Quote:
When you enable hardware assisted virtualization (Intel VT or AMD AMD-V) in the BIOS, you must TURN THE SYSTEM OFF. NOT REBOOT. OFF. If you don’t power cycle the system completely, you will not enable hardware assisted virtualization on the majority of systems in the market.
If nothing works and no BIOS update is available at HP support, you may be out of luck

As a side note, I really would like to understand how some code executed at boot time can permanently lock a function in the CPU. AFAIK, the BIOS is used only at boot and no longer accessed once the kernel starts. So how come the kernel cannot reconfigure the CPU as it sees fit?!?

Anyway, HTH

Phil

Last edited by philanc; 02-16-2016 at 12:39 PM. Reason: markup typo
 
2 members found this post helpful.
Old 02-16-2016, 12:50 PM   #8
philanc
Member
 
Registered: Jan 2011
Posts: 308

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by kikinovak View Post
It's an HP Compaq DC5850.
The BIOS guide for dc5850 [1] says that there is a VT option in Security on some models
[1] http://h20565.www2.hp.com/hpsc/doc/p...r_na-c01361573

Quote:
Virtualization Technology (some models) (enable/disable) Controls the virtualization features of the processor. Changing this setting requires turning the computer off and then back on.
Maybe you don't have the right model
 
2 members found this post helpful.
Old 02-16-2016, 12:55 PM   #9
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by philanc View Post
Maybe "I took a peek" suggested that you gave a cursory look...

Just in case, in some BIOS, the VT-related options are under "Security" or oddly under "Power".
You're a star. I just found "Virtualization > Enable/Disable", oddly filed under "System Security" (WTF?). It's enabled now, and everything works OK.

Thanks very much, everybody.
 
  


Reply



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
Is Slackware 14.1 32 bit capable of handling multiple core processor on a 64 bit machine? sinar.kk Slackware 11 01-12-2016 06:06 AM
KVM machine crash Envite Linux - Virtualization and Cloud 4 08-15-2014 03:22 PM
Hot Backup KVM machine yeayu Linux - Virtualization and Cloud 10 10-20-2011 02:36 PM
how to determine KVM capable for computer without knowing /proc/cpuinfo btncix Linux - Virtualization and Cloud 2 11-20-2009 09:39 AM
LXer: Vista Capable Lawsuit is Too Capable LXer Syndicated Linux News 0 11-23-2008 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:36 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
Open Source Consulting | Domain Registration