Category Archives: Virtualisation

All about virtualisation. VirtualBox, VMware Workstation, ESXi and vCenter, qemu

VMWare ESXi: Redirect USB devices

Hi,

VMware ESXi offers the ability to redirect USB devices from your Workstation to a VM located on a ESXi Server.

There 3 requirments:

  • VM must have at least virtual machine version 7
  • A virtual USB Controller must be add to the VM
  • VMWare Tools must installed within the virtual machine

Continue reading VMWare ESXi: Redirect USB devices

Advertisment to support michlstechblog.info

VMware: x64 virtual machines within nested ESXi Hosts

Hi,

if you plan to run an ESXi Host within an ESXi Host and enabling support for 64-bit for VMs some additional settings are requiered:
Continue reading VMware: x64 virtual machines within nested ESXi Hosts

VMware: PowerCli Scripts in native Powershell

Hi,

when you want to execute your PowerCli script you have to start the “VMware vSphere PowerCLI” shell before. But, for example Schedule Tasks, it whould be nice that the script load the PowerCli environment itself. Then you simply have to start your script like this

%Systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -File YourPowerCliScript.ps1

To load the PowerCli script Environent in your powershell script add this lines at the top of your script.
Continue reading VMware: PowerCli Scripts in native Powershell

VMware vSphere: Create a linked clone with Powercli

Hi,

linked clones have some advantages:

  • New virtual machines are rapidly deployed. The initial task is only to reference to a snapshot of an existing virtual machine. No virtual disk file(s) will be copied at this time.
  • They save disk space. Because only the space difference to the origin snapshot is allocated.

I found no option in the vSphere respective the Webclient to create one, but PowerCli provides this. Lets do it.
Connect to vCenter

Connect-VIServer vcenter.subdomain.domain.local

Define the virtual machine which is the origin of the linked clone, and the Snapshotname on which the linked clone based.

$sOriginVM="mastervm"
$sOriginVMSnapshotName="mastervm_linkedclone_snap"

Continue reading VMware vSphere: Create a linked clone with Powercli

VMware ESXi: Setting up NAT with a linux virtual machine

Hi,

other than the Workstation, VMware ESXi does not has the functionality to “NATting” virtual machines network traffic into a public network.

My approach to implement NAT is a virtual machine with a slimmed-down (Debian) Linux.

These virtual machine has two network interfaces. The first interface is connected to a vSwitch called “Public LAN” with access to the public LAN, the second interface is connected to a vSwitch which has no physical adapter attached to and is called “NAT Network”. On the NAT interface a DHCP server is assigning IP Addresses.
Continue reading VMware ESXi: Setting up NAT with a linux virtual machine