Instalando o Hyper-V no Windows Server 2012 e 2016 via PowerShell

Olá amigos, satisfação em escrever novamente para vocês.

Hoje veremos como é simples instalar o Hyperv-V no Windows server via PowerShell.

Antes de criar um ambiente virtualizado, você precisará instalar e configurar a função Hyper-V em seu servidor Windows 2008, Windows 2008 R2, Windows 2012 ou Windows 2012 R2. O procedimento é praticamente o mesmo para todos os sistemas operacionais acima.

Você pode instalar a função através do PowerShell ou com GUI “Graphical User Interface”. Hoje veremos apenas como ativar via powershell.

Abra o PowerShell e execute o comando abaixo para determinar o nome da função que você deseja instalar:

Get-WindowsFeature 

Observe que o nome da função que queremos instalar é o Hyper-V

Digite:

Install-WindowsFeature Hyper-v –IncludeManagementTools

Nota: A adição da opção –IncludeManagementTools adicionará as ferramentas de gerenciamento gráfico do Hyper-V, caso contrário você terá que instalar as ferramentas separadamente. Você também pode instalar o recurso RSAT-Hyper-V-Tools para adicionar as ferramentas de gerenciamento gráfico.



Assegure-se de que todas as janelas estejam fechadas e que o trabalho seja salvo. Digite Restart-Computer.


O Hyper-V agora está pronto para ser configurado.

Nas próximas postagens mostraremos com instalar o Hyper-V com o o Gerenciador de Servidores gráficos

Continue Reading

Instalando VMware ESXi 6.5

Olá amigos.

Criei um video rapido e simples mostrando como é fácil realizar a instalação do VMware ESXI 6.5 , notem que as configurações são simples e este video será o primeiro da serie que mostra como é simples realizar a configuração do Hypervisor.

Nas próximas semanas devo lançar outro video me aprofundando na interface Web e suas configurações.

Qualquer duvida estou a disposição.

Continue Reading

What’s the difference in provisioning disk on Vmware Vspher

When we are going to create a virtual machine, or when we add a new disk to an existing VM, we are forced to choose the type of virtual disk that we will make available to that machine.

There are currently three types of virtual disk that can be created and made available to virtual machines:

Thick Provision Lazy Zeroed – is a standard “thick” disk, meaning all space is allocated at the time of its creation. In this virtual disk format, any data that exists on the physical device is maintained at the time of creation, and are only “zeroed” as the virtual machine writes its data.

Thick Provision Eager Zeroed – is a “thick” disk that supports some cluster features, such as FT. It also allocates all the necessary space at the time of its creation. The difference to the “lazy” (or flat) format is that the data on the physical device is all zeroed at creation time. The creation time for this type of disc may take longer than the others.

Thin Provision – In this type of disk only a minimum space is used at the time of its creation. As more physical space is needed, the “thin” disk will increase in size, reaching the size initially allocated.

Raw Device Mapping

There is also the possibility of making a RDM (Raw Device Mapping) disk available to the virtual machine. An RDM disk allows a VM to access a storage LUN (Fiber Channel or iSCSI) directly. The RDM disk is actually a .vmdk file created in the datastore that maps to the LUN in storage. It only has some metadata information and notes for the physical disk.

RDM disks can be configured in two different ways: virtual compatibility mode and physical compatibility mode.

In virtual mode, the mapped LUN is presented to a virtual machine exactly as a virtual disk created in a VMFS datastore. The true hardware features of the LUN become invisible to the VM. In virtual mode you can benefit from some features of VMFS, such as “file locking” and “snapshots”.

In physical mode, the VMkernel transfers most of the SCSI commands to the mapped LUN, allowing greater integration of the VM with the LUN. The physical mode is useful in virtualizing machines that have SAN management agent and also in creating clusters between physical machines and virtual machines, or between virtual machines on different hosts.

Continue Reading

How to changing a forgotten password on ESXi

ESXi 5.x and ESXi 6.x

Reinstalling the ESXi host is the only supported way to reset a password on ESXi. Any other method can lead to a host failure or an unsupported configuration due to the complex ESXi architecture. An ESXi does not have a service console. This locking aims to improve the security of the host ski against security breaches and increase availability.

Very Important at the time of installation of ESXI select the installation preserving the datastore.

ESXi 3.x and 4.x
Note: This section does not apply to ESXi.

To change the password for the root user on an ESX 3.x or ESX 4.x host:

Reboot the ESX host.
When the GRUB screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
Use the arrow keys to select Service Console only (troubleshooting mode).
Press the akey to modify the kernel arguments (boot options).
On the line presented, type a space followed by the word single.
Press Enter. The server continues to boot into single-user mode.
When presented with a bash prompt, such as sh-2.05b#, run the passwd command.
Follow the prompts to set a new root user password..
When the password is changed successfully, reboot the host using the reboot command and allow the ESX host to boot normally.

ESXi Server 2.x
Note: This section does not apply to ESXi.

To change the password for the root user on an ESX 2.x host, you must reboot into single-user mode. To do this, perform these steps:

Reboot the ESX host.
When the LILO screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
At the LILO prompt select linux, adding the -s to the end of the line. For example: linux -s.
Press Enter. The system begins to boot. The server continues to boot into single-user mode.
When presented with a bash prompt, such as sh-2.05b#, run the passwd command..
Follow the prompts to set a new root user password.
When the password is changed successfully, reboot the host using the reboot command and allow the ESX host to boot normally.

When the system has finished booting, you can log in as the root user using the new password.

Additional Information in the VMware Knowledge Base Article.

Continue Reading

How to Install and Configure VMware vSphere Hypervisor 6.0 (ESXi 6.0)

1. Register with VMware.com and Download VMware vSphere Hypervisor 6.0

