How to fix cloned virtual machine network interface (Linux host)

Remove the kernel’s networking interface rules file so that it can be regenerated # rm -f /etc/udev/rules.d/70-persistent-net.rules Restart the VM # reboot UPDATE your interface configuration file # vim /etc/sysconfig/networking/devices/ifcfg-eth0 Remove the MACADDR entry or update it to the new MACADDR for the interface (listed in this file: /etc/udev/rules.d/70-persistent-net.rules). Remove the UUID entry Save and […]

vncserver startup script example

NOTE: Make sure to change USER variable with your desired value #!/bin/sh -e ### BEGIN INIT INFO # Provides: vncserver # Required-Start: networking # Default-Start: 3 4 5 # Default-Stop: 0 6 ### END INIT INFO PATH=”$PATH:/usr/X11R6/bin/” # The Username:Group that will run VNC export USER=”mythtv” #${RUNAS} # The display that VNC will use DISPLAY=”1″ […]