1 .\" Copyright 2011 Lars Wirzenius <liw@liw.fi>
3 .\" This program is free software: you can redistribute it and/or modify
4 .\" it under the terms of the GNU General Public License as published by
5 .\" the Free Software Foundation, either version 3 of the License, or
6 .\" (at your option) any later version.
8 .\" This program is distributed in the hope that it will be useful,
9 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
10 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 .\" GNU General Public License for more details.
13 .\" You should have received a copy of the GNU General Public License
14 .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
18 vmdebootstrap \- install basic Debian system into virtual disk image
21 .BR \-\-image =\fIFILE
25 installs a basic Debian system into a virtual disk image,
26 for use with virtual machines,
27 such as KVM, Qemu, or VirtualBox.
30 which does the same thing, but puts the system into a directory,
43 you probably want to create a virtual machine using your preferred
44 virtualization technology, such as
48 Configure the virtual machine to use the image you've created.
49 Then start the virtual machine,
50 and log into it via its console to configure it.
52 The image will be using
55 It has an empty root password.
56 The image will not have networking configured.
57 Set the root password before you configure networking.
61 Show full list of options (this manual page may be incomplete).
64 Report what is going on.
70 .BR \-\-log\-level =\fILEVEL
71 Write log messages of the given
84 .BR \-\-image =\fIFILE
85 Put created disk image in
89 Create a disk image of the given
91 which can be given in bytes,
95 using the appropriate suffix.
97 .BR \-\-mirror =\fIURL
98 Use the Debian mirror at
100 You probably want to specify a local mirror, if you have one.
102 .IR http://cdn.debian.net/debian/ ,
103 which should work fairly well for most people without a local mirror.
105 .BR \-\-arch =\fIARCH
106 Use a given architecture.
107 This only works if the host system can run binaries for the architecture,
108 e.g., you can build an i386 image on amd64, but not arm.
110 .BR \-\-distribution =\fINAME
111 Use a given release of Debian.
113 .BR \-\-package =\fIPACKAGE
117 Can be given multiple times.
121 .I /etc/network/interfaces
122 file that sets up DHCP on the eth0 interface.
123 This means the system booted from the image will bring up networking
124 automatically in typical environments.
125 Without DHCP, only localhost networking is set up.
127 .BR \-\-root\-password =\fIPASSWORD
128 Set password for root.
129 The default is to disable root's password.
131 .BR \-\-customize =\fISCRIPT
134 (typically, but not necessarily, a shell script)
135 after setting up the new system image.
136 The script will get a single parameters:
137 the path to the root directory of the newly installed system.
139 .BR \-\-hostname =\fINAME
140 Set system hostname to
145 To create an image for the stable release of Debian:
148 sudo ./vmdebootstrap --image test.img --size 1g \\
149 --log test.log --log-level debug --verbose \\
150 --mirror http://mirror.lan/debian/