How to give fixed IPs to guests (accessible from outside of host)?

Serge Hallyn serge.hallyn at ubuntu.com
Wed Mar 12 22:43:40 UTC 2014


Quoting Serge Hallyn (serge.hallyn at ubuntu.com):
> Quoting Peng Yu (pengyu.ut at gmail.com):
> > Hi,
> > 
> > https://help.ubuntu.com/13.10/serverguide/libvirt.html
> > 
> > I followed the instructions and I'm able to create a host and access
> > it. But its IP is something like 192.168.x.x, which is not accessible
> > outside the host. Could anybody let me know how to create a guest with
> > fixed IPs so that they can be accessed from outside? Thanks.
> 
> Not really, because it depends on your host and network setup.
> But, the easiest way in general is to bridge a nic on your host
> and use that bridge for your VMs.  Then the dhcp server serving
> your host will handle your VMs and give them public IPs.

In particular, see the Ubuntu section under

http://wiki.libvirt.org/page/Networking#Bridged_networking_.28aka_.22shared_physical_device.22.29

-serge




More information about the ubuntu-server mailing list