Ask Your Question

default name for centos 7.0 and windows server 2012

asked 2014-08-07 23:45:43 -0500

anonymous user


i have launched two virtual machine one with centos and another with windows 2012 server please suggest me what will be deafault user name for centos and windows.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-08-08 12:10:42 -0500

dbaxps gravatar image

updated 2014-08-28 09:19:52 -0500

Default user name for centos :-

    modprobe nbd max_part=63
    qemu-nbd -c /dev/nbd0 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

    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
   cloud_dir: /var/lib/cloud
   templates_dir: /etc/cloud/templates
   ssh_svcname: sshd
edit flag offensive delete link more

answered 2014-08-08 11:27:23 -0500

mpetason gravatar image

If you are using the Windows image provided by cloudbase then you'll need to access it over the console. Most Windows images will be configured with sysprep so you'll setup the password for the administrator through the console. If the image has RDP enabled you may be able to access it, but I believe the initial password setup has to be done through the console.

For Linux you'll use SSH keys. Upload a key for your user, then when you launch the instance associate the SSH key with it. This is all done through Horizon. There is not a default password for most cloud images, they are all managed by SSH keys with modifications to the sshd config to not allow for password based logins. To turn on password based logins you'll have to login initially, setup a password for root, or whichever user you want to use, and then modify the sshd configuration to allow for password based logins/root login.

Cloud-init will handle most of these tasks for you after you provide the key. Here is more information:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-07 23:45:43 -0500

Seen: 955 times

Last updated: Aug 28 '14