Ethernet not up After Clone Virtual Machine

Error: ifup: vmnics device eth0 does not seem to be present, delaying initializing

Solution: Follow below procedure to resolve this issue in cloned virtual machine:

  • Stop Network service

         # /etc/init.d/network stop

  • Remove  /etc/udev/rules.d/70-persistent-net.rules File

         # rm -rf   /etc/udev/rules.d/70-persistent-net.rules

  • Open /etc/sysconfig/network-scripts/ifcfg-eth0
  • Remove value of HWADDR and comment or UUID from configuration
  • Reboot server
  • Add HWADDR value in ifcfg-eth0  from /etc/udev/rules.d/70-persistent-net.rules  file
  • Restart Network Service

Ethernet not up After Clone Virtual Machine

Error: ifup: vmnics device eth0 does not seem to be present, delaying initializing

Solution: Follow below procedure to resolve this issue in cloned virtual machine:

  • Stop Network service

         # /etc/init.d/network stop

  • Remove  /etc/udev/rules.d/70-persistent-net.rules File

         # rm -rf   /etc/udev/rules.d/70-persistent-net.rules

  • Open /etc/sysconfig/network-scripts/ifcfg-eth0
  • Remove value of HWADDR and comment or UUID from configuration
  • Reboot server
  • Add HWADDR value in ifcfg-eth0  from /etc/udev/rules.d/70-persistent-net.rules  file
  • Restart Network Service

Virtual Machine Backup in VMWare

Description : Here I have describe how to take Virtual Machine backup using shell script

Procedure :

  • Download  script from below URL:

https://github.com/lamw/ghettoVCB

  • Upload it in server  using winscp
  •  Login ssh console using putty
  • Go to  location where you have copy  extracted folder [ghettoVCB-master]
  • Give execute permission to  ghettoVCB.sh file using below command

# chmod +x ghettoVCB.sh

  • Create one file name vmbackup where write all vm name  like as follow:

VM1

VM2
VM3
  • Open ghettoVCB.sh file and make changes as follow: 

VM_BACKUP_VOLUME=/vmfs/volumes/596d4786-c3022a80-2c0b-843dc6ec482a/Backup/vmbackup    ### Backup Location ####


VM_BACKUP_ROTATION_COUNT=2    ### Backup Retention File ###
  • Run below command to start backup

# ./ghettoVCB.sh -f vmbackup

  • To set cron job in VMWare open  /var/spool/cron/crontabs/root file

30   4    *   *   6   /bin/sh /vmfs/volumes/596d4786-c3022a80-2c0b-843dc6ec482a/Backup/ghettoVCB-master/ghettoVCB.sh -f  /vmfs/volumes/596d4786-c3022a80-2c0b-843dc6ec482a/Backup/ghettoVCB-master/vmbackup 


Note: In example I have set backup at every saturday 4:30 AM backup

Virtual Machine Backup in VMWare

Description : Here I have describe how to take Virtual Machine backup using shell script

Procedure :

  • Download  script from below URL:

https://github.com/lamw/ghettoVCB

  • Upload it in server  using winscp
  •  Login ssh console using putty
  • Go to  location where you have copy  extracted folder [ghettoVCB-master]
  • Give execute permission to  ghettoVCB.sh file using below command

# chmod +x ghettoVCB.sh

  • Create one file name vmbackup where write all vm name  like as follow:

VM1

VM2
VM3
  • Open ghettoVCB.sh file and make changes as follow: 

VM_BACKUP_VOLUME=/vmfs/volumes/596d4786-c3022a80-2c0b-843dc6ec482a/Backup/vmbackup    ### Backup Location ####


VM_BACKUP_ROTATION_COUNT=2    ### Backup Retention File ###
  • Run below command to start backup

# ./ghettoVCB.sh -f vmbackup

  • To set cron job in VMWare open  /var/spool/cron/crontabs/root file

30   4    *   *   6   /bin/sh /vmfs/volumes/596d4786-c3022a80-2c0b-843dc6ec482a/Backup/ghettoVCB-master/ghettoVCB.sh -f  /vmfs/volumes/596d4786-c3022a80-2c0b-843dc6ec482a/Backup/ghettoVCB-master/vmbackup 


Note: In example I have set backup at every saturday 4:30 AM backup