From LinuxTVWiki

Jump to: navigation, search

my notes on how to get a qemu + pciproxy setup running ("cause I couldn't find this anywhere")

  • (K)ubuntu (feisty)



# aptitude install linux-source-2.6.20 kernel-package
# cd /usr/src
# tar xvfj linux-source-2.6.20
# ln -s linux-source-2.6.20 linux
# cd linux
# cp config-(current kernel version here) .config

kernel patch

# wget http://www.scaramanga.co.uk/stuff/qemu-pciproxy/linux-sigirq-0.1.diff
# patch -p1 < linux-sigirq-0.1.diff # use --dry-run first
patching file drivers/pci/proc.c
Hunk #2 succeeded at 201 (offset 1 line).
Hunk #3 succeeded at 253 (offset 1 line).
Hunk #4 succeeded at 346 (offset 1 line).
Hunk #5 succeeded at 357 (offset 1 line).
patching file include/linux/pci.h
Hunk #1 succeeded at 38 (offset -373 lines).

kernel compile

# make-kpkg --initrd --append-to-version=pciproxy kernel_image

make tea..


helper: http://blog.unixlore.net/2006/03/using-qemu-and-kqemu-under-debian-or.html install mercurial with aptitude

hg clone http://mcentral.de/hg/~mrec/qemu-qvm86-pciproxy
./configure  --cc=/usr/bin/gcc-3.4 --enable-alsa --enable-user --prefix=/usr/local --enable-system --kernel-path=/usr/src/linux
(had to fix some include here)
make && make install

builde the qemu accelerator kernel module

./configure --enable-alsa --enable-user --prefix=/usr/local --enable-system --kernel-path=/usr/src/linux
cd qvm86/

sudo qemu -hda /data/tmp/winxp.img -snapshot -pciproxy 07:00.0


Personal tools