LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-26-2023, 05:24 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 199

Rep: Reputation: 15
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.
 
Old 05-09-2023, 06:09 PM   #2
NeverEndingTech
LQ Newbie
 
Registered: May 2023
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
restarting apache and liferay remotely is not working for apache proxy remotely call_krushna Linux - Server 3 05-16-2013 12:13 PM
remotely installing rhel server 6 remotely jwenzel09 Red Hat 2 10-24-2011 08:22 AM
Can I remotely login to remotely display data (remote X-window issue)? polishweasel Linux - Networking 2 06-29-2011 03:21 PM
[SOLVED] Unable to remotely connect to X hejo Linux - Networking 1 05-26-2010 03:30 AM
Help: Unable to connect remotely tejpatil Linux - Newbie 3 02-14-2004 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration