On 10/11/2014 03:08 PM, Joel A Divekar wrote:
Hi All
We have setup a Centos7 host server with KVM and have created multiple
VM running Ubuntu 14.04 using virt-manager. All VMs are having forward
mode as "NAT" and using internal DHCP IP address 192.168.122.x series
and we gave them fixed ips based on their mac address. Now all these
VMs are able to access Internet and able to run update on all these
guest OS. But these VMs are web and API servers and they are required
to be accessible from Internet.
We have pool of public IPs and have assigned host with one public IP
for example, we have pool like 192.168.111.1 to 192.168.111.25. We
have assigned 192.168.111.2 to Host server and would like to assign
192.168.111.3 to Webserver and 192.168.111.4 to API server. So we
changed our virsh network settings from default to routed as <forward
mode='route' dev='em1'> and struggling to configure fixed IPs for our
VMs.
In order to use a libvirt network with forward mode='route', you must
have an *entire subnet* available to assign to the libvirt network, and
the rest of your physical network must have a route entry for that
subnet which points to your host's physical-side IP address as the
gateway. Since you say that you only have 192.168.111.1 - 192.168.111.25
available, I am guessing that you don't have an entire subnet, and that
you probably aren't able to alter the routing tables of routers on the
physical network, so routed mode will not work for you.
If, instead, the case is that your host's physical-side (i.e. em1) IP
address is 192.168.111.2, you should instead investigate putting a Linux
host bridge on that interface, and configuring the guests for a bridged
network connection:
http://wiki.libvirt.org/page/Networking#Host_configuration_2
We would like to do exactly as mentioned in this link
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/...
We have been struggling with this for last 3 days and no luck. Please
can anybody guide us.
Regards
Joel Divekar
<
http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/si...
Get your own *FREE* website, *FREE* domain & *FREE* mobile app with
Company email.
*Know More >*
<
http://track.rediff.com/click?url=___http://businessemail.rediff.com/emai...
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users