[libvirt-users] Fixed Public IP to VM Guest

Joel A Divekar joel_divekar at rediffmail.com
Sat Oct 11 13:08:19 UTC 2014

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 to We have assigned to Host server and would like to assign to Webserver and 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. We would like to do exactly as mentioned in this link https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sub-sect-routed-mode-libvirt.html

We have been struggling with this for last 3 days and no luck. Please can anybody guide us.


Joel Divekar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141011/9a0fe3a1/attachment.htm>

More information about the libvirt-users mailing list