2560
Comment:
|
2755
fix wordings
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
Create ~/.pbuilderrc: | pbuilderrc-arch.config: |
Line 21: | Line 21: |
sudo qemubuilder --create | sudo qemubuilder --create --configfile pbuilder-arch.config |
Line 23: | Line 23: |
If this step doesn't work, please report a bug. | If this step doesn't work, read the logs first, then if you can't figure out what's wrong, please report a bug. |
Line 27: | Line 27: |
sudo qemubuilder --build something.dsc | sudo qemubuilder --configfile pbuilder-arch.config --build something.dsc |
Line 30: | Line 30: |
See also `man qemubuilder`. | See also `man qemubuilder`, `man pbuilder` and `/usr/share/doc/pbuilder/pbuilder-doc.html`. |
Line 34: | Line 34: |
To run qemubuilder you need a kernel image and initrd (optional). | To run qemubuilder you need a kernel image, and optionally initrd. |
Line 58: | Line 58: |
Line 78: | Line 77: |
qemubuilder
This page is README.Debian of qemubuilder, a pbuilder implementation using qemu.
Usage
pbuilderrc-arch.config:
KERNEL_IMAGE=/boot/vmlinuz-2.6.21-1-686 INITRD=/boot/initrd.img-2.6.21-1-686 MIRRORSITE=http://ftp.cz.debian.org/debian ARCH=i386 BASEPATH=/var/cache/pbuilder/base-i386.qemu MEMORY_MEGS=64
and adjust the KERNEL_IMAGE and INITRD paths, so that they point to the kernel and initrd that you want to use in qemu (so obviously, for ARCH=i386, use i386 kernel, for amd64, use amd64 kernel, etc.). Adjust the MIRRORSITE to your favourite Debian mirror.
Create the base image:
sudo qemubuilder --create --configfile pbuilder-arch.config
If this step doesn't work, read the logs first, then if you can't figure out what's wrong, please report a bug.
Compile a package:
sudo qemubuilder --configfile pbuilder-arch.config --build something.dsc
See also man qemubuilder, man pbuilder and /usr/share/doc/pbuilder/pbuilder-doc.html.
Architecture specific information
To run qemubuilder you need a kernel image, and optionally initrd.
To get qemubuilder working, qemu support for that target architecture, the kernel image (and optionally initrd image) for the target architecture, and a way to invoke the kernel from the command-line using -kernel command-line option is required. Support for specifying disk devices through -hda and -hdb is required for operation.
i386
Files from Debian kernel package (linux-image-xxx) should work.
amd64
Files from Debian kernel package (linux-image-xxx) should work.
arm
kernel for versatile architecture is available from http://www.aurel32.net/info/debian_arm_qemu.php
versatile is not a Debian official architecture.
mips
Get the kernel and initrd from http://mirror/debian/dists/sid/main/installer-mips/current/images/qemu/netboot/
mipsel
Get the kernel and initrd from http://mirror/debian/dists/sid/main/installer-mipsel/current/images/qemu/netboot/
powerpc
cannot get it working as of 4 Sep 2007.
sparc
requires openbios.
found it from: http://fly.srk.fer.hr/~jelly/qemu/openbios-builtin.elf
http://mirror/debian/dists/sid/main/installer-sparc/20070308/images/combined/2.6/mini.iso
Does not support loading kernel through -kernel ?
other architecture
support needs to be added. Please mail Junichi Uekawa with information on a kernel configuration that works.
Location of README.Debian
canonical version is available at http://wiki.debian.org/qemubuilder the file in Debian package is updated from the contents from time to time by running debian/rules debian/qemubuilder.README.Debian