summaryrefslogtreecommitdiffstats
path: root/man/sbuild-qemu-boot.1.in
blob: e6e80ddbf00645a04820275730a791d95e777cb0 (plain)
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
.\" Copyright © 2020-2022   Christian Kastner <ckk@debian.org>
.\"
.\" This program is free software: you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation, either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
.\" General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program.  If not, see
.\" <http://www.gnu.org/licenses/>.
.so defs.man
.TH SBUILD\-QEMU\-BOOT "1" "\*[RELEASE_DATE]" "Version \*[VERSION]" "Debian sbuild"
.SH NAME
sbuild\-qemu\-boot \- Boot a VM using a QEMU image
.SH SYNOPSIS
.B sbuild\-qemu\-boot
.RB [ \-h ]
.RB [ \-\-read-write ]
.RB [ \-\-snapshot ]
.RB [ \-\-shared-dir ]
.RB [ \-\-arch=ARCH ]
.RB [ \-\-ram\-size=MiB ]
.RB [ \-\-cpus=CPUs ]
.RB [ \-\-ssh\-port=PORT ]
.RB [ \-\-noexec ]
.RB IMAGE
.SH DESCRIPTION
\fBsbuild\-qemu\-boot\fR boots a QEMU VM using \fBIMAGE\fR into a console. The
image is in read-only mode by default, as the goal is to support
experimentation.
.PP
The architecture is auto-guessed by stripping any file suffix and then
splitting the image name on dashes ``\-'', and finally by looking for a Debian
architecture name. \fIsid\-amd64.img\fR, \fIamd64\-temporary.image\fR or even
just \fIamd64\fR would all be assumed to be amd64 images, but not
\fIamd64.rebuild\-tests.img\fR. If this guesses wrong, use the
\fB\-\-arch\fR option.
.PP
Note that you might need to invoke stty(1) within the VM to match your
host terminal's settings.
.SH OPTIONS
.TP
\fB\-h\fR, \fB\-\-help\fR
Show this help message and exit.
.TP
\fB\-\-read\-write\fR
Write changes back to the image, instead of using the image in read\-only mode.
.TP
\fB\-\-snapshot\fR
Create a snapshot of the image before changing it. Useful for
reproducibility purposes. Ignored if the image is not booted in read\-write
mode, which is the default.
.TP
\fB\-\-shared\-dir\fR
Share this directory on the host with the guest. This will only work when the
image was created with sbuild-qemu-create(1).
.TP
\fB\-\-arch\fR=ARCH
Architecture to use (instead of attempting to auto\-guess).
.TP
\fB\-\-ram\-size\fR=MiB
VM memory size in MB. Default: 2048
.TP
\fB\-\-cpus\fR=CPUs
VM CPU count. Default: 2
.TP
\fB\-\-ssh\-port\fR=PORT
Forward local port PORT to port 22 within the guest. Package
\fBopenssh\-server\fR must be installed within the guest for this to be useful.
.TP
\fB\-\-boot\fR=auto,bios,efi,ieee1275,none
How to boot the image. Default is BIOS on amd64 and i386, EFI on arm64 and
armhf, and IEEE1275 on ppc64el.
.TP
\fB\-\-noexec\fR
Don't actually do anything. Just print the command string that
would be executed, and then exit.
.SH EXAMPLES
\fB$ sbuild\-qemu\-boot \-\-shared\-dir /tmp/foo unstable\-autopkgtest\-amd64.img\fR
.PP
This will update the image \fBunstable\-autopkgtest\-amd64.img\fR in
the current directory. If no such file exists there, then 
\fB$IMAGEDIR/unstable\-autopkgtest\-amd64.img\fR is tried.
.SH ENVIRONMENT
If \fB$IMAGEDIR\fR is unset, then \fI~/.cache/sbuild\fR is used.
.SH COPYRIGHT
.nf
Copyright \[co] 2020\-2022 Christian Kastner <ckk@debian.org>
.fi
.SH "SEE ALSO"
.BR sbuild (1),
.BR sbuild\-qemu (1),
.BR sbuild\-qemu\-create (1).