Cloud-init doesn't get data from attached virtual CDROM Problems: 1.- Virtual CDROM not detected! 2018-04-25 08:47:47,254 - util.py[DEBUG]: Running command ['blkid', '-tTYPE=iso9 660', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True) 2018-04-25 08:47:47,334 - util.py[DEBUG]: Running command ['blkid', '-tLABEL=cid ata', '-odevice'] with allowed return codes [0, 2] (shell=False, capture=True) 2018-04-25 08:47:47,425 - util.py[DEBUG]: Running command ['blkid', '-odevice', '/dev/sr0'] with allowed return codes [0, 2] (shell=False, capture=True) However, CDROM is attached: (none):~# blkid -tTYPE=iso9660 -odevice /dev/sr0 (none):~# blkid -tLABEL=cidata -odevice /dev/sr0 (none):~# blkid -odevice /dev/sr0 /dev/sr0 2.- Error running DMIDECODE 2018-04-25 08:47:48,226 - util.py[DEBUG]: Running command ['/usr/sbin/dmidecode' , '--string', 'system-product-name'] with allowed return codes [0] (shell=False, capture=True) 2018-04-25 08:47:48,236 - DataSourceAltCloud.py[DEBUG]: Failed command: /usr/sbi n/dmidecode --string system-product-name Unexpected error while running command. Command: ['/usr/sbin/dmidecode', '--string', 'system-product-name'] Exit code: - Reason: [Errno 2] No such file or directory Stdout: '' Stderr: '' However: dmidecode apk is installed (none):~# apk info dmidecode dmidecode-3.1-r0 description: A utility for reporting system hardware as described by BIOS dmidecode-3.1-r0 webpage: http://www.nongnu.org/dmidecode dmidecode-3.1-r0 installed size: 167936 dmidecode-3.1-r0 description: A utility for reporting system hardware as described by BIOS dmidecode-3.1-r0 webpage: http://www.nongnu.org/dmidecode dmidecode-3.1-r0 installed size: 167936 (none):~# apk info cloud-init cloud-init-0.7.6-r2 description: Cloud instance init scripts cloud-init-0.7.6-r2 webpage: http://launchpad.net/cloud-init cloud-init-0.7.6-r2 installed size: 2736128 (none):~# which dmidecode /usr/sbin/dmidecode (none):~# /usr/sbin/dmidecode --string system-product-name Standard PC (i440FX + PIIX, 1996) =========== Extra info: =========== 1.- The CDROM is indeed attached to /dev/sr0 and the contents is what other cloud-init images expect (none):~# mount -t iso9660 /dev/sr0 /media/cdrom/ (none):~# ls /media/cdrom meta-data user-data (none):~# cat /media/cdrom/meta-data instance-id: alpine local-hostname: alpine (none):~# cat /media/cdrom/user-data #cloud-config preserve_hostname: False hostname: alpine fqdn: alpine.local # configure interaction with ssh server ssh_svcname: ssh ssh_deletekeys: True ssh_genkeytypes: ['rsa', 'ecdsa'] ssh_authorized_keys: - ssh-rsa #### deleted my public key #### users: - default shell: /bin/bash groups: [ admin, sudoers ] sudo: ALL=(ALL) NOPASSWD:ALL output: all: ">> /var/log/alpine-init.log"