Recommendations on unmount parititons of active VM in order to change UUIDs?

Latest response

I'm trying to speed up our deployment of RHEL VMs, as we use vCenter. So I've created a VM, converted it to a template and then spin clones off of that.

Of course we have to change the UUIDs for any of the partitions that fall under LVN.

My question is how do I unmount these partitions while the VM is up and running in order to change the UUIDs? I always seem to run into something running that won't allow me to unmount.

IMO, it almost easier to create a new VM from scratch Vs trying to umount partitions and update UUIDs.

Responses

Hi Christopher,

Why do you need to change UUIDs of the partitions? An UUID only needs to be unique within a (virtual) server.

Regards,

Jan Gerrit Kootstra

If I'm spinning up multiple VMs from a template created in VMWare vCenter and they all have the same UUIDs, won't this pose a problem?

No, just cloned a VM and it works on disk level.

You must off course see to it that the ip-addresses and hostname are changed, for these need to be unique (they are exposed to the outside world).

Correct, would make sure that the ip address and hostname and unique for all VMs.

I can't remember what website I saw...Maybe I can search for it, however I thought that all LVM partitions had to have unique UUIDs, to prevent some sort of conflicts.

Satellite 6.x has some issues if you have already registered the server that you used to create the template. I needed to reregister both the original and the new VM, because the UUID for the Satellite registration where non-unique.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.