Kasraeian

vWorld

As I needed to have some documents on my iPad/iPhone for reading and referring on the go, I checked the possible ways and found out that “Amazon” offering good service for sending personal document to the Kindle devices and software, for more information about this service Kindle Personal Documents Service link can be use.

I’ve configured and sent one “VMware Document” for testing purpose to my iPad and it’s done successfully; this document was in “.mobi” format which is compatible with “Kindle” devices and software.

Today, I looked for a different way to open the PDF documents on the iPad/iPhone devices and preferred to use “Kindle App” on my devices.
It ended using built-in capability of this software and iTunes for passing this one as well, it’s so simple.

1. Open the iTunes application
2. Connect the target device (iPad, iPhone or even iPod Touch) and select it on the left panel
3. Select the “App” tab on the right panel so all application would show up

4. Move to the down of the page and “File Sharing” section would be appearing.
5. Select the “Kindle” from “Apps” list.

6. Press the “Add” button below the “Kindle Documents” and here we go, sending documents to the “Kindle App” :wink:

Tip #1:
File with “.mobi” extension which uploaded using iTunes in this way will appear in the “Book” section but if same file send to the kindle using email address and Amazon Service will be appeared in the “Doc” section.

Tip #2:
File with “.pdf” extension which uploaded using iTunes in this way will appear in the “Doc” section.

Hope you find it useful

Happy New year

No comments

Happy new year to all my friends all around the world.
Hope you have good, healthy and full of high achievement.

I’m getting ready for my next exam and certificate and during my study I created a little tools for better preparation.
I’ve imported all “VMware vSphere 5.0 – Configuration Maximums” data in the “Evernote” so it can be use by “Evernote Peek” on iPad devices for preparing for VCP510 exam.
It will work as “Flash Card” for helping to memorize the “Configuration Maximums”.
Hope you find it useful

Picture 1 of 5

Public URL: https://www.evernote.com/pub/kasraeian/VMvS5CM-FC

No Power Option

No comments

There are times which some VMs are freezing and in these situations there is no option for restart or shutdown.
Today I got same experience and hopefully this time it was in my home lab, if it were in production … :roll:

Anyway, getting to the main point, in these situation admins may wants to terminate currently  halted VM process and restarting it as soon as possible.
I did this before on VMware ESX 3.5 and ESXi 4.x but this time lets check the process on VMware ESXi 5.0.

First of all get access to the host and for this series of action Local TSM or Remote TSM make no difference; There are two command under “esxcli vm process” which are going to be used for this purpose as shown in the below image:

continue reading…

Few days ago, while I was working on my home lab, I changed one of the NFS mounted shared storage on one of my ESXi 5.0 hosts.
As this action happened only on one host, this different name start making some problems. One of these problem was the case of moving VMs from one host to the other while they mounted an ISO file.

I knew the result but as I tested that before but I just I tried to rename the new named shared storage to what it was before, but it generated some error about the duplicated name.
I had to unmounts those different named shared storage and mount them back, so first step should be unmounts current ISO files from VMs.
I used “RVTools” which is written by “Rob de Veij” for checking if any VM have mounted ISO files and there was more than 10 VMs.

continue reading…

After long absence, I’m back with some new posts which I hope they become useful one day.

Code #001 (Disconnecting CD Drives):
Last night, while I was looked for making some changes on my hosts in my home lab, I ran “RVTools” for checking VMs if they mounted any ISO images, so I can disconnect them.
I searched for a while and mixed some scripts with hope of making this possible and finally get it work with bellow script.
In order of disconnecting all CD Drives on all VMs in a data center, first of all, connect to the proper VMware vCenter with “Connect VIServer” command, like:

Connect-VIServer -Server vc.kasraeian.com -User USER_NAME -Password PASSWORD

Then run below code for disconnecting all CD Drives:

Get-VM * | Get-CDDrive | Set-CDDrive -NoMedia -Confirm:$true

Code #002 (Mounting NFS Share on all hosts):
For some reason I faced the problem with NFS share in my home lab so I decided to remove it and add it back to my hosts (two VMware ESXi 5.0).
If you want to use a GUI method using VMware vSphere Client which seems to be easier, you would end up getting some error because of duplicate name of shared storage on different hosts in the datacenter.
So as the VM may want to be migrated (manually by vMotion or Automatically by DRS), you don’t want to mount the same ISO files each time.
For this purpose it’s possible to use VMware vSphere PowerCLI by connecting to the VMware vCenter by bellow command:

