Revision history [back]

Default user name for centos :-

modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 image.qcow2
mkdir -p /mnt/image
mount /dev/nbd0p1 /mnt/image
cat /mnt/image/etc/cloud/cloud.cfg

Default user name for centos :-

 modprobe nbd max_part=63
 qemu-nbd -c /dev/nbd0 image.qcow2
 mkdir -p /mnt/image
 mount /dev/nbd0p1 /mnt/image
    [root@icehouse1 Downloads]# cat /mnt/image/etc/cloud/cloud.cfg
/mnt/image/etc/cloud/cloud.cfg | tail -20
 - ssh-authkey-fingerprints
 - keys-to-console
 - phone-home
 - final-message

system_info:
  default_user:
    name: centos  <= new default name
    lock_passwd: true
    gecos: Cloud User
    groups: [wheel, adm, systemd-journal]
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    shell: /bin/bash
   distro: rhel
   paths:
   cloud_dir: /var/lib/cloud
   templates_dir: /etc/cloud/templates
   ssh_svcname: sshd

Default user name for centos :-

    modprobe nbd max_part=63
    qemu-nbd -c /dev/nbd0 image.qcow2
CentOS-7-x86_64-GenericCloud-20140826_02.qcow2
    mkdir -p /mnt/image
    mount /dev/nbd0p1 /mnt/image
    [root@icehouse1 Downloads]# cat /mnt/image/etc/cloud/cloud.cfg | tail -20
 - ssh-authkey-fingerprints
 - keys-to-console
 - phone-home
 - final-message

system_info:
  default_user:
    name: centos  <= new default name
    lock_passwd: true
    gecos: Cloud User
    groups: [wheel, adm, systemd-journal]
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    shell: /bin/bash
   distro: rhel
   paths:
   cloud_dir: /var/lib/cloud
   templates_dir: /etc/cloud/templates
   ssh_svcname: sshd