You are not logged in.

#1 2021-09-26 21:43:13

zarniwhoop
Member
Registered: 2021-09-26
Posts: 4

qcow2 image password ?

Hi, a few days ago I downloaded Arch-Linux-x86_64-basic-20210906.0.qcow2 from somewhere (I lack the URI where I found it, but the SHA256 checked out). Now I'm trying to follow the general instructions for installing [https://wiki.archlinux.org/title/installation_guide] but those say that I'll be logged in on the first virtual console as the root user, and presented with a Zsh shell prompt.

Instead, it has booted to tty1 with a prompt of 'archlinux login:'. I don't know the root passwd.

Offline

#2 2021-09-26 22:04:08

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: qcow2 image password ?

Offline

#3 2021-09-26 22:10:02

zarniwhoop
Member
Registered: 2021-09-26
Posts: 4

Re: qcow2 image password ?

Many thanks!

Offline

#4 2021-09-26 23:41:30

zarniwhoop
Member
Registered: 2021-09-26
Posts: 4

Re: qcow2 image password ?

Maybe this is not the image I want ? I thought it would let me not only run things as a normal user in a live image, but actually install it. For that (even for setting keymap and console font) I need to be able to become root.

Offline

#5 2021-09-27 07:03:30

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: qcow2 image password ?

I thought it would let me not only run things as a normal user in a live image

That's not the archlinux installation iso.

I downloaded Arch-Linux-x86_64-basic-20210906.0.qcow2 from somewhere

The installer is distributed as iso image and that's also what you need to check the hash against.
Also "somewhere" isn't an official mirrot ;-)

Just download the actual install iso and convert it to qcow2 if you need that format for a VM.
Not sure whether a direct "qemu-img convert xxx.iso xxx.qcow2" works, see https://vineetcic.medium.com/convert-is … 2a2838951d

Offline

#6 2021-09-27 13:46:29

zarniwhoop
Member
Registered: 2021-09-26
Posts: 4

Re: qcow2 image password ?

Thanks. "somewhere" means I didn't keep a note of the URI, although from the links I followed it appeared to be the link I was given above. Whatever, the purpose of that exercise was to use an existing qcow installer (for reasons which have nothing to do with Arch). Having thought I'd found one for Arch, I figured I could double up by starting to learn Arch.

On to plan B.

Offline

#7 2022-09-17 23:08:35

mettacrawler
Member
Registered: 2020-09-26
Posts: 26

Re: qcow2 image password ?

Sorry to necro but Google brought me here and I'm guessing other people might arrive on this page that way as well.
The answer is
login: arch
password: arch

Offline

#8 2022-12-21 06:12:23

potkettleblack
Member
Registered: 2022-12-21
Posts: 1

Re: qcow2 image password ?

I spent quite some time trying to figure out the default creds for the 'virtualbox' image.  Wasnt' able to find it anywhere but after a lucky guess the user and pass turned out to be 'vagrant' (didn't check but I suspect that would also apply to the libvirt image)

Offline

#9 2023-12-13 14:42:20

hooshmang
Member
Registered: 2023-12-13
Posts: 1

Re: qcow2 image password ?

I downloaded the file Arch-Linux-x86_64-cloudimg-20231201.196495.qcow2 from this link: https://gitlab.archlinux.org/archlinux/ … kages/1245 and ran it with qemu:
qemu-system-x86_64 -m 4096M -hda Arch-Linux-x86_64-cloudimg-20231201.196495.qcow2 -nographic -enable-kvm

When the boot process is complete, it asks for a username and password, but I don't know this username and password:

Arch Linux 6.6.3-arch1-1 (ttyS0)

archlinux login:

I tried login: arch and password: arch, but it was not correct.

Offline

#10 2024-01-21 06:14:17

suprinux
Member
Registered: 2024-01-21
Posts: 1

Re: qcow2 image password ?

You need virt-customize to change root password of Arch-Linux-x86_64-cloudimg.qcow2. To get this tool, you must install guestfs-tools package first
$  sudo pacman -S guestfs-tools

$ virt-customize -a Arch-Linux-x86_64-cloudimg.qcow2 --root-password [your-password]
[   0.0] Examining the guest ...
[   9.9] Setting a random seed
virt-customize: warning: random seed could not be set for this type of
guest
[  10.0] Setting passwords
[  10.7] SELinux relabelling
[  10.8] Finishing off

Now, you can run the image with virt-manager or virsh and login with your new root password..

Good luck!

Offline

#11 2024-01-21 11:13:55

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,327
Website

Re: qcow2 image password ?

Alternatively follow https://gist.github.com/shamil/62935d9b456a6f9877b5 to mount the image with qemu-nbd and chroot in to change the password.

Another method would be

$ qemu-img convert -f qcow2 -O raw Arch-Linux-x86_64-cloudimg.qcow2 arch-image.raw
$ gdisk -l arch-image.raw # get sector number for "Arch Linux root" partition
# mount -o offset=$((512*618496)) arch-image.raw /mnt # 618496 is the sector number from last command
# chroot /mnt /bin/su -
[chroot] passwd root # enter password
[chroot] exit
$ qemu-img convert -f raw -O qcow2 arch-image.raw arch-image.qcow2

Then use arch-image.qcow2 :-)


Para todos todo, para nosotros nada

Offline

#12 2024-06-04 07:21:14

sheey
Member
Registered: 2021-01-12
Posts: 3

Re: qcow2 image password ?

Only Basic Image ships with arch:arch user and password, and cloudinit not.

Offline

Board footer

Powered by FluxBB