Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: build qemu from cvs (incl. accelerator)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Debentoo_Gao
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2003
Posts: 85
Location: Shanghai,China

PostPosted: Sun Mar 13, 2005 4:02 am    Post subject: Reply with quote

pussi wrote:
I just realized that it don't work with me eiter :oops: :oops:

I know it should work as it reads in Qemu acceleration module manual, but for some reason it don't. :(


It's so strange that it works now after I reemerge qemu-cvs :) :) :)
_________________
More Love~~More Dream~~More Happiness

Free Your Mind~~Free Your Body~~Free Your Life

http://www.myblue.ws
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Sun Mar 13, 2005 9:26 am    Post subject: Reply with quote

Debentoo_Gao wrote:
pussi wrote:
I just realized that it don't work with me eiter :oops: :oops:

I know it should work as it reads in Qemu acceleration module manual, but for some reason it don't. :(


It's so strange that it works now after I reemerge qemu-cvs :) :) :)
Yeah, but you have to recompile qemu every time you reboot your system to make it work again. :P
Back to top
View user's profile Send private message
jdoe
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2003
Posts: 122
Location: Italy - Florence - Empoli

PostPosted: Sun Mar 13, 2005 4:19 pm    Post subject: Reply with quote

works for me, replacing

mknod /dev/kqemu c 250 0

with

mknod /dev/kqemu c 241 0

just ls -l /dev/kqemu after emerged it...

crw-rw-rw- 1 root root 241, 0 Mar 13 16:46 /dev/kqemu

see 241 not 250.

John
_________________
me
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Sun Mar 13, 2005 5:51 pm    Post subject: Reply with quote

Thanks I'll try that. :)
The manual said 250 so I assumed that it would be correct :P
Back to top
View user's profile Send private message
Debentoo_Gao
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2003
Posts: 85
Location: Shanghai,China

PostPosted: Wed Mar 16, 2005 4:14 pm    Post subject: Reply with quote

jdoe wrote:
works for me, replacing

mknod /dev/kqemu c 250 0

with

mknod /dev/kqemu c 241 0


just ls -l /dev/kqemu after emerged it...

crw-rw-rw- 1 root root 241, 0 Mar 13 16:46 /dev/kqemu

see 241 not 250.

John


Thanks :) It works now:) :) :)
_________________
More Love~~More Dream~~More Happiness

Free Your Mind~~Free Your Body~~Free Your Life

http://www.myblue.ws
Back to top
View user's profile Send private message
destr0yr
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 80
Location: Kelowna, BC.

PostPosted: Thu Mar 17, 2005 8:41 am    Post subject: Reply with quote

... maybe i'm missing something (or just overly tired), but when i run "qemu -user-net -m 384 -hda myimage.img -cdrom /dev/cdrom1 -boot d", not much appears to be happening. my cpu jumps to 99% and it just sits there.. am i supposed to do something? :?:
Back to top
View user's profile Send private message
jdoe
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2003
Posts: 122
Location: Italy - Florence - Empoli

PostPosted: Thu Mar 17, 2005 11:32 am    Post subject: Reply with quote

now, with recent cvs versions, I have this problem too...
cpu at 100% and nothing happening...
_________________
me
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Thu Mar 17, 2005 5:30 pm    Post subject: Reply with quote

I got this:
Code:
 * Copying qemu from /mnt/store/gentoo/distfiles/cvs-src ...
 * CVS module qemu is now in /var/tmp/portage/qemu-cvs-0.0.1/work
>>> Unpacking kqemu-0.6.2-1.tar.gz to /var/tmp/portage/qemu-cvs-0.0.1/work/qemu
patching file kqemu/install.sh
patching file kqemu/kqemu.h
>>> Source unpacked.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-emulation_-_qemu-cvs-0.0.1-30208.log"

mkdir:     /root/.ssh
--------------------------------------------------------------------------------
Back to top
View user's profile Send private message
Boris27
Guru
Guru


Joined: 05 Nov 2003
Posts: 562
Location: Almelo, The Netherlands

PostPosted: Sun Mar 20, 2005 9:05 pm    Post subject: Reply with quote

Code:
>>> emerge (1 of 1) app-emulation/qemu-cvs-0.0.1 to /
>>> md5 src_uri ;-) kqemu-0.6.2-1.tar.gz
>>> Unpacking source...
 * Fetching CVS module qemu into /usr/portage/distfiles/cvs-src ...
 * Warning: The SSH host key of the remote server will not be verified.
 * A temporary known hosts list will be used.
 * Running  cvs -q -f -z4 -d ":ext:anoncvs@savannah.gnu.org:/cvsroot/qemu" checkout  qemu
