]> git.siccegge.de Git - forks/vmdebootstrap.git/blobdiff - vmdebootstrap.8.in
improve the kernel package option description.
[forks/vmdebootstrap.git] / vmdebootstrap.8.in
index 0f0135b082aa784241f90ab4579bef255f84f27a..6632aad9999cfe742a0e083318d9c3078ccb070f 100644 (file)
 vmdebootstrap \- install basic Debian system into virtual disk image
 .SH SYNOPSIS
 .B vmdebootstrap
---image=FILE --size=SIZE [--mirror=URL] [--distribution=NAME]
+\-\-image=FILE \-\-size=SIZE [\-\-mirror=URL] [\-\-distribution=NAME]
 .PP
 .B vmdebootstrap
-[--output=FILE] [--verbose | --no-verbose] --image=FILE --size=SIZE
-[--tarball=FILE] [--mirror=URL] [--arch=ARCH] [--distribution=NAME]
-[--package=PACKAGE] [--custom-package=DEB] [--no-kernel]
-[--enable-dhcp | --no-enable-dhcp] [--root-password=PASSWORD]
-[--customize=SCRIPT] [--hostname=HOSTNAME] [--user=USER/PASSWORD]
-[--serial-console | --no-serial-console] [--sudo | --no-sudo] [--owner=OWNER]
-[--bootsize=BOOTSIZE] [--boottype=FSTYPE] [--roottype=FSTYPE] [--foreign=PATH]
-[--variant=VARIANT] [--no-extlinux] [--squash] [--configure-apt]
-[--grub] [--apt-mirror] [--pkglist]
+[\-\-output=FILE] [\-\-verbose |\-\-no-verbose] \-\-image=FILE \-\-size=SIZE
+[\-\-tarball=FILE] [\-\-mirror=URL] [\-\-arch=ARCH] [\-\-distribution=NAME]
+[\-\-package=PACKAGE] [\-\-custom-package=DEB] [\-\-no-kernel] [\-\-kernel-package]
+[\-\-enable-dhcp | \-\-no-enable-dhcp] [\-\-root-password=PASSWORD]
+[\-\-customize=SCRIPT] [\-\-hostname=HOSTNAME] [\-\-user=USER/PASSWORD]
+[\-\-serial-console | \-\-no-serial-console] [\-\-sudo |\-\-no-sudo] [\-\-owner=OWNER]
+[\-\-bootsize=BOOTSIZE] [\-\-boottype=FSTYPE] [\-\-roottype=FSTYPE] [\-\-foreign=PATH]
+[\-\-variant=VARIANT] [\-\-no-extlinux] [\-\-squash] [\-\-configure-apt]
+[\-\-grub] [\-\-apt-mirror] [\-\-pkglist]
 .SH DESCRIPTION
 .B vmdebootstrap
 installs a basic Debian system into a virtual disk image,
@@ -65,6 +65,24 @@ and log into it via its console to configure it.
 The image has an empty root password and will not have networking
 configured by default. Set the root password before you configure
 networking.
+.SH NETWORKING
+The \-\-enable\-networking option uses the /etc/network/interfaces.d/
+source directory, with the default settings for
+.B lo
+and
+.B eth0
+being added to /etc/network/interfaces.d/setup. Other networking
+configuration can be specified using a customisation script.
+Localhost settings would be:
+ auto lo
+ iface lo inet loopback
+
+If \-\-enable\-dhcp is specified, these settings are also included
+into /etc/network/interfaces.d/setup:
+
+ auto eth0
+ iface eth0 inet dhcp
+
 .SH BOOTLOADERS
 Unless the \-\-no\-extlinux or \-\-grub options are specified, the
 image will use
@@ -73,7 +91,7 @@ as a boot loader.
 .B bootsize
 is not recommended when using
 .B extlinux
-- use grub instead.
+\- use grub instead.
 Versions of grub2 in wheezy
 can fail to install in the VM, at which point vmdebootstrap will fall back to
 extlinux. It may still be possible to complete the installation of grub2 after
@@ -89,7 +107,7 @@ installation images. It is possible to create prebuilt installation images
 for some devices but this depends on the specific device. (A 'prebuilt
 installation image' is a single image file which can be written to physical
 media in a single operation and which allows the device to boot directly
-into a fully installed system - in a similar way to how a virtual machine
+into a fully installed system \- in a similar way to how a virtual machine
 would behave.)
 .PP
 .B vmdebootstrap
@@ -149,17 +167,29 @@ create a disk image of size SIZE (1000000000)
 .IP \-\-tarball=FILE
 tar up the disk's contents in FILE
 .IP \-\-mirror=URL
