How do i establish connection between host and guest in KVM
Hi Guys,
How do i establish connection between host and guest in KVM? |
Quote:
If KVM is set up correctly you should be able to reach the guest from the host by using the guest's ip number and vice versa. Example: Code:
# guest IP -> 172.16.122.60 |
i have configured bridge network on my host and i've selected my guest to use that bridge network but when i switch to guest i cant see and network device except the loopback.
|
Quote:
If you run ifconfig on the guest and you only see the loopback device then there's no way you can connect from or to the guest. How to set this up correctly depends on the distro that's being run as guest. |
I see only loopback when i run ifconfig in guest
I'm using RHEL 6.0 and i've selected bridge network while installing guest machine. |
Quote:
Make sure your guest has a network interface (NIC) assigned to it (ifconfig -a should show an eth0 entry. Then use the system-config-network tool. Or, if you prefer, you can set it up manually: RHEL/CentOS 6 Networking |
Also you may need to set up a network bridge on host and use the bridge as your network in the kvm vm. By default a new vm will use it's own NAT subnet that's not accessible from the host subnet.
|
@druuna
when i did ifconfig -a i can see eth0 and i configured it to dhcp now i'm able to communicate between host and guest, but its getting ip from mu ISP's dhcp server like my host When i setup static ip on host and guest I'm not able to access host from guest or vice versa i need static ip to be configured as when I'm configuring anything the ip would be changed every time. |
Quote:
|
initially it was not working with NAT not sure why
now i removed the machine and reinstalled and selected NAT its working fine with static ip now Thnx |
All times are GMT -5. The time now is 11:03 AM. |