Open the following link in your web browser https://my.vmware.com/web/vmware/evalcenter?p=free-esxi6

Click the License and Download Tab

VMware60-DownloadCenter1

Click Create an Account, to Create an Account and Login to the VMware Download Center. VMware will email you an Activation link which needs to be opened to create the account.

The following page will be displayed when you have successfully logged into the VMware Download Center.

VMware60-DownloadCenter2

Pay special attention to the FREE License information which is displayed, and record this License Number, this will be required in a later article.

Click the download link for VMware vSphere Hypervisor 6.0 – Binaries ESXi ISO Image to download the software required to install ESXi 6.0 and also download the VMware vSphere Client 6.0. The VMware vSphere Client 6.0 software is the client software that allows us to connect and manage the ESXi 6.0 server, this will be required in a later article.

Either use the Download Manager or Manually Download button (which uses your web browser). The CD ISO is only 301MB so should not take too long to download. We have a very slow internet connection, at approx 350 kB/sec, and it takes us approximately 10 minutes to download.

2. Installing VMware vSphere Hypervisor 6.0 (ESXi 6.0)

Write (Burn) the VMware-VMvisor-Installer-6.0.0-2159203.x86_64.iso downloaded in Step 1, to a blank CDROM, using your favourite CD writing software. We use ISO Recorder (http://alexfeinman.com/isorecorder.htm). If you are using remote server utilities, e.g. HP iLo or Dell iDRAC,. you can attach the virtual CDROM drive in the server to the VMware-VMvisor-Installer-6.0.0-2159203.x86_64.iso ISO, so there is no requirement to write a CDROM.

This is a step which is often missed, ensure the BIOS BOOT order is set to BOOT from the CDROM Device or ATAPI device in the server, otherwise the computer will not BOOT from the CDROM.

Power on the Computer, the computer will BOOT from the CDROM, and the following BOOT screen will be displayed

ESXi6.0-CDROM-BOOT

The default option is to BOOT ESXi-6.0.0-2159203-standard Installer after 10 seconds, hit any key will pause the BOOT process.

ESXi6.0-CDROM-BOOT1

At the Welcome to the VMware ESXi 6.0.0 Installation screen Hit Enter to Continue the installation.

3

Press F11 (Function Key 11) to Accept the VMware End User License Agreement (EULA)

2015-01-03-13-39-16-Greenshot

The ESXi installer will scan the computer storage controller for available devices to install ESXi.

5

ESXi can be installed on a USB flash drive, SD card attached to the computer, local SATA, local RAID Array, or Fibre Channel or iSCSI LUN. All these are supported options. As the footprint for ESXi is very small only 1GB is required for the ESXi OS installation.

We have written an EE Article here on How to Backup an ESXi installation on an USB Flash Drive or SD card, for security or redundancy. After you have completed the ESXi 5.1 installation, shutdown the server, remove the USB flash drive or SD card, and duplicate it using our EE Article.

When prompted select a disk to install ESXi on, in the following example, we have two disks connected to this computer, a single 1GB disk, and a 120GB disk. We are going to use the small disk for the OS. (this simulates the USB flash drive!). The larger 120GB disk will be used later for the storage of virtual machines.

6

When prompted, select the keyboard layout and hit Enter to continue. The default keyboard layout is US Default.

7

When prompted enter a root password, confirm the password and hit Enter to continue

8

The following will be displayed

9

When prompted Confirm the Installation on the selected disk and press F11 (Install)
– Function Key 11
All data will be erase, as the disk will be repartitioned.

11

The Progress Bar will confirm installation progress.

22

33

The installation only takes approximately 5-10 minutes, depending upon speed of storage. When the installation has completed the following screen will be displayed.

44

Remove the CDROM installation disk before rebooting. Hit Enter to Reboot. After hitting Enter the follow screen will be displayed and the computer will reboot.

55

ESXi 6.0 will operate in evaluation mode for 60 days. This is the same mode as a FULLY LICENSED ESXi 6.0 server. If you wish to evaluate all the bells and whistles that ESXi 6.0 has to offer, do not register your FREE license. for 60 days, this will allow you to evaluate ESXi 6.0 server fully. On day 59/60, Apply your FREE license to continue using the product, or you will not be able to power on any virtual machines.

3. Configuring VMware vSphere Hypervisor 6.0 (ESXi 6.0)
The following screen is displayed when VMware ESXi 6.0 first boots1

2

3

The server is fully booted when it displays the following screen

4

The default server configuration is to use DHCP, if you do not have a DHCP server issuing IP Addresses on your network you will need to assign an IP Address. We recommend you use a static IP Address for your ESXi Host Server.

Press F2 to Customize System, you will be prompted to enter the root username and password.

5

Select Configure Management Network to change Network Parameters.
Select IPv4 Configuration

6

Set the Static IPv4 address and network configuration, Subnet Mask and Default Gateway, it’s important to set the correct Default Gateway, as this will be used later. Hit Enter to confirm and save the configuration.

7

Select DNS Configuration, enter the correct DNS information for your network, and enter a hostname for your server. Hit Enter to save the configuration.

8

Select Custom DNS Suffixes
Enter your DNS suffix (the domain name for your network). Make sure you have created a DNS A Record in your DNS, so that this server can be resolved correctly through forward and reverse lookups.

Hit Enter to save your configuration.

Press Escape, the following screen will appear, select Y(es) to apply changes.

9

Press Escape to Logout and return to the console screen.

You will notice on the console screen, the server now has a hostname configured, and correct static IP Address.

10

Congratulations you have successfully installed and configured VMware vSphere Hypervisor 6.0.

In the next article in the series, we will connect and continue to configure the VMware vSphere Hypervisor 6.0.

Continue Reading