View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001981 | Cloud | General | public | 2023-01-31 13:59 | 2023-02-17 03:57 |
| Reporter | Mathias Koerber | Assigned To | Neil Hanlon | ||
| Priority | high | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | unable to reproduce | ||
| Summary | 0001981: Rocky 8.7 generic Cloud image has root pw | ||||
| Description | I just downloaded https://download.rockylinux.org/pub/rocky/8.7/images/x86_64/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 and after loading it up it has a root password Reading https://bugs.rockylinux.org/view.php?id=130 it looks like this happened before with an 8.6 image, but this identifies as 8.7 Is this a known issue? | ||||
| Steps To Reproduce | download https://download.rockylinux.org/pub/rocky/8.7/images/x86_64/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2, load into KVM or such. start Try - root / empty pwd root/root root/rockstar No way to log in | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
Hi there, What you're seeing is actually the result of it having _no_ password. I downloaded the image from your URL and mounted it using `guestmount` ``` ╭─<neil@afterman-ascension>─</tmp/neil/tmp.OSoQkeEvGy>─<9:07AM>─◇ ╰─➤ LIBGUESTFS_BACKEND=direct guestmount -a Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 -i --ro a ╭─<neil@afterman-ascension>─</tmp/neil/tmp.OSoQkeEvGy>─<9:09AM>─◇ ╰─➤ grep -E '^root' a/etc/{passwd,shadow} 2 ↵ a/etc/passwd:root:x:0:0:root:/root:/bin/bash a/etc/shadow:root:!!:19326:0:99999:7::: ``` You need to configure the root account (or another account) using cloud init. virt-install can do this for you, e.g.: ``` virt-install --disk Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 --memory 4096 --vcpus 2 --cloud-init --os-variant rocky8.7 --import ``` (The --cloud-init option may not be avaialble depending on your version of virt-tools). This will output a message with the root password by default, before launching the virtual machine. I just tested this and was able to login to the instance using the credentials generated. Thank you very much for your report, though! Please let me know if there's any further clarification I can add. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-01-31 13:59 | Mathias Koerber | New Issue | |
| 2023-01-31 13:59 | Mathias Koerber | File Added: Screenshot 2023-01-31 at 9.56.51 PM.png | |
| 2023-01-31 14:04 | Neil Hanlon | Assigned To | => Neil Hanlon |
| 2023-01-31 14:04 | Neil Hanlon | Status | new => assigned |
| 2023-01-31 14:15 | Neil Hanlon | Note Added: 0002319 | |
| 2023-01-31 14:17 | Neil Hanlon | Status | assigned => needinfo |
| 2023-02-17 03:57 | Neil Hanlon | Status | needinfo => closed |
| 2023-02-17 03:57 | Neil Hanlon | Resolution | open => unable to reproduce |