Warning: Permanently added 'savannah.gnu.org,199.232.41.3' (RSA) to the list of known hosts.
cvs [checkout aborted]: cannot make directory qemu: Permission denied

!!! ERROR: app-emulation/qemu-cvs-0.0.1 failed.
!!! Function cvs_fetch, Line 447, Exitcode 1
!!! cvs checkout command failed
!!! If you need support, post the topmost build error, NOT this status message.



What gives?

EDIT: Nevermind. Don't mount your distfiles from a samba share... That doesnt work.... :(
_________________
we are microsoft, lower your firewalls and surrender your pc's. we will add your biological and technological distinctiveness to our own. your culture will adapt and service us. resistance is futile.
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Mon Mar 21, 2005 7:26 pm    Post subject: Reply with quote

this done properly (no offence):

http://dev.gentoo.org/~lu_zero/overlay/qemu.tar.bz2



edit: fixed the url tags
_________________
the forums.gentoo.org poster formally known as metal leper


Last edited by djm on Tue Mar 22, 2005 11:11 am; edited 1 time in total
Back to top
View user's profile Send private message
destr0yr
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 80
Location: Kelowna, BC.

PostPosted: Tue Mar 22, 2005 4:48 am    Post subject: Reply with quote

djm wrote:
this done properly (no offence):

[url][http://dev.gentoo.org/~lu_zero/overlay/qemu.tar.bz2/url]

sweet. this actually does something!
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Thu Mar 24, 2005 3:14 pm    Post subject: Reply with quote

StringCheesian wrote:
I got this:
Code:
 * Copying qemu from /mnt/store/gentoo/distfiles/cvs-src ...
 * CVS module qemu is now in /var/tmp/portage/qemu-cvs-0.0.1/work
>>> Unpacking kqemu-0.6.2-1.tar.gz to /var/tmp/portage/qemu-cvs-0.0.1/work/qemu
patching file kqemu/install.sh
patching file kqemu/kqemu.h
>>> Source unpacked.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-emulation_-_qemu-cvs-0.0.1-30208.log"

mkdir:     /root/.ssh
--------------------------------------------------------------------------------
Code:
mkdir  /root/.ssh
and try again :)
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Fri Mar 25, 2005 1:59 am    Post subject: Reply with quote

djm wrote:
this done properly (no offence):

http://dev.gentoo.org/~lu_zero/overlay/qemu.tar.bz2

Doesn't work here:
Code:
/var/tmp/portage/qemu-0.6.2.20050309/temp/ccJPO2ri.s: Assembler messages:
/var/tmp/portage/qemu-0.6.2.20050309/temp/ccJPO2ri.s:45640: Error: unknown pseudo-op: `.l'
/var/tmp/portage/qemu-0.6.2.20050309/temp/ccJPO2ri.s:45640: Error: invalid character (0xfffffffb) in mnemonic
make[1]: *** [translate.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/qemu-0.6.2.20050309/work/qemu/ppc-user'


USE flags: -debug +kqemu +sdl +softmmu
gcc 3.4.3.20050110
binutils 2.15.92.0.2-r6

pussi wrote:
Code:
mkdir  /root/.ssh
and try again :)

Thanks, I'll try the first ebuild again.

EDIT: :cry:
Code:
/var/tmp/portage/qemu-cvs-0.0.1/temp/cc0kSyAd.s: Assembler messages:
/var/tmp/portage/qemu-cvs-0.0.1/temp/cc0kSyAd.s:30422: Error: bad expression
/var/tmp/portage/qemu-cvs-0.0.1/temp/cc0kSyAd.s:30422: Error: junk at end of line, first unrecognized character is `s'
/var/tmp/portage/qemu-cvs-0.0.1/temp/cc0kSyAd.s:44531: Error: junk at end of line, first unrecognized character valued 0x16
make[1]: *** [translate.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/qemu-cvs-0.0.1/work/qemu/ppc-user'
make: *** [all] Error 1
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Fri Mar 25, 2005 11:40 am    Post subject: Reply with quote

If you're having trouble with lu_zero's ebuild, then you should go to https://bugs.gentoo.org/show_bug.cgi?id=82885 and report it
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Fri Mar 25, 2005 2:37 pm    Post subject: Reply with quote

djm wrote:
If you're having trouble with lu_zero's ebuild, then you should go to https://bugs.gentoo.org/show_bug.cgi?id=82885 and report it

I'm starting to think it might be something wrong with my system.

EDIT: Yep, it was. I reinstalled my system and now it installs and runs fine with lu_zero's ebuild (I haven't tried the first one), but Win98 won't run.


