Desktop full restore by VMware Horizon Mirage

I’m part of a project where we can solve approximately 200 dekstop (PC base POS) security updates. This PCs are connecting to our company HQ by VPN over 3G connection. This is a limited size usage solution, so we have only x GB traffic in one month for whole environment. If we overuse this we will pay for our provider.

It was the main reason why we have started install the VMware Mirage system to try it.

Mirage can:

  • Split Base layer from App layer
  • Compress network traffic
  • In case of network problem
  • In case of network problem, continuous U/D traffic from position of problem
  • Easy restore to earlier snaphot / state

We tried the latest case in our POC system. The original conception was that: we remove a Windows security update manually from PC, and Mirage should have restored it to previously status.

We uninstalled the update, restarted the PC, and we couldn’t believe our eyes. Windows crashed!

pc_full_restore_by_vmware_mirage_windows_death
Hungarian Windows 🙂

Ok, don’t panic, it should have been a real situation. Let’s look what we can do in this situation?!

We find this article on VMware Documentation Site:
http://pubs.vmware.com/mirage-58/topic/com.vmware.mirage.admin.doc/GUID-20C1B965-0C9A-4C55-8C2C-85F9BCE97437.html

Follow steps in the article that you can create a bootable USB pendrive wich consist of VMware Mirage Agent.

It was our command under test:

C:\BootUSB>win7usb.cmd F:\ C:\BootUSB\MirageClient\MirageClient.x64.138892.msi 192.168.104.45 false 1 C:\BootUSB\Drivers

(You will find this “win7usb.cmd” in Mirage install zip file)

pc_full_restore_by_vmware_mirage_boot_usb_01

pc_full_restore_by_vmware_mirage_boot_usb_02

When you have connection between PC and Mirage server, the server will recognize the PC.

pc_full_restore_by_vmware_mirage_pending_restore_01

Right click and select restore option, and follow the wizard.

pc_full_restore_by_vmware_mirage_pending_restore_02

On the PC’s sceen you will see similar this.

pc_full_restore_by_vmware_mirage_pending_restore_03

That’s it, your PC/POS was restored, and it was only 45 min in our test environment! 🙂

VMFS 6 Upgrade

We have tested our new demo Dell EMC Unity 400F storage and we conneceted this test to our vSphere 6.5 test. 2 in 1 solution I really like it 🙂

I red White Pepaer about vSphere 6.5 Storage, and i find in this article, VMware introduce new VMFS. I want upgrade our VMFS version to latest version. Like always i have started search upgrade option, but i couldn’t find it.

I started read about whats new vSphere 6.5 Storage, and i find this in VMware Document Center: https://pubs.vmware.com/vsphere-65/topic/com.vmware.vsphere.storage.doc/GUID-7552DAD4-1809-4687-B46E-ED9BB42CE277.html

End of this article I recognize why I couldn’t find any upgrade button 🙂

“Upgrade. After you upgrade your ESXi hosts to version 6.5, you can continue using any existing VMFS5 datastores. To take advantage of VMFS6 features, create a VMFS6 datastore and migrate virtual machines from the VMFS5 datastore to VMFS6 datastore. You cannot upgrade the VMFS5 datastore to VMFS6.”

 

Enable SSH VMware vRealize Operation Manager (vROps 6.x)

We have investigated our problem with VMware Support and they want run a query in Postgres database. Usually I use Putty for SSH connection, but before I could do this I should on the ssh on vROps:

  1. Open vROps Console and press “Alt+F1” to switch console
  2. Type “root” user
  3. In default vRealize root user hasan’t password
  4. Press enter for Old password and the promt will change New password
  5. Type new password and type again
  6. When we are able to login by root type: “chkconfig sshd on”
  7. Start service: “service sshd start”

Go back to Putty and connect to vRealize Operation Manager by ssh.

Upgrade from single vCenter server on separate DC to Linked mode common SSO domain with external PSC solution

We use DR site and SRM for protection our applications like SAP. Both data center used to single node vCenter server witch server served all VMware component: vCenter Server, SSO, Inventory Service and Web Client. It was a separate sso domain. In this year we have upgraded our VMware infrastrucuture from 5.5 to 6.0 and SRM too.

