.TH "qemubuilder" 8 "2008 Aug 10" "pbuilder" "pbuilder" .SH "NAME" qemubuilder \- a pbuilder wrapper for qemu. .SH SYNOPSIS .BI "qemubuilder [" "commands" "] [" "options" "]" .SH DESCRIPTION .B qemubuilder Executes the specified pbuilder operation with .B qemu .SH "COMMANDS" Most commands imitate pbuilder, see pbuilder manual for details. .TP .B "--create" Create the base.qemu image. .TP .B "--update" Update the base.qemu image. .TP .BI "--build " ".dsc-file" Build a package given a .dsc file .TP .B "--login" Start a session within the base.qemu. .TP .B "--execute" Execute a command within the base.qemu. .TP .B "--dumpconfig" dump configuration information. .TP .BI "--arch-diskdevice " "sd/hd" specify whether disk device inside the virtual machine is called /dev/sda or /dev/hda. The possible value is 'sd' or 'hd'. .TP .BI "--smp " "2" The option passed to SMP. .SH "OPTIONS" Most options are the same as pbuilder, except for the following which are handled specially. .TP .BI "SMP " "2" The SMP option for qemu. I don't think I can support bind-mounts in qemu. Documentation here should be updated according to what's defined in parameter.c, but it isn't. .SH "CONFIGURATION FILES" qemubuilder reads the following configuration files per default. .TP .B "/usr/share/pbuilder/pbuilderrc" Application default, not to be changed. .TP .B "/etc/pbuilderrc" System-wide default. .TP .B "~/.pbuilderrc" User default .TP .I "anything specified with \-\-configfile option" Additional configuration at runtime. .SH "CONFIGURATION FILE OPTIONS" The possible configuration options are as follows. Others are ignored. .TP .BI "DISTRIBUTION=" "distribution" .TP .BI "BUILDRESULT=" "directory" .TP .BI "BUILDPLACE=" "directory" .TP .BI "BASEPATH=" "path" .TP .BI "MIRRORSITE=" "http://mirror" .TP .BI "KERNEL_IMAGE=" "vmlinuz" Linux kernel to use. .TP .BI "INITRD=" "initrd" initrd to use. .TP .BI "ARCHITECTURE=" "arch" The target architecture. You can also use .BI "ARCH=" "arch" for compatibility with 0.60 or older. .TP .BI "MEMORY_MEGS=" "64" memory size to use in qemu session, in MB. .TP .BI "ARCH_DISKDEVICE=" "hd" The architecture-specific disk device specifier. Most arches use sd these days. The only exceptions were i386 and amd64, which used to use hd. .SH "EXAMPLES" .TP .B "qemubuilder --create" Create a base.qemu image. .TP .B "qemubuilder --update" Update the base.qemu image. .TP .B "qemubuilder --build test_0.1.dsc" Build the package specified in dsc file, with the base.qemu image. .TP .B "pdebuild --pbuilder qemubuilder" Run .B "qemubuilder --build" against the current directory. The current directory should be an extracted Debian source package directory. Edit .B /etc/pbuilderrc to have .B PDEBUILD_PBUILDER=qemubuilder to make this the default behavior for .B pdebuild. .TP .B "qemubuilder --create --distribution sid --basepath /var/cache/pbuilder/base-test.qemu" Create a base.qemu image with the path .B "/var/cache/pbuilder/base-test.qemu" and distribution sid. .TP .B "Example pbuilderrc for i386" .nf KERNEL_IMAGE=vmlinuz-2.6.18-4-k7 INITRD=initrd.img-2.6.18-4-k7 ARCHITECTURE=i386 BASEPATH=/home/dancer/tmp/base-i386.qemu MEMORY_MEGS=64 .qy Note. INITRD may or may not be required for your system. Debian Installer initrd may or may not work depending on which one you choose, use the one from an installed system. .TP .B "CAVEATS" Note that for mirror specification, http://localhost/debian/ usually doesn't work, it will be searching for files on the virtual machine itself, not the host OS. .SH "AUTHOR" Junichi Uekawa (dancer@debian.org) .SH "SEE ALSO" .BR "/usr/share/doc/pbuilder/pbuilder-doc.html, " .BR "pbuilder (" 8 "), " .BR "pdebuild (" 1 ") "