Wednesday, July 13, 2016

How to Install Windows 7 or 10 Using VMware PVSCSI Drivers

Ok. So... installing VMware PVSCSI Adapters on a VM is a pain in the neck if you don't know how to do it. So...I want to save people some time. I figured out this is the fastest and less complicated process to get this done. These VM's are good for anything that requires speed.

Thanks Carl for your blog for VMware View! http://www.carlstalhood.com/vmware-horizon-7/

1. Reference VMware KB article: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1010398

1a. The trick is to use 2 CD/DVD drives!!






1b. Add your second (2nd) CD/DVD!!


2. Create your VM. Make sure that your CD/DVD IDE is 0:0 or it won't boot to Windows. 
VMware Tools .ISO file should be 0:1.


3. DO NOT use the VMware Tools that comes with the ESXi host installation. Use the Latest VMware Tools. As of this blog entry. The latest VMware Tools release is 10.0.9. This is the Official Location for VMware Tools. Do not download it from anywhere else. https://packages.vmware.com/tools/releases/index.html 


4. Boot the VM and boot into Windows. This works for either Windows 7 or Windows 10.


5. Select Custom. Don't be dumb and upgrade an image for VMware View or Images. Start over and do it from scratch. You're waiting for a headache to come if you do an upgrade. Plus, it's just plain old lazy.


6. You won't see any drives listed because the PVSCSI driver is not loaded into the VM yet.


7. Browse for the driver. Select the VMware Tools DVD and drill down the the release.



8. Remember to use the right architecture for your VMware Tools. If it's x86 or x64. 



9. This is key and vital. You have to make sure that the NEXT button is not greyed out. As long as you followed the steps above it won't be greyed out. If it's greyed out. You did something wrong. Go back and do it over.


10. Go get some juice! It's going to take a little while.


11. If you doing a VMware Horizon View VM or Citrix XenDesktop. Use Carl's blog. It's very good!! 

VMware Horizon View: http://www.carlstalhood.com/vmware-horizon-7/
Citrix XenDesktop: http://www.carlstalhood.com/xaxd/




Tuesday, April 19, 2016

How to Fix a Nutanix CVM being Stuck in Maintenance Mode

How to Fix a Nutanix CVM being Stuck in Maintenance Mode

1. ssh into the Nutanix cluster VM

2. cluster status

2. ncli host list (This will give you the host ID)

################
    Id                        : 9911991c-1111-093y-11yb-blahblah88::61810
    Uuid                      : 5blahblabla99-5227-43d9-ae05-243hahadummy
    Name                      : NTNX-SERIAL-X
    IPMI Address              : 10.10.3.3
    Controller VM Address     : 10.10.2.2
    Hypervisor Address        : 10.10.1.1
    Host Status               : NORMAL
    Oplog Disk Size           : 428.02 GiB (459,587,190,986 bytes) (0.7%)
    Under Maintenance Mode    : false (Hypervisor upgrade)
    Metadata store status     : Metadata store enabled on the node
    Node Position             : Node physical position can't be displayed for this model. Please refer to Prism UI for this information.
    Node Serial (UUID)        : VENDORSERIAL
    Block Serial (Model)      : VENDORSERIAL (NODE MODEL)
###############

3. ncli host edit id=9911991c-1111-093y-11yb-blahblah88::61810::61810 enable-maintenance-mode="false"

4. cluster status

5...sing...dance...rejoice and scream BOOYAH!!!! WARNING: Happy dancing in cubicle or workspace is Highly Recommended and preferred.

Friday, March 18, 2016

VCSA vmware-vpxd Service Won't Restart After Upgrading to 6.0 U2

You navigate to the VMware Web Client and you get this 503 Error:

503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http20NamedPipeServiceSpecE:0x7fe4a805cc90] _serverNamespace = / _isRedirect = false _pipeName =/var/run/vmware/vpxd-webserver-pipe)

Cause: (SSL Certificates wouldn’t issue automatically after reboot for service vmware-vpxd

Compounded Problem: (Clearing logs under ~/.* **root**) – Specifically, clearing ~/.pgpass 

(Lesson Learned: NEVER EVER CLEAR FILES UNDER ~/. Except .bash_history on templates creation only!!!)

Fix: Kill all the services running vpxd

1. ps -ef | grep vpxd
2. kill ###
3. Re-add the ~/.pgpass file with the PostGreSQL password
4. vi /et c/vmware-vpx/embedded_db.cfg
5. Copy the password you see between PGUSER_PASSWORD=’password here
6. Put the password back in ~/.pgpass

localhost:5432:VCDB:postgres: password here
localhost:5432:postgres:postgres: password here
localhost:5432:VCDB:vc: password here

7. Check /etc/hosts and make sure config is there. 10.10.10.10 hostname.domain.com hostname 

8. service vmware-vpxd status (make sure it’s not running)

9. service vmware-vpxd start

hostname:~ # service vmware-vpxd start
vmware-vpxd: VC SSL Certificate does not exist, it will be generated by vpxd
Waiting for the embedded database to start up: success
Executing pre-startup scripts...
vmware-vpxd: Starting vpxd by administrative request.
success
vmware-vpxd: Waiting for vpxd to start listening for requests on 8089
Waiting for vpxd to initialize: ...success
vmware-vpxd: vpxd has initialized.

hostname:~ # service vmware-vpxd status
vmware-vpxd is running

10. That's it!!!

Reference:


Thursday, March 10, 2016

How to Convert a CD/DVD to an ISO File

Do you need to convert a CD or DVD to an ISO file for a virtual environment, etc?

Windows:

1. Download InfraRecorder (Be aware of Junkware for FOSS Software on Windows). IR is on the GPL: http://infrarecorder.org/?page_id=5

2. Install the InfraRecorder Software (Next...Next...Done)



3. Launch the Application



4. Click on "Read Disc"



5. Select your location to save the .ISO file



6. Let it finish....it's baking! =)



7. Click Ok. Upload, Save or do whatever with the ISO! You can also create a bootable USB. (I use Rufus...it's reliable and fast: http://rufus.akeo.ie/ )

Ubuntu Linux or Mac: Refer to this Article on HowToGeek

http://www.howtogeek.com/228886/how-to-create-iso-files-from-discs-on-windows-mac-and-linux/

Tuesday, December 22, 2015

How to enable VMware Update Manager in the vSphere Web Client

HP VIB Depot (New): http://vibsdepot.hpe.com/index.xml   
Dell VIM Depot: http://vmwaredepot.dell.com/index.xml

Thanks Jon Munday for the links! 

1. Make sure that you are using and have VMware vCenter Single Sign On enabled and active.



2. Verify that you have VMware Update Manager enabled as a plugin (verify that you are running the latest version of VUM. This release is after 6.0U1a. *Remember that you have to have the permissions to see the VMware Update Manager. If you don't see it under your account, check the permissions.



3. After you have verified that you have the latest version of VMware Update Manager* installed on your Update Manager Server (*This runs from a Windows Server. VMware Update Manager is NOT integrated into the VCSA appliance yet).

4. When you log in. You should see the VMware Update Manager under Monitoring.



5. Navigate and operate as normal.



6. VMware KB for issues with custom SSL certificates:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2054748

Friday, November 6, 2015

How to Uninstall Software Remotely via Command Line on Windows Using WMIC

1. Open PowerShell or Command Prompt - (Run As Administrator)

2. > wmic

3. >/node:HOSTNAME product get name,version (*This pulls the list of installed software on the workstation)


4. >/node:HOSTNAME product where name=”Package Name” call uninstall