You are not logged in.
Pages: 1
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
http://archlinux.org/download/ links to the README for more info on VM images: https://gitlab.archlinux.org/archlinux/arch-boxes/
Offline
Many thanks!
Offline
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
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
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
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
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
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
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
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
Only Basic Image ships with arch:arch user and password, and cloudinit not.
Offline
Pages: 1