diff --git a/meta-data b/meta-data index 565430e..59c6867 100644 --- a/meta-data +++ b/meta-data @@ -1,5 +1,5 @@ instance-id: iid-%GUEST_NAME%; hostname: %GUEST_NAME% local-hostname: %GUEST_NAME% -manage_resolv_conf: false +manage_resolv_conf: true diff --git a/user-data b/user-data index 918243a..354c31f 100644 --- a/user-data +++ b/user-data @@ -25,3 +25,5 @@ packages: runcmd: - [ touch, /etc/cloud/cloud-init.disabled ] +bootcmd: + - [ mv, -f, /etc/network/interfaces.d/50-cloud-init.cfg, /etc/network/interfaces ] diff --git a/virt-install-cloud.sh b/virt-install-cloud.sh index 9c207a4..19872ae 100755 --- a/virt-install-cloud.sh +++ b/virt-install-cloud.sh @@ -37,7 +37,7 @@ usage() { echo -e "\t-c number of vcpus" echo -e "\t-b bridge to attach to *" echo -e "\t-x network info" - echo -e "\t (type:ip:netmask:gateway - type=eni/1, ip=dhcp or address, default eni dhcp)" + echo -e "\t (type:ip:netmask:gateway - type=eni/1, ip=dhcp or address, default 1:dhcp)" echo -e "\t-i distribution to use" echo -e "\t (see script for supported options) - default is stretch" echo -e "\t-o OS type and variant (default: generic:generic - also set by distro option when available)" @@ -85,7 +85,7 @@ if [[ -z $cpucount ]]; then fi if [[ -z $netinfo ]]; then - netinfo="eni:dhcp" + netinfo="1:dhcp" fi if [[ ! -z $netinfo ]]; then