Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hello i'm install centos but not find where passwd? #5

Closed
anhdao1520 opened this issue Oct 11, 2020 · 3 comments
Closed

Hello i'm install centos but not find where passwd? #5

anhdao1520 opened this issue Oct 11, 2020 · 3 comments
Assignees

Comments

@anhdao1520
Copy link

Can you help me?
How to set passwd? or find them?

@goffinet
Copy link
Owner

goffinet commented Oct 12, 2020

All published images on "download.goffinet.org/kvm" are built from the project https://github.com/goffinet/packer-kvm with Packer. The username and password of these images is in the json file of the distribution name.

For example, for Centos 7 the file centos7.json at line 15 is used:

{
    "variables":
    {
      "cpu": "2",
      "ram": "2048",
      "name": "centos",
      "disk_size": "40000",
      "version": "7",
      "iso_checksum_type": "sha256",
      "iso_urls": "http://ftp.belnet.be/mirror/ftp.centos.org/7.8.2003/isos/x86_64/CentOS-7-x86_64-Minimal-2003.iso",
      "iso_checksum": "659691c28a0e672558b003d223f83938f254b39875ee7559d1a4a14c79173193",
      "headless": "true",
      "config_file": "centos7-kickstart.cfg",
      "ssh_username": "root",
      "ssh_password": "testtest",
      "destination_server": "download.goffinet.org"
    }
}

If you build the images yourself with this project and the auto-install.sh, you will find the passwords in the functions that create the response files, for example at line 204 of this script for Centos 7 :

rootpw --plaintext testtest

@goffinet goffinet self-assigned this Oct 12, 2020
@goffinet goffinet pinned this issue Oct 12, 2020
@goffinet
Copy link
Owner

To be clear :

Distribution Username Default Password
bionic root testtest
focal ubuntu ubuntu
centos7 root testtest
centos8 root testtest
debian10 root testtest
fedora32 root testtest

@anhdao1520
Copy link
Author

Sorry, but is there a way to setup static ip for debian virtual machine, when kickstart automatic installing

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants