I’m trying make a backup system for my Centos Stream 9 headless server by installing a cloned system disk on a newer machine.
No surprise, the newer machine booted into emergency mode (hardware different).
As every one know, There are very limited functions are available in emergency mode,
I can enable network by using:
ip link
ip link set dev enp1s0 up
ip addr add 10.0.1.89/24 dev enp1s0
ip route add default via 10.0.1.1
then NIC status is up and it can accept ping over LAN.
But when I try to check the sshd status, it is not work at all.
I tried to activate by:
systemctl start sshd
not work.
As I need to:
Rebuilding initramfs
Rebuilding /etc/fstab
Rebuilding GRUB2
Rebuilding GRUB2 with LVM
to make the cloned disk works on new hardware by using copy and paste (It is very import). I have to use ssh to connect to the new machine.
Could any one please advise:
How to enable sshd service in emergency mode of Centos Stream 9?
Best regarding