Last edited by StringCheesian on Mon Apr 04, 2005 4:57 am; edited 1 time in total
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Sat Mar 26, 2005 12:17 am    Post subject: Re: HOWTO: build qemu from cvs (incl. accelerator) Reply with quote

notz wrote:
goto to your portage overlay ...


Great instructions!
Back to top
View user's profile Send private message
AngryLlama
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 111

PostPosted: Sat Apr 02, 2005 4:35 pm    Post subject: Humm.. Won't work Reply with quote

I can't get the qemu-cvs ebuild to work. I am running it in my 32-bit chroot since running the standard ebuild in my 64bit enviroment would cause the emulator to freeze in certain circumstances. I'm not sure what it is.. but in 64bit the Windows 2000 installer throws page faults when I do things like move the window or click next after typing in the cd-key.

Here is what I did:
Code:

wget ftp://notz.homelinux.com/qemu-cvs.tar.gz
tar -xzf qemu-cvs.tar.gz
echo "app-emulation/qemu-cvs ~x86" >> /etc/portage/package.keywords             
echo "app-emulation/qemu-cvs kqemu" >> /etc/portage/package.use                 
emerge qemu-cvs

The emerge proceed for a short time then I get this error:

Code:
make[1]: Leaving directory `/var/tmp/portage/qemu-cvs-0.0.1/work/qemu/x86_64-softmmu'
make -C kqemu
make[1]: Entering directory `/var/tmp/portage/qemu-cvs-0.0.1/work/qemu/kqemu'
make -C /usr/src/linux SUBDIRS=`pwd` modules
make[2]: Entering directory `/usr/src/linux-2.4.28-gentoo-r5'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-includescripts/split-include.c
ACCESS DENIED  open_wr:   /usr/src/linux-2.4.28-gentoo-r5/scripts/split-include
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot open output file scripts/split-include: Permission denied
collect2: ld returned 1 exit status
ACCESS DENIED  unlink:    /usr/src/linux-2.4.28-gentoo-r5/scripts/split-include
make[2]: *** [scripts/split-include] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5'
make[1]: *** [kqemu.o] Error 2
make[1]: Leaving directory `/var/tmp/portage/qemu-cvs-0.0.1/work/qemu/kqemu'
make: *** [all] Error 2

!!! ERROR: app-emulation/qemu-cvs-0.0.1 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-emulation_-_qemu-cvs-0.0.1-29477.log"

open_wr:   /usr/src/linux-2.4.28-gentoo-r5/scripts/split-include
unlink:    /usr/src/linux-2.4.28-gentoo-r5/scripts/split-include
--------------------------------------------------------------------------------


I don't use my chroot often so it only has 2.4.28 installed; My real system has 2.6.11-gentoo-r3.

When I emerge qemu-cvs in my main 64bit enviroment it compiles fine, /dev/kqemu is created. However, the kqemu module cannot be found anywhere. Any ideas? I added kqemu to my packages.use.

Thanks!
Back to top
View user's profile Send private message
zybl0re
n00b
n00b


Joined: 24 May 2003
Posts: 8
Location: Ottawa, Canada

PostPosted: Sat Apr 16, 2005 12:36 am    Post subject: Reply with quote

Okay, I'm not sure what's going on here, but I'm following the directions of the thread poster exactly (as far as I can tell), but when it get to the emerge step, I get

Code:

tinomen portage # emerge qemu-cvs
Calculating dependencies   
emerge: there are no ebuilds to satisfy "qemu-cvs".


the tar extracted to /usr/local/portage... what's going on? I'm sure this must be some simple little thing I'm overlooking. :(

edit: okay, a dude ssh'd into my machine and helped me out. I needed to add /usr/local/portage to PORTDIR_OVERLAY in make.conf
qemu-cvs is compiling right now. :)
_________________
whoa
Back to top
View user's profile Send private message
Fr0d083
n00b
n00b


Joined: 08 Feb 2004
Posts: 34

PostPosted: Thu Apr 21, 2005 1:03 am    Post subject: Reply with quote

it seems that the tarball for the ebuild is no longer on the ftp server

does anyone know if it is hosted anywhere else? I checked gentoo-portage and they don't have it either.

I really would like to get this installed so I can dump VMWare.
Back to top
View user's profile Send private message
Fr0d083
n00b
n00b


Joined: 08 Feb 2004
Posts: 34

PostPosted: Fri Apr 22, 2005 4:47 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Fri Apr 22, 2005 4:58 pm    Post subject: Reply with quote

use the one on http://dev.gentoo.org/~lu_zero that I linked to earlier in the thread
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Sat Apr 23, 2005 10:32 pm    Post subject: Reply with quote

The permissions on /dev/kqemu get reset by udev on my machine.
Code:
zeus gentoo-qemu # /etc/init.d/kqemu stop
 * Unloading kqemu module...                                            [ ok ]
