I am having trouble ssh-ing into a VM. On F34 I had no issues doing this, but I noticed that the IP assigned to the VM in F35 is very different from what it was in F35: it used to be something like 192.168.xxx.xxx, but now it is like 10.0.xxx.xxx. From what I’ve gathered, there’s been some changes regarding the networking in F35 (?).
I have started the daemon using sudo systemctl start sshd and sudo systemctl enable sshd but I can’t seem to connect to the VM.
Name State Autostart Persistent
--------------------------------------------
default active yes yes
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID
-----------------------------------------------------------------------------------
Alright, I now can confirm this command fixed it. If it’s not too much of a hassle, do you mind explaining to me what happens? I assume the last command is what does the trick.
I created a Fedora 35 VM in gnome-boxes. My host machine also has Fedora 35.
The IP address of the host system is 192.168.36.194.
The IP address of the VM is 10.0.2.15.
I have executed the command:
“sudo systemctl --now enable virtnetworkd.service”, and it ran successfully.
Then, I rebooted my system. But, I still see that the VM is getting the IP address 10.0.2.15 and not 192.168.36.*. Because of this, I’m unable to do “ssh” to the VM. Please let me know if there is a solution.
I can’t remember how I solved it, to be honest. I switched to using virt-manager, since it is way more feature-complete and, in many ways, easier to use.
Do you have spice and libvirt installed? IIRC, it was due to a specific package missing…
You should create a new thread and ask for help, because the more expert users will be able to answer your question.