LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Unable to Connect to VM on RHEL 8 Remotely (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/unable-to-connect-to-vm-on-rhel-8-remotely-4175722444/)

louisb 02-26-2023 05:24 PM

Unable to Connect to VM on RHEL 8 Remotely
 
I've created a bridge on the host in an effort to connect to a VM that is installed. The VM is installed on a server running RHEL 8 and the client is also RHEL 8. What are the final steps or task that I need to make to connect to the VM? When the VM on the server is started, via COCKPIT I can see the virtio operational with an IP address 192.168.122.45. The IP address for my bridge is 20.10.20.69 also using the "nmcli connect show" br0 is showing up.

NeverEndingTech 05-09-2023 06:09 PM

To connect to the VM, you need to perform the following steps:

1. Ensure that the VM is running and has a network connection: Based on your description, it seems that the VM is already running and has an IP address of 192.168.122.45. You can verify this by pinging the IP address from the host or another machine on the same network.

2. Configure the network settings on the host: Since you have created a bridge on the host, you need to configure the network settings on the host to use the bridge. You can do this by modifying the network configuration file located at /etc/sysconfig/network-scripts/ifcfg-br0. Ensure that the file contains the following information:

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
IPADDR=20.10.20.69
NETMASK=255.255.255.0
ONBOOT=yes

3. Configure the network settings on the VM: The VM needs to be configured to use the same network as the host. You can do this by modifying the network configuration file located at /etc/sysconfig/network-scripts/ifcfg-eth0. Ensure that the file contains the following information:

DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.122.45
NETMASK=255.255.255.0
ONBOOT=yes
BRIDGE=br0

4. Verify the network connection: Once the network settings have been configured on the host and the VM, you can verify the network connection by pinging the VM's IP address (192.168.122.45) from the host or another machine on the same network.

With these steps, you should now be able to connect to the VM using the bridge interface on the host.


All times are GMT -5. The time now is 08:49 PM.