Virtualization

What Should be Changed after Cloning a VM

You may know that you should change hostname and change NIC configurations after cloning a VM, but you may not know there could be iscsi initiator conflicts among VMs.

Mostly, virtualization softwares will take care MAC addresses during cloning, but they may not take care the initiator name. Therefore, we should also change the initiator name.

Assuming that the initiator name of the newly cloned VM is empty, we can get another random generated name for your new name.
[root@test2 ~]# /sbin/iscsi-iname
iqn.1988-12.com.oracle:8b44ec37fccd

Let’s modify the initiator by the new name.
[root@test2 ~]# vi /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1988-12.com.oracle:8b44ec37fccd

Please restart the iscsi service.
[root@test2 ~]# service iscsi restart
Now, there won’t be initiator conflicts on the storage server.

Leave a Reply

Your email address will not be published. Required fields are marked *