You are not logged in.

#1 2012-03-15 10:39:04

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

[SOLVED] problem with qemu

hi all! big_smile

i'm trying to install debian on virtual disk in qemu but i get this error

[egidio@localhost laboratorio]$ qemu -hda ./disco.img -cdrom ./debian-6.0.4-i386-netinst.iso -boot d
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
No accelerator found!

Last edited by Aegidius (2012-03-22 08:37:04)

Offline

#2 2012-03-15 10:51:25

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: [SOLVED] problem with qemu

Did you modprobe kvm and either kvm-intel or kvm-amd?

Offline

#3 2012-03-15 11:05:19

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Re: [SOLVED] problem with qemu

how can i do that?

Offline

#4 2012-03-15 11:12:52

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] problem with qemu

For KVM see here: https://wiki.archlinux.org/index.php/KVM (note it has an Italian page)
Also see here: https://wiki.archlinux.org/index.php/Qemu (unfortunately no Italian page)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2012-03-15 11:18:53

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Re: [SOLVED] problem with qemu

thank you smile

i get this error sad

[egidio@localhost ~]$ sudo modprobe kvm-amd
ERROR: could not insert 'kvm_amd': Operation not supported

Offline

#6 2012-03-15 11:26:05

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] problem with qemu

What is the output of this?

grep -E "(vmx|svm)" --color=always /proc/cpuinfo

Also see this bit of the kvm page:

If modprobing kvm succeeds, but modprobing kvm-intel or kvm-amd fails (but /proc/cpuinfo claims that hardware acceleration is supported), check your BIOS settings. Some vendors (especially laptop vendors) disable these processor extensions by default. To determine whether there's no hardware support or there is but the extensions are disabled in BIOS, the output from dmesg after having failed to modprobe will tell.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#7 2012-03-15 13:35:42

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Re: [SOLVED] problem with qemu

[egidio@localhost ~]$ grep -E "(vmx|svm)" --color=always /proc/cpuinfo
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc arch_perfmon bts aperfmperf pni monitor vmx est tm2 xtpr pdcm dts
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc arch_perfmon bts aperfmperf pni monitor vmx est tm2 xtpr pdcm dts

VT is enabled in the BIOS.

Offline

#8 2012-03-15 14:02:06

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED] problem with qemu

I'm a bit stuck then. I use intel and those steps all worked for me (as far as I remember), so I'm not sure what else it could be.
Just to be sure, you did modprobe kvm first, didn't you? Are you running the standard kernel? If not check that it supports kvm.

You may find more info. here http://www.linux-kvm.org/page/Main_Page I'd look for your specific processor to see if there's anything that needs to be done.

I am a little unsure on your first qemu command. I thought you needed qemu-kvm for it to require kvm, or at least run with -enable-kvm. It was a year or so ago that I set it up though, so I may be out of date.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#9 2012-03-22 08:04:00

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Re: [SOLVED] problem with qemu

My teacher says to install kvmmode, but I don't know how to do it sad

Can you please help me? I have got the laptop in my signature.

Offline

#10 2012-03-22 08:33:04

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: [SOLVED] problem with qemu

You have an Intel chip so run this command:

sudo modprobe kvm-intel

Offline

#11 2012-03-22 08:36:46

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Re: [SOLVED] problem with qemu

I solved adding kvm-intel to MODULES array in /etc/rc.conf. You should restart PC.

Last edited by Aegidius (2012-03-22 08:40:17)

Offline

#12 2012-03-22 10:20:58

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: [SOLVED] problem with qemu

Or just run modprobe instead of rebooting, anyway good that you solved it!

Offline

Board footer

Powered by FluxBB