On Thu, Jun 19, 2008 at 06:56:22PM -0300, Marcel Damásio wrote: > Hi all! > > I have a question not specifically about virtualization. > I'm using virt-clone to clone my VMs. > But the new VMs generated have the same hostname as the original. > > How can I change my VMs hostname without impact any application? > There are a lot of places that I can change the hostname, but I don't know > the right and garanteed way to do that change. I don't think there is a 'right and garanteed way to do that change'. many things may embed the host name, like application configuration files, certificates, etc. Some things can be automated, like grepping for the hostname in /etc/ subtree, changing /etc/sysconfig/network is one safe thing to do automatically but you really can't guarantee to provide a recipe which will work in all cases for all software, since each can use its own way. Based on your set and your environment I think there is always some specifics which need to be aplied after cloning, like forcing regeneration of machine certificates, ssh keys, the applications configuration and plugging the new clone in your infrastructure (DNS/DHCP/...) it's always a bit more than just the hostname from my viewpoint, and very hard to generalize because it quickly get very specific. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@xxxxxxxxxx | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ -- Fedora-xen mailing list Fedora-xen@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-xen