Debian Codegraph @

man/cloud-localds.1

raw
1 .\" cloud-localds (1) manual page
2 .\" Copyright (C) 2013 Thomas Bechtold <[email protected]>
3 .\" License: GPL-3
4 .\"
5
6 .TH cloud-localds 1 "July 2013" cloud\-utils "cloud\-utils"
7 .SH NAME
8 cloud-localds \- create a disk for cloud-init to utilize nocloud
9 .SH SYNOPSIS
10 .B cloud-localds
11 [options] output user-data [meta-data]
12
13 .SH DESCRIPTION
14 .B cloud-localds
15 creates a disk-image with user-data and/or meta-data for
16 .BR cloud-init (1).
17 user-data can contain everything which is supported by
18 .BR cloud-init (1)
19 .
20 .SH OPTIONS
21 .TP
22 .BR \-d ", " \-\-disk_format =\fIDISKFORMAT\fR
23 Disk format to output. See
24 .BR qemu-img (1)
25 for allowed disk formats.
26 Default is raw.
27
28 .TP
29 .BR \-f ", " \-\-filesystem =\fIFORMAT\fR
30 Filesystem format. Allowed formats are vfat and iso.
31 Default is iso9660.
32
33 .TP
34 .BR \-h ", " \-\-help
35 Show usage.
36
37 .TP
38 .BR \-i ", " \-\-interfaces
39 Write network interfaces file into metadata.
40
41 .TP
42 .BR \-m ", " \-\-dsmode =\fIMODE\fR
43 Add dsmode to the metadata. Allowed are local or net.
44 Default in
45 .BR cloud-init (1)
46 is net.
47
48 .SH EXAMPLES
49 This example creates a disk image with user-data which can be used to start a cloud image which supports
50 .BR cloud-init (1).
51
52 .IP "Create some user-data:"
53 .IP
54 .PP
55 .nf
56 .RS
57 cat > my-user-data <<EOF
58 password: passw0rd
59 chpasswd: { expire: False }
60 ssh_pwauth: True
61 EOF
62 .RE
63 .fi
64 .PP
65
66 .IP "Create the disk image which contains the user-data:"
67 .IP
68 .PP
69 .nf
70 .RS
71 cloud-localds my-seed.img my-user-data
72 .RE
73 .fi
74 .PP
75
76 .IP "Boot the cloud-image:"
77 .IP
78 .PP
79 .nf
80 .RS
81 qemu -net nic -net user -hda cloud-image.img -hdb my-seed.img -m 512
82 .RE
83 .fi
84 .PP
85 cloud-image.img is a image which supports
86 .BR cloud-init (1)
87 during the boot process.
88
89 .SH SEE ALSO
90 .BR cloud-init (1),
91 .BR qemu-img (1),
92 .BR qemu (1)
93
94 .SH AUTHOR
95 This manpage was written by Thomas Bechtold <[email protected]> for Debian systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.