zeus gentoo-qemu # /etc/init.d/kqemu start
 * Loading kqemu module...
 * Creating /dev/kqemu...                                                  [ ok ]
zeus gentoo-qemu # ls -al /dev/|grep kqemu
crw-rw-rw-   1 root  root    241,   0 Apr 24 00:17 kqemu
zeus gentoo-qemu # ls -al /dev/|grep kqemu
crw-rw----   1 root  root    250,   0 Apr 24 00:17 kqemu


Even when creating a new device with 241, it gets reset by udev to 250 and has its permissions reset to 0660 (udev uses the default mode 0660 as set in /etc/udev/udev.conf).
So an additional udev permission rule is needed. So I added /etc/udev/permissions.d/10-local.permissions with the following content:
Code:
kqemu:root:root:0666
That kept the permissions of /dev/kqemu on 0666.
Hope this helps the udev users out there.
_________________
Brave Cobra
http://www.bravecobra.com
Back to top
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Mon Apr 25, 2005 7:57 am    Post subject: Reply with quote

Following the guide as presented in my blog (http://blog.bravecobra.com/index.php/linux/2005/02/25/emulating_an_os_with_qemu), I came up with the following startup script. You'll also need the following packages
Code:
#emerge vde iptables

Another requirement would be to enable the tun device in your kernel (vde uses that to setup a private networking device).
Code:
Device drivers -> Networking support -> Network device support  -> [*] Universal TUN/TAP device driver support


When all that is enabled, you can start using the following startup script.
Code:
#!/sbin/runscript

udev() {
   # Create the KQEMU device if using udev
    if [ -a /dev/kqemu ] ; then
        einfo "        /dev/kqemu exists"
    else
        ebegin "        Creating /dev/kqemu"
        mknod /dev/kqemu c 241 0
        chmod 666 /dev/kqemu
    fi
}

start() {
    ebegin "Starting kqemu"
        ebegin "        Loading kqemu module"
            /sbin/modprobe kqemu
            udev
        eend $?
        ebegin "        Starting up virtual network"
            vde_switch -tap tun -daemon
            ifconfig tun 192.168.254.254
            chmod 666 /tmp/vde.ctl
            echo "1" > /proc/sys/net/ipv4/ip_forward
            iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
        eend $?
    eend $?
}

stop() {
    ebegin "Stopping kqeum"
        ebegin "        Unloading kqemu module"
            /sbin/modprobe -r kqemu
        eend $?
        ebegin "        Stopping virtual network"
            killall -9 vde_switch
            rm /tmp/vde.ctl
        eend $?
    eend $?
}

Of course I could start finetuning that by having the virtual TUN ip set in /etc/conf.d/kqemu etc, but you'll get the idea. Don't forget the above udev permissions rule :).
_________________
Brave Cobra
http://www.bravecobra.com
Back to top
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Mon Apr 25, 2005 8:13 am    Post subject: Reply with quote

destr0yr wrote:
... maybe i'm missing something (or just overly tired), but when i run "qemu -user-net -m 384 -hda myimage.img -cdrom /dev/cdrom1 -boot d", not much appears to be happening. my cpu jumps to 99% and it just sits there.. am i supposed to do something? :?:

Did you emerge with the softmmu flag? Otherwise it's quite normal nothing happens. :)
_________________
Brave Cobra
http://www.bravecobra.com
Back to top
View user's profile Send private message
dobh
n00b
n00b


Joined: 25 Apr 2005
Posts: 10
Location: Finland

PostPosted: Mon Apr 25, 2005 10:38 am    Post subject: Security Violation: A file exists that is not in the manifes Reply with quote

Hi,

I moved from qemu-cvs to lu_zeros ebuild.

When I try to emerge it, the following error appears:

>>> Downloading http://dev.gentoo.org/~lu_zero/distfiles/qemu-0.6.2.20050309.tar.bz2
--13:26:37-- http://dev.gentoo.org/%7Elu_zero/distfiles/qemu-0.6.2.20050309.tar.bz2
=> `/usr/portage/distfiles/qemu-0.6.2.20050309.tar.bz2'
Resolving dev.gentoo.org... 134.68.220.30
Connecting to dev.gentoo.org[134.68.220.30]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 974,674 [application/x-tar]

100%[===============================================================================>] 974,674 426.44K/s

13:26:40 (425.32 KB/s) - `/usr/portage/distfiles/qemu-0.6.2.20050309.tar.bz2' saved [974674/974674]

!!! Security Violation: A file exists that is not in the manifest.
!!! File: files/kqemu-sysfs.patch


What shoud I do?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum