lzap / snap-guest

Bash script for quick provisioning of copy-on-write KVM guests
40 stars 19 forks source link

find out ip address for the new machine #3

Closed iNecas closed 12 years ago

iNecas commented 12 years ago

It works only in case dnsmasq is used with the libvirt (by default for Fedora systems). In case it finds out the ip address it writes this address into /etc/hosts (unless there is already a record for that hostname).

I understand it's not a general solution but it works for me so I want to share it with others :)

lzap commented 12 years ago

I like this one too, but it has few drawbacks. I dont use NAT for my networking, so it is not possible to use this script (my DHCP is ADSL box). So I would recommend to either create a new option for determining IP, or maybe to use it only when NAT is used.

Let me merge that and fix it later on.