KVM Virtual machines uses its own virtual network as the default network. If you want to access your virtual machine inside your LAN, you need to change your virtual network interface to shared network interface.
How to create shared interface ??
Configure your physical interface as a bridge in your machine (not in virtual machine). Then you can create a new network interface for you virtual machine with source interface as bridge
Here in my machine I have one interface eth0. I changed my physical interface to a bridge interface so that any of my virtual machine can share my physical interface for networking
edit your network configuration
# vi /etc/network/interfaces
Change your configuration to make your interface eth0 as a bridge
auto eth0
iface eth0 inet manual
auto bro
iface br0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
bridge-ports eth0
bridge-stp on
bridge-maxwait 0
This will create a bridge interface br0
No comments:
Post a Comment