Category Archives: Virtualization

Setup Proxy in SUSE/VCSA

To setup proxy manually in VCSA 5.5 login as root and look into the following file:

/etc/sysconfig/proxy

PROXY_ENABLED=”yes”

HTTP_PROXY=”http://<IP address or FQDN>:<port_number>”

HTTPS_PROXY=”http://<IP address or FQDN>:<port_number>”

FTP_PROXY=”http://<IP address or FQDN>:<port_number>”

NO_PROXY=”localhost, 127.0.0.1″

 

If you need to authenticate via proxy

Create a file in your home directory,

/root/.curlrc with permissions 644

and contain the following:

# Proxy credentials

proxy-user = “<username>:<password>”

source the file to apply the changes

source /root/.curlrc

 

Windows machine gets suspended when inactive in VMware

Windows 8, Windows 8.1, Windows 10 get suspended or go to standby mode when are inactive for more than 5 mins. The issue is related to mobile devices which OSes were designed for and battery savings which disable some of the services such as RDP and users cannot login to machines.

In order to address the issue in VMware, a machine needs to be powered down and .vmx file needs to be modified. There are two ways of doing it:

  1. Directly via ssh and using text editor to append the following to <vm_name>.vmx file: suspend.disabled=”TRUE” save changes and exit file.
  2. Using vSphere Client by right clicking the machine and edit settings. Navigating to Options -> Advanced -> General and clicking ‘Configuration Parameters’ button. \
    1. Select ‘Add Row’ button.
    2. Name: suspend.disabled, Value: True
  3. Save settings and power the mahcine back on.

 

Incompatible device backing specified for device ’12’

While cloning one of my templates received the following error: “Incompatible device backing specified for device '12'.

VMWare tools were updated to the newest version and machine was powering on no problem.

To resolve the issue make sure that CD-ROM properties are set correctly.
“Edit the settings” of the virtual machine:
1) Remove the CD-ROM assigned as the device is probably pointing to some non-existing location,
2) If the device is set to Host Device change it to Client Device,
3) You may also want to try to point the device to some local ISO file if you find it easier.

How to verify if CPU is 64-bits compatible without a reboot

If you are running a HA machine and want to make sure that your hardware will support 64-bits guest operating system you can run the following command before rebooting machine and checking the BIOS option:

# esxcfg-info|grep "HV Support"

The output will determine if the machine is 64-bits compatible:

0 - VT/AMD-V indicates that support is not available for this hardware.
1 - VT/AMD-V indicates that VT or AMD-V might be available but it is not supported for this hardware.
2 - VT/AMD-V indicates that VT or AMD-V is available but is currently not enabled in the BIOS.
3 - VT/AMD-V indicates that VT or AMD-V is enabled in the BIOS and can be used.

More information here.

Fixing eth0 in cloned SLES 11 VMware

After cloning SUSE Linux Enterprise Server in VMware its network interface card is assigned to eth1 as opposed to eth0. Thus, no  remote control is possible.

To fix the issue follow those steps:

  1. Navigate to /etc/udev/rules.d
    cd /etc/udev/rules.d
  2. edit the following file: 70-persistent-net.rules
    vim 70-persistent-net.rules
  3. Comment out the second interface(eth1) and replace the eth0’s mac address with eth1:Original file:
    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:cc", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

    Modified (fixed) file:
    #PCI device 0x8086:0x100f (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


    #PCI device 0x8086:0x100f (e1000)
    #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:aa:bb:dd", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

  4. Save the file and exit it.
  5. Reboot the machine and you should be all set.