The recommendation says use external PSC to SRM envinronment. So we had to upgrade single vCenter servers to external PSC environment. Becosuse we hade to this i would have liked to use common SSO domain and Enhanced Linked Mode. The usage of this architecture are easier for Administrators and anybody else.

So in this article i will write about how you can do that.

First of all look where is the bigining and what is our goul. The picture below you can see, at the begining. We had two separated vCenter server and we can upgrade this envinroment to a totally different architecture. External PSC, Common SSO and Enhanced Linked Mode. Let’s start.

Logical view
Logical view

Here is official doccumentation of supported upgrade path:
http://pubs.vmware.com/vsphere-60/topic/com.vmware.vsphere.upgrade.doc/GUID-78B9F91E-36BE-4B76-B214-BF8229576C30.html

1 – Install two External PSC server each site (DC1 and DC2)
vCenter Server for Windows Requirements: http://pubs.vmware.com/vsphere-60/topic/com.vmware.vsphere.install.doc/GUID-F072712B-F568-4C3A-A4BC-EE6856D50CDA.html

2 – Install first PSC server on DC1

install_external_psc_001

install_external_psc_002

install_external_psc_003

install_external_psc_004

3 – Install the other PSC server witch are going to join to common SSO domain and part of link (vsphere.local)

install_external_psc_005

install_external_psc_006
In this point you can join to PSC1 domain, Select “Join a vCenter Single Sign-On domain” and fill the fields.
install_external_psc_007
Click to “OK” button
install_external_psc_008
Create a new site name, in this eg.: Site2 (eg.: use geographically separation like LA)
install_external_psc_009
This is a summary tab where you can review the final settings

Ok, now we have two Platform Service Controller in common SSO domain, and Enhanced Linked Mode configuration. Next step is we can pin our vCenter Servers to PSC servers. Becouse we used to single vCenter solution, we decided to uninstall the vCenter server from Windows exept SQL DB, and reinstall only vCenter role. You will see steps of resintall below.

!!!! Before you uninstall your vCenter Server role from OS, export all users and permission settings. I recommend for you this VMware Kb Article: https://kb.vmware.com/kb/0000172

We don’t use complex permission system, therefore we handle this by manul solution.

4 – Install vCenter Server whitch will be pin to PSC1-DC2

install_vcenter_server_001

install_vcenter_server_002
Add Platform Service Controller server where want to pin this vCenter Server (in this example PSC1-DC2.domain.loc)
install_vcenter_server_003
In our environment we use a dedicated local user for Service Account
install_vcenter_server_004
This is the DSN created earlier. Type User/Pass for connection to SQL DB
install_vcenter_server_005
This is a very IMPORTANT step!!! You CAN choose “NO” or else your vCenter DB will be erese.

5 – Install the other vCenter server to PSC1-DC1

I don’t show the same steps as above, i will show you the only one different witch is you can type the other Platform Service Controller FQDN or IP address.

install_vcenter_server_006

I hope this article will help for your upgrade. If you have any question pls. don’t hesitate contact me!

Resetting VMware vRealize Infrastructure Navigator database

Today we have deployed VMware vRealize Infrastructure Navigator appliance. This app is part of our vRealize Operation Manager Advanced and Enterprise environment. This intriduction is a new project at my Company, and I’m glad to lead that.

The reason why I’m writing this post, because when we deployed Infrastructure Navigator, we got this error message: “An unknown VM access error has occurred”

We find this article: http://www.thegurleyman.com/how-to-fix-infrastructure-navigator-error-an-unknown-vm-access-error-has-occurred/

Unfortunately it isn’t worked 😦 but I’m sharing this link, maybe will help for somebody who are looking for solution similar problem.

We find an other blog: http://www.virtualiseme.net.au/index.php/resetting-vin-database/ whitch explan how could reset database of Infrastructure Navigator.

  1. Log onto the VIN server as root
  2. Run the command : monit stop vadm-engine This will stop the VIN service
  3. Execute the file: /opt/vadm-db-config/bin/drop_db.sh This will drop the VIN database
  4. Execute the file /opt/vadm-db-config/bin/update_db.sh This will re configure the database
  5. run the command: monit start vadm-engineThis will start the VIN service The appliance should then start preparing the environment.
  6. Another good command to run is monit summary this will show the service status.

A good advice: don’t overwrite Infr. Navigator host name, because the first step won’t be work!!