-
cp -r oldDir NewDir
-
Replace HD filename
[root@n2 SimpleGrid]# for file in MalariaMap.*; do ext=`echo $file | awk -F . '{print $2}'`; mv $file SimpleGrid.$ext; done [root@n2 SimpleGrid]# for file in *-*.vmdk ; do ext=`echo $file | awk -F - '{print $2}'`; mv MalariaMap-$ext SimpleGrid-$ext; done
-
Replace all occurences in .vmx , .vmdk (and maybe .vmxf)
:%s/MalariaMap/SimpleGrid/g (vi shortcut to replace all)
-
Just say VM is copied and it will change uuids and mac address (use uuidgen to generate unique IDs if needed)
-
Update /etc/resolv.conf
search cigi.uiuc.edu search atlas.uiuc.edu nameserver 130.126.2.131
Ubuntu Networking:
Change /etc/hosts, /etc/hostnane, /etc/network/interface as needed
RedHat Variants
-
You can also try to run command system-config-network-tui
-
Update /etc/sysconfig/network-scripts/ifcfg-eth0 , /etc/hosts
[cigi@simplegrid ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 (/etc/network/interface for Ubuntu) # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth0 BOOTPROTO=static ONBOOT=yes HWADDR=00:0c:29:a3:6a:e3 TYPE=Ethernet NETMASK=255.255.255.192 IPADDR=130.126.3.70 GATEWAY=130.126.3.65 DNS1=130.126.2.131 SEARCH=cigi.illinois.edu
-
Restart Networking /etc/init.d/network restart