]> git.proxmox.com Git - pve-docs.git/blame - qm-cloud-init-opts.adoc
update link qemu documentation non web.archive
[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
22`citype`: `<configdrive2 | nocloud>` ::
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.
ac70d7d1 38For IPv6 the special string 'auto' can be used to use stateless autoconfiguration.
65c8d802 39+
4772952b
TL
40If cloud-init is enabled and neither an IPv4 nor an IPv6 address is specified, it defaults to using
41dhcp on IPv4.
65c8d802
DM
42
43`gw`=`<GatewayIPv4>` ;;
44
45Default gateway for IPv4 traffic.
46+
47NOTE: Requires option(s): `ip`
48
49`gw6`=`<GatewayIPv6>` ;;
50
51Default gateway for IPv6 traffic.
52+
53NOTE: Requires option(s): `ip6`
54
55`ip`=`<IPv4Format/CIDR>` ('default =' `dhcp`);;
56
57IPv4 address in CIDR format.
58
59`ip6`=`<IPv6Format/CIDR>` ('default =' `dhcp`);;
60
61IPv6 address in CIDR format.
62
63`nameserver`: `<string>` ::
64
4772952b
TL
65Sets DNS server IP address for a container. Create will'
66 .' automatically use the setting from the host if neither searchdomain nor nameserver'
67 .' are set.
65c8d802
DM
68
69`searchdomain`: `<string>` ::
70
4772952b
TL
71Sets DNS search domains for a container. Create will'
72 .' automatically use the setting from the host if neither searchdomain nor nameserver'
73 .' are set.
65c8d802
DM
74
75`sshkeys`: `<string>` ::
76
77Setup public SSH keys (one key per line, OpenSSH format).
78