1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
.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 ") "
|