So here is a quick list of the steps that I have needed to take when copying a CentOS install from one host to another.
- Create the new virtual machine.
- Save file permissions
- Rename the VHD (just in case)
- Copy the VHD.
- Set file permissions.
- Change the Network configuration
- Create the new virtual host and make is as identical as the one that you want to copy from Full text
- use icacls [Server].vhd /save file.perm to save the permissions Full text
- rename the VHD (just incase) Full text
- Copy the VHD from the old host to the new host. Full text
- use icacls D:\hyper-v\BlueMidget /restore file.perm to set the permissions of the new file. Full text
- boot up the VHD Full text
- Change the MAC address of the network card(s) to match the new server nano /etc/sysconfig/network-scripts/ifcfg-eth0
nano /etc/sysconfig/network