Skip to contentSkip to conversation

Raspberry ARM with 32-bit guest

Qemu-devel Benito 4 participants 5 messages Apr 4, 2013 – Apr 5, 2013

lore
Share & tools
lore

Benito

author
#0 lore raw

Hi

I know this might absurd, but
I'm trying to run a 32-bit guest on a Raspberry Pi - Raspbian OS - Debian Wheezy ARM I have used :

qemu-img create -f raw harddrive.raw 700M
qemu -hda harddrive.raw -cdrom fedora14.iso

I've installed qemu via apt-get install qemu on the Pi.

After I do the 2nd command, the guest os starts up , but soon consumes 100% cpu , and then hangs. Tried with puppy 511 , centos6.3 minimal , fedora14

Is there a way to run any of these in "invisible" mode or user mode , and get past this obstacle.. ?

Can I create this guest on a faster machine , and clone itto the Pi's qemu that runs ARM ?

Also am I missing something regarding the creation of the guest? I don't need a GUI for the guest, just need to be able to get to it and execute commands. Please could someone point me in the right direction ?

Kind Regards
Benito

#1 lore raw

Hi,

Am 04.04.2013 13:06, schrieb Benito:

Quoted 9 lines

I know this might absurd, but
I'm trying to run a 32-bit guest on a Raspberry Pi - Raspbian OS - Debian Wheezy ARM
I have used :

qemu-img create -f raw harddrive.raw 700M
qemu -hda harddrive.raw -cdrom fedora14.iso

I've installed qemu via apt-get install qemu on the Pi.

You're not providing sufficient details for the upstream community to help you, so CC'ing the Debian maintainer. "qemu" sounds rather old, it's qemu-system-i386 since several versions already.

Did you check that you have sufficient RAM on your Raspi? Or disk space on your SD card / USB disk? Disk images are created sparse, and when the host runs out of resources lots of things can happen.

Quoted 6 lines

After I do the 2nd command, the guest os starts up , but soon consumes 100% cpu , and then hangs. Tried with puppy 511 , centos6.3 minimal , fedora14

Is there a way to run any of these in "invisible" mode or user mode , and get past this obstacle.. ?

qemu-i386 can execute individual Linux binaries, with a bunch of known issues. Might or might not work for you - you don't say what you actually want to do.

Quoted 2 lines

Can I create this guest on a faster machine , and clone itto the Pi's qemu that runs ARM ?

Yes. The disk image is just a file.

Regards,
Andreas

Quoted 7 lines

Also am I missing something regarding the creation of the guest? I don't need a GUI for the guest, just need to be able to get to it and execute commands.
Please could someone point me in the right direction ?

Kind Regards
Benito

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw
Quoted 8 lines · Andreas Färber

Hi,

Am 04.04.2013 13:06, schrieb Benito:

Quoted 5 lines

I know this might absurd, but
I'm trying to run a 32-bit guest on a Raspberry Pi - Raspbian OS - Debian Wheezy ARM
I have used :

Quoted 9 lines
Quoted 4 lines

qemu-img create -f raw harddrive.raw 700M
qemu -hda harddrive.raw -cdrom fedora14.iso

I've installed qemu via apt-get install qemu on the Pi.

You're not providing sufficient details for the upstream community to help you, so CC'ing the Debian maintainer. "qemu" sounds rather old, it's qemu-system-i386 since several versions already.

qemu-system-i386 is likely to be broken on arm hosts, I have never been able to boot a Linux distribution further than grub. Other architectures seems to work better though.

Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net
#3 lore raw
Quoted 3 lines · Aurelien Jarno

qemu-system-i386 is likely to be broken on arm hosts, I have never been able to boot a Linux distribution further than grub. Other architectures seems to work better though.

Try making the guest CPU a 486 -- we've found in the past that something in early boot divides by zero based on RDTSC values ending up too close together [cf some comments by David Gilbert in https://bugs.launchpad.net/qemu-linaro/+bug/893208]

I don't know if this is the result of the host CPU just being too slow or of our RDTSC emulation not being very good...

-- PMM

author
#4 lore raw

I've tried , no difference. Same result for puppy, centos and fedora. CPU seems to be 99% used and nothing happens.

Quoted 15 lines · Peter Maydell
Quoted 3 lines · Aurelien Jarno

qemu-system-i386 is likely to be broken on arm hosts, I have never been able to boot a Linux distribution further than grub. Other architectures seems to work better though.

Try making the guest CPU a 486 -- we've found in the past that something in early boot divides by zero based on RDTSC values ending up too close together [cf some comments by David Gilbert in https://bugs.launchpad.net/qemu-linaro/+bug/893208]

I don't know if this is the result of the host CPU just being too slow or of our RDTSC emulation not being very good...

-- PMM