1
2cloud-localds(1) cloud-utils cloud-localds(1)
3
4
5
7 cloud-localds - create a disk for cloud-init to utilize nocloud
8
10 cloud-localds [options] output user-data [meta-data]
11
12
14 cloud-localds creates a disk-image with user-data and/or meta-data for
15 cloud-init(1). user-data can contain everything which is supported by
16 cloud-init(1)
17
19 -d, --disk_format=DISKFORMAT
20 Disk format to output. See qemu-img(1) for allowed disk formats.
21 Default is raw.
22
23
24 -f, --filesystem=FORMAT
25 Filesystem format. Allowed formats are vfat and iso. Default is
26 iso9660.
27
28
29 -h, --help
30 Show usage.
31
32
33 -i, --interfaces
34 Write network interfaces file into metadata.
35
36
37 -m, --dsmode=MODE
38 Add dsmode to the metadata. Allowed are local or net. Default
39 in cloud-init(1) is net.
40
41
43 This example creates a disk image with user-data which can be used to
44 start a cloud image which supports cloud-init(1).
45
46
47 Create some user-data:
48
49 cat > my-user-data <<EOF
50 password: passw0rd
51 chpasswd: { expire: False }
52 ssh_pwauth: True
53 EOF
54
55 Create the disk image which contains the user-data:
56
57 cloud-localds my-seed.img my-user-data
58
59 Boot the cloud-image:
60
61 qemu -net nic -net user -hda cloud-image.img -hdb my-seed.img -m 512
62
63 cloud-image.img is a image which supports cloud-init(1) during the boot
64 process.
65
66
68 cloud-init(1), qemu-img(1), qemu(1)
69
70
72 This manpage was written by Thomas Bechtold <thomasbechtold@jpber‐
73 lin.de> for Debian systems (but may be used by others). Permission is
74 granted to copy, distribute and/or modify this document under the terms
75 of the GNU General Public License, Version 3 published by the Free
76 Software Foundation.
77
78
79
80cloud-utils July 2013 cloud-localds(1)