Connect-VIServer -Server vc.kasraeian.com -User USER_NAME -Password PASSWORD

After connecting to the central management (VMware vCenter), it’s possible to run following commands and adding specific NFS share with the same name to all hosts:

$THosts = Get-VMHost
New-Datastore -Nfs -Name NFS_NAME -NfsHost HOST_ADDRESS -Path NFS_PATH -VMHost $THosts

As I posted earlier, I have upgraded my lab from VMware vSphere 4.1 to VMware vSphere 5.0; during this upgrade (clean installation in some parts) I added 3rd NICs to hosts and created two vSwitch with one VMKernel for management and storage connection (multipathing) and one dvSwitch for some special VMs and features (FT Logging and vMotion). For some tests I changed configuration 0f VMKernel which connected to the dvSwitch for vMotion. :?:

I planned some upgrade on one of these hosts so tried to migrate VMs to the other host and placing it in the “Maintenance Mode”, just after my first try, I get an error and migration failed when the process was just about 9 percent; :sad:  the screenshot of the error is posted below.

continue reading…

Hi,
I have upgraded my home lab hosts to the latest VMware ESXi 5.0 few days ago but yesterday I find the time to upgrade my vCenter as well; For some reason I cleaned up everything I made in past and did the clean installation.

During this upgrade I bought and added second SSD Drive to lab systems. (A-DATA SSD-S599-64GB).
Cost/Performance comparison of this SSD drive is good at least in my country; the price of about 165$ is good for 280MB/s Read and 270MB/s Write. ;)

Also I have added one more NIC to each host, so both hosts are now have 3 NICs and thanks to VMware I don’t have to load or modify any file on hosts to support these NICs.
VMware ESXi 5.0 now supporting wilder range of devices like Realtek NICs (RTL8168 and RTL8169) with no needs of extra work or money. ;)

After I finished this upgrades, I created a cluster and added my hosts respectively to it; this cluster was configured for just “DRS” feature in the first step and it’s worked fine, after some works I decided to add the “HA” feature to the cluster as well.

So I did it and just after that I noticed some thing very cool on one of my hosts, one of two hosts supporting FT feature which I looked for it previously.
The specification of my both systems are shown in the below screenshot (right screenshot is for FT supporting system).

In next two weeks I’m going to buy another system with AMD processor in order to make it double for supporting FT, I’d post about it, if it’s successful or not and until then I’d work with multiple vESXi (ESX/ESXi can virtualize itself ) hosted on the proper host and check if it’s possible to have “FT” with nested VMs or not.

Hi,
I wrote an application about few weeks ago and in these times I worked on it to improve it more and more.
I hope you find it useful and I’d be grateful to have your comments and suggestion about it.
Please check “VEAM” page for more information about this application.

This post is somehow related to VMware vCLI, it’s about making some changes on Windows OS so vCLI commands can be used from any address in command line. By default, when VMware vCLI installed on Windows OS, it will add two addresses in the “PATH”.

In “Windows Vista/7/2008/2008 R2″ these addresses can be checked by right clicking on the “My Computer” and selecting “Properties”.

In the left panel selecting “Advanced System Settings” and clicking on the “Advanced” tab.

Now pressing “Environment Variables …”

There is “Path” variable in the “System Variables” section, by selecting this variable and pressing “Edit…”, all addresses can be checked; this section would be used for adding new addresses as new value for this variable later on.

Two addresses which added by “VMware vCLI” installation are:

C:\Program Files\VMware\VMware vSphere CLI\Perl\site\bin;
C:\Program Files\VMware\VMware vSphere CLI\Perl\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%S\ystem32\Windows\PowerShell\v1.0;
C:\Program Files\QuickTime\QTSystem

For making all commands available in every directory, I’m always adding following two addresses as well, so I can simply run “vicfg-*”, “esxcfg-*” and “*_session.pl” whenever I want.

C:\Program Files\VMware\VMware vSphere CLI\bin;
C:\Program Files\VMware\VMware vSphere CLI\Perl\app\ssession;

Also I made post before with title of “DCAS-#004 (vCLI and Session Files)” on how to use “*_session.pl” on Windows OS.
Hope this post become useful.