It's so strange that it works now after I reemerge qemu-cvspussi wrote:I just realized that it don't work with me eiter![]()
![]()
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-cvspussi wrote:I just realized that it don't work with me eiter![]()
![]()
I know it should work as it reads in Qemu acceleration module manual, but for some reason it don't.
Yeah, but you have to recompile qemu every time you reboot your system to make it work again. :PDebentoo_Gao wrote:It's so strange that it works now after I reemerge qemu-cvs :) :) :)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. :(

Thanksjdoe 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

Code: Select all
* 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: Select all
>>> 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.

sweet. this actually does something!djm wrote:this done properly (no offence):
[url][http://dev.gentoo.org/~lu_zero/overlay/qemu.tar.bz2/url]
StringCheesian wrote:I got this:Code: Select all
* 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: Select all
mkdir /root/.ssh
Doesn't work here:
Code: Select all
/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'Thanks, I'll try the first ebuild again.pussi wrote:and try againCode: Select all
mkdir /root/.ssh
Code: Select all
/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
I'm starting to think it might be something wrong with my system.djm wrote:If you're having trouble with lu_zero's ebuild, then you should go to http://bugs.gentoo.org/show_bug.cgi?id=82885 and report it
Great instructions!notz wrote:goto to your portage overlay ...

Code: Select all
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
Code: Select all
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
--------------------------------------------------------------------------------
Code: Select all
tinomen portage # emerge qemu-cvs
Calculating dependencies
emerge: there are no ebuilds to satisfy "qemu-cvs".

Code: Select all
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 kqemuCode: Select all
kqemu:root:root:0666
Code: Select all
#emerge vde iptablesCode: Select all
Device drivers -> Networking support -> Network device support -> [*] Universal TUN/TAP device driver supportCode: Select all
#!/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 $?
}

Did you emerge with the softmmu flag? Otherwise it's quite normal nothing happens.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?