0

I've been searching around here but didn't found a proper answer.

I have problems to start a 64bit (ubuntu-amd64) guest system on a 32bit ubuntu host, using qemu.

I've made sure that the kvm kernel modules are available:

lsmod | grep kvm
kvm
kvm_amd

Also I've made sure, that my CPU supports hardware virtualization:

grep svm /proc/cpuinfo
... svm ....

I try to start the vm using the following command. I've simplified it for this test in a way that it has only a CDROM drive:

qemu-system-x86_64 -cdrom ubuntu-12.04.2-desktop-amd64.iso

After the bootsplash of ubuntu has been shown I got the error message:

This kernel requires an x86-64 CPU, but only detected an i686 CPU Unable to boot - please use a kernel appropriate for your CPU

What am I doing wrong?

7
  • maybe here are some useful answers.
    – Gizmo
    Aug 12, 2013 at 9:06
  • @Gizmo Thx for the link. It was helpful but I'm still unable to run the machine. Have done all that steps in the qemu tutorials. As far as I understood them the cmd above should just work. Maybe my system lacks of a fundamental feature.
    – hek2mgl
    Aug 12, 2013 at 9:12
  • you need to run without the -KVM switch, add -no-kvm, it should work but it's so slow it's a pain. Also what CPU do you have? Maybe I can look further into details if that won't work. Try also specifying the CPU with the -cpu switch.
    – Gizmo
    Aug 12, 2013 at 9:14
  • @Gizmo Yes, now it starts to boot but it's sooooooooooo slow. All the (guest) kernel says is 'soft lockup' :) Host CPU calls itself AMD Athlon(tm) Neo X2 Dual Core Processor L325
    – hek2mgl
    Aug 12, 2013 at 9:19
  • well, unless you run a 64bit kernel, -no-kvm is the only option. I'll add this as an answer.
    – Gizmo
    Aug 12, 2013 at 9:20

1 Answer 1

4

you need to run without the -KVM switch, add -no-kvm, it should work but it's so slow it's a pain. unless you run a 64bit kernel, -no-kvm is the only option to run a 64bit guest on a 32bit kernel.

I don't know a (100% working) qemu solution but I know VirtualBox and VMWare can do it.

7
  • Where do you have this information from? The qemu manuals doesn't say so
    – hek2mgl
    Aug 12, 2013 at 9:22
  • source
    – Gizmo
    Aug 12, 2013 at 9:25
  • Nice, in that article they say that it is working with virtualbox. And yes, with virtualbox it is working. Didn't had expected this. %)
    – hek2mgl
    Aug 12, 2013 at 9:32
  • Will wait a little bit unless I mark the answer as accepted because I still hope to get some more input regarding a qemu solution.. But many thx for your help!
    – hek2mgl
    Aug 12, 2013 at 9:35
  • maybe I don't know a qemu solution but I know VirtualBox and VMWare can do it.
    – Gizmo
    Aug 12, 2013 at 9:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .