LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2005, 07:50 PM   #31
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30

wow, good deal -- a virtual os for only $7.50.

i am amazed that you were able to get the printer to work in qemu. goes to show that it is a quality piece of software.

peace.
 
Old 09-04-2007, 03:38 PM   #32
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Hello there.
First of all, let me congratulate you on an excellent guide. Methinks this should be linked to from the qemu site, so people like me don't end up finding it thrô the google

I have a slight problem. Well it's not really a problem, it's more like an inconvenience: the inconvenience is that whenever I type the following
$qemu -cdrom ubuntu-7.04-desktop-desktop-i386.iso -hda ubuntu.img -boot d -k no
(ok, I didn't quite follow your guide because I don't have a windows disc ) I get the following message:
Could not configure /dev/rtc to have a 1024Hz timer. This isn't a fatal error, but for better emulation accuracy either use a 2.6 or type "echo 1024 > /proc/sys/dev/rtc/max-user-freq" as root.
»(I have a 2.6.21.5-smp kernel, btw)«
You don't have enough space in /dev/shm for the 128MB of QEMU virtual RAM. To have more space available provided you have enough RAM and swap, do as root
umount /dev/shm
mount -t tmpfs -o size=144m none /dev/shm
or disable the accelerator module with -no-kqemu
$

And since I suspect it's relevant, I post here my fstab:
Code:
/dev/hda3	swap		swap	defaults			 0 0
/dev/hda1	/		ext3	defaults			 1 1
/dev/hda4	/home		reiserfs defaults			 1 2
/dev/hda2	/mnt/winxp	vfat	rw,user,loop,noauto,offset=32256 0 0
none		/dev/shm	tmpfs	defaults			 0 0
/dev/sda1	/mnt/widget	vfat	defaults			 1 0
/dev/cdrom	/mnt/cdrom	auto	noauto,users,ro			 0 0
/dev/fd0	/mnt/floppy	auto	noauto,users			 0 0
devpts		/dev/pts	devpts	gid=5,mode=620			 0 0
proc		/proc		proc	defaults			 0 0
So could anyone suggest some more suitable values to go in here, if indeed that's what to do, please?
RESOLUTION of the »INCONVENIENCE«.
change that /dev/shm line up there to the following:
none /dev/shm tmpfs size=128M 0 0
I never knew about the "size=" function

Last edited by wilsonsamm; 09-04-2007 at 04:10 PM. Reason: Resolution.
 
Old 09-04-2007, 03:44 PM   #33
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Also, the kqemu module seems not to be activated. It seems so because qemu tells me so:
Could not open /dev/kqemu - QEMU acceleration layer not activated.
And the emulation is quite slow.

I have done »modprobe kqemu« and rebooted, but this message keeps coming back. Installation of an operating system on a virtual machine takes one year to complete.
 
Old 09-05-2007, 08:37 AM   #34
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by wilsonsamm View Post
I have a slight problem.
The tmpfs size is usually set to half the size of your RAM.

You can see the size of the tmpfs with the df command.

You can reset the size in one of the boot scripts in /etc/init.d/ (you will have to search around) or

you can restrict the amount of ram that qemu uses to megs = (1/2 x RAM) - 1 with the -m option, ie,

qemu -m megs -cdrom ..... etc
 
Old 09-14-2007, 06:13 PM   #35
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Thanks, John Hamiltion.

Quote:
Originally Posted by wilsonsamm View Post
Also, the kqemu module seems not to be activated. It seems so because qemu tells me so:
Could not open /dev/kqemu - QEMU acceleration layer not activated.
And the emulation is quite slow.

I have done »modprobe kqemu« and rebooted, but this message keeps coming back. Installation of an operating system on a virtual machine takes one year to complete.
Further research into this problem on my particular system: dmesg | less reveals kqemu to be activated. I recompiled qemu, when ./configure confirmed that kqemu was indeed activated.
"Aha", I thôt, "qemu can't open /dev/kqemu. Maybe it's a permission fault!"
But, alas, even running qemu with root permissions doesn't help. OK, so it doesn't report an error trying to open the device node, but no speed improvements either.

Anyone know what the problem could be?
 
Old 11-22-2008, 12:03 AM   #36
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Quote:
dmesg | less reveals kqemu to be activated.
Yes. kqemu kernel module is loaded.

I've never tried to run Qemu as root

Quote:
Anyone know what the problem could be?
FWIW I just now my 2nd Qemu (on a 2nd, a later computer with Slackware 12.1) which could not open /dev/kqemu

whereas my older machine with Slackware 12.0 with Qemu did not have the /dev/kqemu problem

/dev/kqemu file permissions for the o (other) are rw on old machine

on same file of new machine there are no o permissions there are only permissions for u and for g

(as root) chmod o+rw

made it work. I manually load kqemu the next root owned /usr/local/bin/kqemu_do file is in my path is executable

I have a sudo entry for my user for /usr/local/bin/kqemu_do

note the chmod o+rw

But do not do this because I so far did it (someone may write something terrible onto me)

security security security

As soon as I get the **secure** way to do this, my old way is discarded.

Code:
#!/bin/sh
# kqemu accelerator
#
#

kqemu_start() {
  # If kqemu module is not loaded, load it:
      echo "Loading Kqemu accelerator:  /sbin/modprobe kqemu"
      /sbin/modprobe kqemu
#      echo 1024 > /proc/sys/dev/rtc/max-user-freq
      sleep 1
      chmod o+rw /dev/kqemu
}

kqemu_stop() {
      echo "Unloading Kqemu accelerator:  /sbin/modprobe -r kqemu"
      /sbin/modprobe -r kqemu
}


case "$1" in
'start')
  kqemu_start
  ;;
'stop')
  kqemu_stop
  ;;
*)
  echo "usage $0 start|stop"
esac
Alan.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
qemu running linux under windows linuxmandrake Linux - Software 1 10-18-2005 11:34 AM
anyone got winme running via qemu darkleaf Linux - Software 3 04-15-2005 04:36 AM
How can I use Qemu in Windows? dustin_wielenga Linux - General 3 03-28-2005 01:21 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-05-2005 12:25 AM
Emulating Windows using Qemu greek Linux - Software 3 08-16-2004 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:00 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