-use MIRROR as package source (http://cdn.debian.net/debian/)
+use MIRROR as package source (http://http.debian.net/debian/)
 .IP \-\-arch=ARCH
-architecture to use (amd64)
+architecture to use (amd64) - if using an architecture which the
+host system cannot execute, ensure the \-\-foreign option is also
+used.
 .IP \-\-distribution=NAME
-release to use (stable)
+release to use (defaults to stable). The release needs to be a valid
+Debian or Ubuntu release name or codename.
 .IP \-\-package=PACKAGE
 install PACKAGE onto system
 .IP \-\-custom-package=DEB
 install package in DEB file onto system (not from mirror)
 .IP \-\-no-kernel
 do not install a linux package
+.IP \-\-kernel-package
+If \-\-no-kernel is not used and the auto-selection of the
+.B linux-image-586
+or
+.B linux-image-armmp
+or
+.B linux-image-$ARCH
+package is not suitable, the kernel package can be specified
+explicitly.
 .IP \-\-enable-dhcp
 enable DHCP on eth0
 .IP \-\-root-password=PASSWORD
@@ -180,8 +210,8 @@ change the owner of the final image from root to the specified user.
 configure image to use a serial console
 .IP \-\-serial-console-command
 set the command to manage the serial console which will be appended to
-/etc/inittab. Default is "/sbin/getty -L ttyS0 115200 vt100", resulting in a line
-.BR "S0:23:respawn:/sbin/getty -L ttyS0 115200 vt100"
+/etc/inittab. Default is "/sbin/getty \-L ttyS0 115200 vt100", resulting in a line
+.BR "S0:23:respawn:/sbin/getty \-L ttyS0 115200 vt100"
 .IP \-\-sudo
 install sudo, and if user is created, add them to sudo group
 .IP \-\-bootsize=BOOTSIZE
@@ -199,7 +229,7 @@ the default memory allocation of QEMU is 128Mb. A default 1Gb image is
 not likely to have enough space for a swap partition as well.
 .IP \-\-foreign=PATH
 Path to the binfmt_handler to enable foreign support in debootstrap.
-e.g. /usr/bin/qemu-arm-static - note foreign debootstraps may take a signficant
+e.g. /usr/bin/qemu-arm-static \- note foreign debootstraps may take a signficant
 amount of time to complete and that debootstrap will retry five times if
 packages fail to install by default.
 .IP \-\-no\-extlinux
@@ -208,7 +238,7 @@ bootable. Useful for architectures where extlinux is not supportable.
 Depending on how the image is to be booted, the \-\-mbr option may also be
 necessary with extlinux.
 .IP \-\-squash
-Run mksquashfs against the final image using xz compression - requires
+Run mksquashfs against the final image using xz compression \- requires
 squashfs-tools to be installed. The final file will have the .squashfs suffix.
 By default, mksquashfs is allowed to use all processors which may result
 in high load. Run mksquashfs separately if you need to control the number
@@ -225,6 +255,9 @@ available.
 Disable extlinux installation and configure grub2 instead. grub2 will be added to
 the list of packages to install. update-grub will be called once the debootstrap is
 complete and grub-install will be called in the image.
+.IP \-\-no\-acpid
+Disable installation of acpid if not required, otherwise acpid will be
+installed if \-\-foreign is not used.
 .IP \-\-pkglist
 Output a list of package names installed inside the image. Useful if you
 need to track the relevant source packages used inside the image for
@@ -258,9 +291,9 @@ make memory profiling dumps at least SECONDS apart
 To create an image for the stable release of Debian:
 .nf
 .IP
-sudo vmdebootstrap --image test.img --size 1g \\
-    --log test.log --log-level debug --verbose \\
-    --mirror http://mirror.lan/debian/
+sudo vmdebootstrap \-\-image test.img \-\-size 1g \\
+    \-\-log test.log \-\-log-level debug \-\-verbose \\
+    \-\-mirror http://mirror.lan/debian/
 .PP
 To run the test image, make sure it is writeable. Use the \-\-owner
 option to set mode 0644 for the specified user or use chmod manually:
@@ -269,7 +302,7 @@ sudo chmod a+w ./test.img
 .PP
 Execute using qemu, e.g. on amd64 using qemu-system-x86_64:
 .IP
-qemu-system-x86_64 ./test.img
+qemu-system-x86_64 -drive format=raw,file=./test.img
 .PP
 (This loads the image in a new window.)
 .PP