Showing posts with label VMware. Show all posts
Showing posts with label VMware. Show all posts

Wednesday, March 11, 2015

Nesting Hyper-V with VMware ESXi 5.5

This weeks posting focuses on the setup of my home virtual lab.  I recently setup my home lab consisting of the following specs:
  • Supermicro X7DAL
    • 2 - Quad Core Intel Xeon E5440 @ 2.83 GHz (8 vCPUs)
    • 2 - NICs
    • 24 GB of RAM
    • 2 - 1 TB Hard drives
  • Evaluation version of ESXi 5.5
Most of my experience has been with VMWare so I choose this as my base system.  Now I wanted to learn more about Hyper-V and have read it could be nested within ESXi.  The following will guide you through configuring a ESXi 5.5 system to allow for nested Hyper-V usage.

In some places there are multiple ways to accomplish the same process through the vSphere client, CLI, or using a tool like WinSCP.  The end result is to modify the config files so how ever you feel comfortable.  I will be utilizing WinSCP to access the files and modify using a Windows text editor.  You can download WinSCP here: http://winscp.net/eng/index.php

  1. To start we need to ensure SSH access is enabled.  I configured mine through vSphere client but you could do this through local access also.
    • Launch vSphere and connect to ESXi system
    • Ensure your system is select in left navigation box
    • Click "Configuration" tab in right navigation box
    • Under software click "Security Profile"
    • Click "Properties" for "Services"
    • Select "SSH" and click "Options"
    • Select desired startup policy
      • I choose to automatically start
    • Click Okay until back at main vSphere page
  2. Now we need to modify our ESXi config file.  This file is located at /etc/vmware/config.
    • Launch WinSCP
    • Connect to your ESXi server through a SFTP connection
    • Navigate to root level and then to /etc/vmware/
    • Select config and Edit
    • Add the following
      • vhv.allow = “TRUE”
    • Save and close the editor
  3. Next we need to create the Hyper-V system profile, we will not be installing yet.
    • Go and create a new VM with specs you desire
      • I configured mine with following:
        • VM Hardware version 8
        • 4 vCPUs
        • 12 GB of RAM
        • 2 NICs
        • 40 GB Thin Hard drive
        • 100 GB Thin Hard drive
  4. Now we need to edit the VM Profile
    • In WinSCP navigate to VM location
      • /vmfs/volumes/[DateStore]/[VM Name]
    • Select [VM].vmx file and Edit
    • Add the following lines:
      • monitor.virtual_exec = "hardware"
      • hypervisor.cpuid.v0 = "FALSE"
    • Save and close the editor
  5. Before we install our OS we still need make some changes to our VM settings
    • Within vSphere access your VM's settings
    • Select "Options"
    • Enable CPU/MMU Virtualization for our VM
      • Under Advanced Select "CPU/MMU Virtualization"
      • Select "Use Intel VT-x/AMD-V for instruction set virtualization and Intel EPT/AMD RVI for MMU virtualization"
    • Expose CPUID to guest
      • Under Advanced Select "CPUID Mask"
      • Select "Expose the NX/XD flag to guest"
      • Click "Advanced"
      • Locate line ecx and modify to following:
        • ---- ---- ---- ---- ---- ---- --H- ----
      • Okay back to main vSphere window
  6. Finally we can install our Hyper-V OS
    • Proceed to install as normal and enjoy creating Hyper-V VMs within ESXi environment.

Following resources we used:

Monday, June 16, 2014

vSphere Client and Domain Controller

Recently in my new virtual lab I tried to install vSphere Client 5.5 on a MS Server 2012R2 Domain Controller.  To my dismay I got the following message:

"vSphere 5.5 Client cannot be installed on a domain controller"

I immediately hit Google to find a resolution.  It took about 20-30 minutes before I came across Sean LaBrie's blog "The Day to Day Findings of an IT Engineer"

In his post back on April 15, 2014 "Running into this error?" he had the same issue.

To resolve the issue you must run the installer with following switch: /VSKIP_OS_CHECKS="1"

So if you had saved the installer to your C:\ drive the command would look like this in RUN:

C:\VMware-viclient-all-5.5.x-xxxxxxx.exe /VSKIP_OS_CHECKS="1"

Once I ran the installation like this it went off without an issue.  Wanted to repost Sean's fix to help other find it quicker.

Coming back soon...

Hello everyone.

I must apologize for my failure in keeping up with my blog.  There have been several personal issues that have eaten up my time.

I have lost of content stored up and just need to make my way through it and get it posted.

Some changes I plan to add are:

  • Monthly product reviews.  I have several free apps and other software that I want to share and will get my opinions out there.
  • PowerShell scripting
  • Active Directory
  • VMware - I have finally got my server and thus my practice lab setup.
Drop me a line if you have a product you would like me to check out or any other areas you would like to hear about.


Monday, October 28, 2013

New Vulnerability Source

We recently had a visit from the FBI to discuss our system security as we are becoming more of an international player.

One of the source they provided me is US-cert.  There are several newsletters you can register for.

I received my first issue of US-CERT Cyber Security Bulletin (https://www.us-cert.gov/ncas/bulletins/SB13-301) today.

A quick glance down the list showed some surprising issues I had to verify on our network.

WatchGuard and VMware: Glad to report I was already patched and no issues there.

Highly recommend signing up for at least this newsletter.