]> git.proxmox.com Git - pve-docs.git/blame - qm-cloud-init-opts.adoc
btrfs: document df weirdness and how to better get usage
[pve-docs.git] / qm-cloud-init-opts.adoc
CommitLineData
95895385
TL
1`cicustom`: `[meta=<volume>] [,network=<volume>] [,user=<volume>]` ::
2
3Specify custom files to replace the automatically generated ones at start.
4
5`meta`=`<volume>` ;;
6
4772952b
TL
7Specify a custom file containing all meta data passed to the VM via"
8 ." cloud-init. This is provider specific meaning configdrive2 and nocloud differ.
95895385
TL
9
10`network`=`<volume>` ;;
11
12Specify a custom file containing all network data passed to the VM via cloud-init.
13
14`user`=`<volume>` ;;
15
16Specify a custom file containing all user data passed to the VM via cloud-init.
17
65c8d802
DM
18`cipassword`: `<string>` ::
19
20Password to assign the user. Using this is generally not recommended. Use ssh keys instead. Also note that older cloud-init versions do not support hashed passwords.
21
d2656385 22`citype`: `<configdrive2 | nocloud | opennebula>` ::
65c8d802
DM
23
24Specifies the cloud-init configuration format. The default depends on the configured operating system type (`ostype`. We use the `nocloud` format for Linux, and `configdrive2` for windows.
25
26`ciuser`: `<string>` ::
27
28User name to change ssh keys and password for instead of the image's configured default user.
29
30`ipconfig[n]`: `[gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]` ::
31
32Specify IP addresses and gateways for the corresponding interface.
33+
34IP addresses use CIDR notation, gateways are optional but need an IP of the same type specified.
35+
4772952b
TL
36The special string 'dhcp' can be used for IP addresses to use DHCP, in which case no explicit
37gateway should be provided.
d2656385
TL
38For IPv6 the special string 'auto' can be used to use stateless autoconfiguration. This requires
39cloud-init 19.4 or newer.
65c8d802 40+
4772952b
TL
41If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
42dhcp on IPv4.
65c8d802
DM
43
44`gw`=`<GatewayIPv4>` ;;
45
46Default gateway for IPv4 traffic.
47+
48NOTE: Requires option(s): `ip`
49
50`gw6`=`<GatewayIPv6>` ;;
51
52Default gateway for IPv6 traffic.
53+
54NOTE: Requires option(s): `ip6`
55
56`ip`=`<IPv4Format/CIDR>` ('default =' `dhcp`);;
57
58IPv4 address in CIDR format.
59
60`ip6`=`<IPv6Format/CIDR>` ('default =' `dhcp`);;
61
62IPv6 address in CIDR format.
63
64`nameserver`: `<string>` ::
65
4772952b
TL
66Sets DNS server IP address for a container. Create will'
67 .' automatically use the setting from the host if neither searchdomain nor nameserver'
68 .' are set.
65c8d802
DM
69
70`searchdomain`: `<string>` ::
71
4772952b
TL
72Sets DNS search domains for a container. Create will'
73 .' automatically use the setting from the host if neither searchdomain nor nameserver'
74 .' are set.
65c8d802
DM
75
76`sshkeys`: `<string>` ::
77
78Setup public SSH keys (one key per line, OpenSSH format).
79