SLES 11 SP4 Cloud-Init Disk resize Problem

asked 2015-12-02 06:49:55 -0500

Haukman gravatar image

Hi Folks,

I installed & configured cloud-init on a SLES 11 SP4. Everything works fine except the disk resize during the first boot of the image. I need to boot the VM again to get the right amount of diskspace that is defined in the flavor.

How can I get rid of the secound boot? Did I miss something in the cloud.cfg?

THANKS for your help!

    # Adapted default config for (open)SUSE systems

users:
 - root

disable_root: false
preserve_hostname: false
syslog_fix_perms: root:root
mount_default_fields: [~, ~, 'auto', 'defaults', '0', '2']

# The modules that run in the 'init' stage
cloud_init_modules:
 - migrator
 - bootcmd
 - write-files
 - growpart
 - resizefs
 - set_hostname
 - update_hostname
 - update_etc_hosts
 - ca-certs
 - rsyslog
 - users-groups
 - ssh

# The modules that run in the 'config' stage
    cloud_config_modules:
     - mounts
     - ssh-import-id
     - locale
     - set-passwords
     - package-update-upgrade-install
     - timezone
     - puppet
     - chef
     - salt-minion
     - mcollective
     - disable-ec2-metadata
     - runcmd
     - byobu

# The modules that run in the 'final' stage
cloud_final_modules:
 - rightscale_userdata
 - scripts-per-once
 - scripts-per-boot
 - scripts-per-instance
 - scripts-user
 - ssh-authkey-fingerprints
 - keys-to-console
 - phone-home
 - final-message
 - power-state-change
edit retag flag offensive close merge delete