You are not logged in.

#1 2024-10-10 15:45:55

amixra
Member
Registered: 2022-01-24
Posts: 125

[Solved] Forgot to install dhcpcd for arch linux in vm

This is my third installation with 2 successful bare metal. This time I tried it on a vm, I needed much lighter system without lot of functionality. I forgot installing dhcpcd (ok I am embarrased for that, but I don't do it everyday.) In bare metal installation, I can always arch-chroot using live usb. But I am confused how you do that on vm? I am using gnome-boxes for vm.

Last edited by amixra (2024-10-10 17:07:09)


Experiment at-least.

Offline

#2 2024-10-10 16:29:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [Solved] Forgot to install dhcpcd for arch linux in vm

I don't know how gnome-boxes works, but it'd be exactly the same as how you started the installation: you'd boot the VM with the iso with the target disk image also available to the vm.  From there it's exactly the same as bare metal: mount the system partitions and either chroot and run pacman, or just run pacman with the relevant flags directly (i.e., --sysroot= or whatever it is).

Alternatively, you could just get the dhcpcd pkg.tar.xz file on additional media available to the vm and install it with pacman -U.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-10-10 16:53:14

cryptearth
Member
Registered: 2024-02-03
Posts: 930

Re: [Solved] Forgot to install dhcpcd for arch linux in vm

another option is to just use systemd:
https://wiki.archlinux.org/title/Systemd-networkd
https://wiki.archlinux.org/title/Systemd-resolved
in fact: aside from wifi and an editor one could get away with just base and a kernel thanks to what system comes with already: network, boot ...

Last edited by cryptearth (2024-10-10 16:57:00)

Offline

#4 2024-10-10 17:06:43

amixra
Member
Registered: 2022-01-24
Posts: 125

Re: [Solved] Forgot to install dhcpcd for arch linux in vm

I was mainly struggling because gnome-boxes launches iso first time but after shutdown. It launches installed arch directly. You don't get the option to choose there. I was mainly confused, thinking that iso and target image is probably same for vm...

you'd boot the VM with the iso with the target disk image also available to the vm.

above part gave enough clarity. After that, I enabled iso and edited boot order using virt-manager.


Experiment at-least.

Offline

Board footer

Powered by FluxBB