Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > x86 64-bit Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

x86 64-bit Users
For the discussion of Ubuntu on the AMD 64 platform.

 
Thread Tools Display Modes
Old November 3rd, 2006   #1
factor
Just Give Me the Beans!
 
Join Date: Aug 2006
Beans: 35
How-to: Qemu + Kqemu on Edgy AMD64

Here is how i got it working on Edgy for AMD64
Code:
sudo apt-get install qemu build-essential linux-headers-$(uname -r)
wget http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre9.tar.gz
tar xzf kqemu-1.3.0pre9.tar.gz
cd kqemu-1.3.0pre9
./configure --prefix=/usr --disable-gcc-check --kernel-path=/lib/modules/$(uname -r)/build/
make
sudo ./install.sh
sudo depmod
sudo modprobe kqemu
sudo dpkg-reconfigure linux-image-`uname -r`
And then, i made a script i run everytime i want to run qemu +kqemu, you have to make an icon for it in your start menu as it is thought to be run in gnome. If you want to run it in terminal replace "gksu" for "sudo":

Code:
gksu mknod /dev/kqemu c 250 0 
gksu chmod 666 /dev/kqemu
qemu-system-x86_64 -boot c -hda /path/to/your/image.qcow -m 512 -localtime -kernel-kqemu
-m 512 is the amount of ram, here is 512 mb, if you want 256 it would be -m 256, and so on.

Hope it helps.

Regards.
factor is offline   Reply With Quote
Old November 11th, 2006   #2
slid3r
First Cup of Ubuntu
 
Join Date: Nov 2006
Beans: 1
Re: How-to: Qemu + Kqemu on Edgy AMD64

Nice.

Last edited by slid3r; November 11th, 2006 at 10:15 PM..
slid3r is offline   Reply With Quote
Old November 17th, 2006   #3
Azrael Nightwalker
5 Cups of Ubuntu
 
Azrael Nightwalker's Avatar
 
Join Date: Jul 2006
Location: Kraków, Poland
Beans: 17
Ubuntu 9.04 Jaunty Jackalope
Send a message via Skype™ to Azrael Nightwalker
Re: How-to: Qemu + Kqemu on Edgy AMD64

This howto works also for 32-bit version
Azrael Nightwalker is offline   Reply With Quote
Old November 26th, 2006   #4
sureinlux
5 Cups of Ubuntu
 
sureinlux's Avatar
 
Join Date: Nov 2006
Location: India
My beans are hidden!
Ubuntu 7.10 Gutsy Gibbon
Talking Re: How-to: Qemu + Kqemu on Edgy AMD64

Hi, This works like a charm. Thanks a lot...
__________________
Linux User #398099 | Ubuntu User #11310 | Intrepid Ibex | amd64
sureinlux is offline   Reply With Quote
Old December 14th, 2006   #5
The Doc
First Cup of Ubuntu
 
The Doc's Avatar
 
Join Date: Apr 2006
Location: Berlin, Germany
Beans: 8
Send a message via ICQ to The Doc Send a message via MSN to The Doc
Re: How-to: Qemu + Kqemu on Edgy AMD64

woha, that did work, currently installing win98

This totally rocks, no dual booting for testing some code on windows - thanks!
__________________
http://milianw.de | html2text.php
The Doc is offline   Reply With Quote
Old December 25th, 2006   #6
prashmohan
First Cup of Ubuntu
 
Join Date: Jan 2005
Beans: 2
Re: How-to: Qemu + Kqemu on Edgy AMD64

I get this error when I modprobe kqemu

$ sudo modprobe kqemu [...u-1.3.0pre9]
FATAL: Error inserting kqemu (/lib/modules/2.6.15-25-686/misc/kqemu.ko):
Invalid module format


Does anyone know how to solve this or why it occurs?

P.S I am on a 32 bit platform
prashmohan is offline   Reply With Quote
Old January 17th, 2007   #7
redmoskito
First Cup of Ubuntu
 
Join Date: Jan 2007
Beans: 5
Re: How-to: Qemu + Kqemu on Edgy AMD64

Quote:
Originally Posted by prashmohan View Post
I get this error when I modprobe kqemu

$ sudo modprobe kqemu [...u-1.3.0pre9]
FATAL: Error inserting kqemu (/lib/modules/2.6.15-25-686/misc/kqemu.ko):
Invalid module format


Does anyone know how to solve this or why it occurs?

P.S I am on a 32 bit platform

I received the same error.

Also, when I compiled, I received the warning:

WARNING: could not find /home/ksimek/download/kqemu-1.3.0pre9/.kqemu-mod.o.cmd for /home/ksimek/download/kqemu-1.3.0pre9/kqemu-mod.o

I'm not sure if this is related
redmoskito is offline   Reply With Quote
Old January 17th, 2007   #8
enopepsoo
Ubuntu Extra Shot
 
enopepsoo's Avatar
 
Join Date: Apr 2006
Beans: 368
Edubuntu 7.04 Feisty Fawn
Arrow Re: How-to: Qemu + Kqemu on Edgy AMD64

nice one!

I should give this a go sometime and think about ditching vmware. (Those Bastards). On the other hand, I really have no incentive to do so...
enopepsoo is offline   Reply With Quote
Old February 13th, 2007   #9
test
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 17
Re: How-to: Qemu + Kqemu on Edgy AMD64

did someone really test qemu + kqemu on amd64? everytime I boot up a guest it crashes and dmesg shows up the module received a General Protection exception 0x0d
test is offline   Reply With Quote
Old March 25th, 2007   #10
daigidan
5 Cups of Ubuntu
 
Join Date: Jun 2006
Beans: 21
Re: How-to: Qemu + Kqemu on Edgy AMD64

For those interested in using checkinstall to create a .deb, I was able to get it working on amd64 by replacing the "./install.sh" with the following:

Code:
checkinstall --exclude=/lib/modules/$(uname -r)/modules.usbmap,/lib/modules/$(uname -r)/modules.alias,/lib/modules/$(uname -r)/modules.ccwmap,/lib/modules/$(uname -r)/modules.dep,/lib/modules/$(uname -r)/modules.ieee1394map,/lib/modules/$(uname -r)/modules.inputmap,/lib/modules/$(uname -r)/modules.isapnpmap,/lib/modules/$(uname -r)/modules.ofmap,/lib/modules/$(uname -r)/modules.pcimap,/lib/modules/$(uname -r)/modules.seriomap,/lib/modules/$(uname -r)/modules.symbols,/lib/modules/$(uname -r)/modules.usbmap
This works around errors when the package is installed stating that these files belong to the kernel image package and are trying to be overwritten (I hate force installs). I have no idea if this will vary from system to system. ;]
daigidan is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:00 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry