Hi Christopher,
The folder “/etc/libvirt/qemu” contains only the “networks” folder as shown by the below command. It does not contain any “.xml” file related to the VM.
09:53:09 ~ > sudo ls -l /etc/libvirt/qemu/
total 0
drwx------. 1 root root 18 Sep 8 17:57 networks
Please find the output of the command “ifconfig” at the host and the VM below.
Host:
09:53:18 ~ > ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b4:b5:2f:36:ca:92 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 1109 bytes 128286 (125.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1109 bytes 128286 (125.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.45.194 netmask 255.255.255.0 broadcast 192.168.45.255
inet6 fe80::143c:c51e:59b9:7b51 prefixlen 64 scopeid 0x20
inet6 2409:4071:2409:c79f:dca2:f4f0:fbd0:68b3 prefixlen 64 scopeid 0x0
ether 74:e5:43:c3:04:5f txqueuelen 1000 (Ethernet)
RX packets 585799 bytes 739029863 (704.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 247938 bytes 48605957 (46.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
VM:
[ms.patil@fedora ~]$ ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fec0::a00f:35d4:4f30:ed79 prefixlen 64 scopeid 0x40
inet6 fe80::4e14:bff3:e15f:3571 prefixlen 64 scopeid 0x20
ether 52:54:00:e4:c5:c0 txqueuelen 1000 (Ethernet)
RX packets 1629 bytes 2107388 (2.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 556 bytes 45171 (44.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 40 bytes 4060 (3.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 40 bytes 4060 (3.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The “sshd.service” has also been started in the VM, as shown by the below output:
[ms.patil@fedora ~]$ systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; vendor preset: disabled)
Active: active (running) since Mon 2022-01-10 09:51:56 IST; 18s ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 2840 (sshd)
Tasks: 1 (limit: 4613)
Memory: 2.0M
CPU: 34ms
CGroup: /system.slice/sshd.service
└─2840 “sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups”
Jan 10 09:51:56 fedora systemd[1]: Starting OpenSSH server daemon…
Jan 10 09:51:56 fedora sshd[2840]: Server listening on 0.0.0.0 port 22.
Jan 10 09:51:56 fedora sshd[2840]: Server listening on :: port 22.
Jan 10 09:51:56 fedora systemd[1]: Started OpenSSH server daemon.
When I try doing “ssh” from host to VM, the “ssh” is not working, please find its output below.
09:56:56 ~ > ssh ms.patil@10.0.2.15 -X
^C
10:03:39 ~ > ping 10.0.2.15
PING 10.0.2.15 (10.0.2.15) 56(84) bytes of data.
^C
— 10.0.2.15 ping statistics —
9 packets transmitted, 0 received, 100% packet loss, time 8215ms
Please let me know if I missed out any commands.
Thanks,
Mallikarjun