Posted on

File Explorer hangs

File Explorer, the program you use to view folders and files crashes. The whole computer appears to be frozen.

SOLUTION

Hit Windows+R to open the Run box. Type in cmd to search for Command Prompt. Right-click Command Prompt and choose Run as administrator on the menu.

Type this sequence of commands

  1. Type netsh in Command Prompt > press Enter.
  2.  Type winsock in Command Prompt > hit Enter.
  3.  Type reset in Command Prompt > hit Enter.
Posted on

Ghetto backup for all (part 1)

Why to use Ghetto ?

There are a lot of backup softwares for vmware virtual machine and some are free, but in a scenario it should not be possible to use one of these : for example, if you have vmware esx hosts with old versions (4.0,5.5).

Prepare connection to esx host  via SSH

Usually you get connection to esx host using vsphere client, but you have to use ghetto script directly inside esx operating system. So you need to operate using a prompt via ssh. Download, for example, putty : https://www.putty.org/

Install putty.

SSH port in esx host is number 22. To understand if this port is open, you could open a dos prompt and type

telnet your_esx_ip_address 22

you should recive some response.

Enable SSH on the ESX Host

By default SSH is disabled on an ESXi host.

  1. Open and login to the vSphere Client
  2. Click on the configuration tab and then on Security profile
  3. Click on Properties and Remote Tech Support (SSH)
  4. Click on Options and choose the startup policy.

ESX user for SSH

To connect to esx host via putty you need to create a user on esx. Open vsphere client.

  1. Log in to the vSphere Client as a root user.
  2. Click Users & Groups.
  3. Right-click on a blank area and click Add.
  4. Enter a username and password. Confirm your password.
  5. Select Grant shell access to this user.
  6. Select root group from the dropdown and click Add > OK.

 

How to upload script on esx

Ghetto script is a file and you will have to upload on esx server this file. To do this task we”l use for example WinSCP that is a free and open-source file transfer utility for Windows. It can be used to transfer files between a local and remote machine over SSH. You can download it from here : https://winscp.net/eng/download.php

Install it. Now you have all tools and we can start to work on Ghetto.

Ghetto script

First of all you need to download ghetto from github repository : https://github.com/lamw/ghettoVCB   

Unzip it. Open with an editor the file ghettoVCB.sh. You have to update only one line of script :

VM_BACKUP_VOLUME=/vmfs/volumes/mini-local-datastore-hdd/backups

That you have to substitute with the path of the datastore where you’ll save the backup of vm.

Two options to find the datastore path :

  1. Via vsphere client : you have to find the list of datastores. Using datastore’s name the path will be : /vmfs/volumes/DATASTORENAME
  2. Usng Putty connection : go in vmfs folder, volumes folder.

Prepare virtual machine list

If you ‘ll call ghetto script , you’ll backup all machines in your esx. Instead you can backup only some specific virtual machine. Create a new file, for example mylist.txt with the esactly name of each virtual machine to backup, in each line.

Upload Files to Esx

So you have two files (ghettoVCB.sh, mylist.txt) to upload in esx environment. To do this you can use WinSCP. When the Login dialog pops up click on New Site, enter the IP address in the hostname field, the username and password and then click Login.

WinSCP window is divided in two part : on the left side there is your computer, on the right side there is the esx environment. On esx, create a new folder and upload in it the two files.

Prepare ghetto script to execute

Double click on the PuTTY shortcut , enter the IP address of the ESX  and click Open. Enter the username and your password and you should now be connected.

To continue you need to have administrator (root) priviliges. Write

su -

and enter the password of root user.

Now you need to give execution privileges to .sh file. Navigate in the folder where you have put your files and write the command

chmod +x ghettoVCB.sh

Run the script

Write the command :

./ghettoVCB.sh -f mylist.txt -l output.txt

This command will backup all the virtual machines written in mylist.txt and will write the log of process in the file output.txt in the same folder.

Posted on

prerequisites to install veeam backup and replication

To install Veem Backup and Replication on Windows 2012 server, you need :

  1. Sql server 2014 Exprees
  2. Net Framework 3.5 (install it directly from your windows server). Necessary for Sql server Managment Studio 2014
  3. Sql server managment studio 2014
  4. From Microsoft® SQL Server® 2014 Feature Pack (https://www.microsoft.com/en-us/download/details.aspx?id=42295), you have to download and install
    1. SQLSysClrTypes.msi
    2. SharedManagementObjects.msi
  5. MICROSOFT® REPORT VIEWER 2015 RUNTIME
  6. Windows 10 Universal C Runtime

 

Posted on

vmware accreditation in new vmware partner portal

I had some problems finding the VSP and VTSP courses to get fresh as a vmware partner in the new Partner Connect portal. So i decided to write few sentences about this.

STEPS

  1. login to partner connect
  2. click on the “Training” tab and then click “Partner University”
  3. On the left side menu of webpage click on “Accreditation”
  4. Drop down the webpage there you will find the VSP foundation course and next to that ethics and compliance training also available.

refer the screenshot

Posted on

Links for vmware