Upgrade vCloud Director for Service Provider to 9.7

Upgrade to 9.7 is little bit more complicated, because you need to upgrade (if you are using it) PostgreSQL.

Step-by-step guide

  1. Put vCloud Director + PostgreSQL DB vm’s into maintenance in monitoring system.
  2. SSH to vCloud VM and shutdown services:

    /etc/init.d/vmware-vcd stop

  3. Start nginx or apache to show temporary web page (this needs to be configured ahead). It’s just for cases, that users are trying to connect and you don’t want to have a lot of calls/tickets why the vCloud is not running/etc/init.d/nginx start

  4. Check that the temporary page is visible.
  5. Do + check a vCloud vm + vCloud DB vm backup

    do a PostgreDB backup

    1. check free spacedf -hsu – postgrespg_dump vcloud > /var/lib/pgsql/vcloud-backup_20200202.sql

    2. check that backup is not zerols -la /var/lib/pgsql/vcloud-backup_20200202.sql

    3. output must look similar to this:-rw-r–r– 1 postgres postgres 4114824617 Feb 2 22:03 /var/lib/pgsql/vcloud-backup_20200202.sql

  6. Do snapshots on both  VMs “vCloud Director” + “PostgreSQL DB”
  7. Installation and upgrade PostgreSQL DB to v.10

    yum install postgresql10-server

    sudo systemctl stop postgresql-9.6.service && sudo systemctl stop postgresql-10.service

    systemctl stop postgresql-9.6.service

    su postgres

    /usr/pgsql-10/bin/initdb -E UTF8 –locale=en_US.UTF-8 -D /var/lib/pgsql/10/data/

    /usr/pgsql-10/bin/pg_upgrade –old-datadir /var/lib/pgsql/9.6/data/ –new-datadir /var/lib/pgsql/10/data/ –old-bindir /usr/pgsql-9.6/bin/ –new-bindir /usr/pgsql-10/bin/

    change /var/lib/pgsql/10/data/pg_hba.conf same as /var/lib/pgsql/9.6/data/pg_hba.conf

    # TYPE DATABASE USER ADDRESS METHOD
    # “local” is for Unix domain socket connections only
    local all all trust
    # IPv4 local connections:
    host all all 127.0.0.1/32 trust
    # IPv6 local connections:
    host all all ::1/128 trust
    # Allow replication connections from localhost, by a user with the
    # replication privilege.
    #local replication all trust
    #host replication all 127.0.0.1/32 trust
    #host replication all ::1/128 trust
    host all all 0.0.0.0/0 md5

    vi /var/lib/pgsql/10/data/postgresql.conf

    listen_addresses = ‘*’


    Disable PostgreSQL 9.6 and enable and start PostgreSQL 10

    systemctl disable postgresql-9.6.service
    systemctl enable postgresql-10.service
    systemctl start postgresql-10.service

    su postgres
    ./analyze_new_cluster.sh
    ./delete_old_cluster.sh

    Remove old PostgreSQL service

    yum remove postgresql96-server

  8. Check that vcloud DB user is owner of the DB in the postgress!!

    su postgres
    psql
    #list DB’s
    \l

    1. if not change owner of DB “vcloud” to user “vcloud” :ALTER DATABASE vcloud OWNER TO vcloud;
      \l
      \q

    2. optional you can do second DB backup on new PostgreSQL versionpg_dump vcloud > /var/lib/pgsql/vcloud-backup_pg10_20190505.sql

  9. upgrade vCloud to 9.7
  10. Upload new version/patch to vCloud VM ( ./vmware-vcloud-director-distribution-9.7.0-14535248.bin )
    ensure that file is executable +x flagchmod a+x vmware-vcloud-director-distribution-9.5.7.0-14535248.bin

  11. Run the installation bin file./vmware-vcloud-director-distribution-9.7.0-14535248.bin

  12. run upgrade script/opt/vmware/vcloud-director/bin/upgrade

  13. Dont start vCloudDriector services after upgrade DB. Manually started Nginx is running!/etc/init.d/nginx stop
    /etc/init.d/vmware-vcd start

  14. Reboot vCloud Director VMshutdown -r -t 1

  15. Check vCloud Director: https://_VCLOUD.DOMAIN/
  16. Run script for checking edge VM

    /opt/vmware/vcloud-director/bin/cell-management-tool edge-ip-allocation-updates –host vcloud.domain.xyz –user administrator –status/opt/vmware/vcloud-director/bin/cell-management-tool edge-ip-allocation-updates –host vcloud.domain.xyz –user administrator –update-ip-allocations
  17. After 1-2 business days delete snapshots + DB backup file.

Homelab 2020

Still in progress… not all HW is in the list.. for now just the CORE HW is in the list… and new homeDC building is being build ..

DC5

Networking:

  • Internet 500Mbit
  • Cisco 2970G
  • Zyxel GS1920

Compute:

DELL R710

  • 2x Xeon
  • 192 GB RAM
  • iDRAC
  • 4x NIC

DELL R710

  • 1x Xeon
  • 92GB RAM
  • 4x NIC

DELL R710

  • 1x Xeon
  • 92GB RAM
  • 4x NIC

NUC1 – Test & Dev

  • i3-6100U @ 2.3GHz
  • 32GB RAM
  • 256GB NVMe
  • 500GB SATA 2,5″
  • 2x 1Gbit NIC (one of them is USB TP-LINK U300)

VSAN ROBO:

ESX2 (whitebox)

  • Intel G4560 @ 3.5GHz
  • MB: B250M-D3H
  • 64GB RAM
  • 500GB NVMe Samsung 970EVO
  • 1TB SSD SATA Samsung 860EVO
  • 2x 256GB SSD SATA Kingston
  • 4x 1Gbit NIC
  • 2x 10Gbit NIC (intel X540-AT2) Base-T

ESX5

  • Xeon D-2123IT @ 2.2GHz
  • MB: Supermicro SYS-E300-9D-4CN8TB
  • 128GB RAM
  • 500GB NVMe Samsung 970EVO
  • 1TB SSD SATA Samsung 860EVO
  • IPMI
  • 4x 1Gbit NIC
  • 2x 10Gbit NIC (intel X722) Base-T
  • 2x 10Gbit NIC (intel X722) SFP+

Storage:

NearStore

  • Xeon E3-1220L @2.3GHz (4core)
  • MB: Supermicro X9SCM
  • Case: Nanoxia Deep Silence 6, Rev. B
  • 32GB RAM
  • 16x 2TB SATA
  • 3x 3TB SATA
  • IPMI
  • 2x 1Gbit NIC (82574LM + 82574L)
  • 2x 10Gbit NIC (intel X540-AT2) Base-T
  • 1x 10Gbit Asus

QNAP 653Pro

  • 6x 3TB SATA
  • 4x 1Gbit

DC 1

Networking:

  • Internet 100Mbit

Compute:

GOLEM – ESXi 6.5.0 – Build 10719125

  • Xeon X3450 @ 2.67GHz
  • MB: S3420GP
  • Case: 1U
  • 24GB RAM
  • 5x 1Gbit NIC
  • 2x 1TB HDD SATA
  • 2x 512GB SSD SATA

D&R Site

Networking:

  • Internet 50Mbit

Compute:

ESX

  • Xeon E3-1220L @2.3GHz (4core)
  • MB: Supermicro X9SCM
  • 32GB RAM
  • 2TB SATA
  • 2x 1Gbit NIC (82574LM + 82574L)

Storage:

Synology DS210j

  • 2x 3TB SATA
  • 2x 1Gbit

VMware vCloud Director for Service Provider upgrade from 9.7 to 10.0

Check prerequisites, documentation, release notes

Documentation: https://docs.vmware.com/en/vCloud-Director/index.html

Release notes: https://docs.vmware.com/en/vCloud-Director/10.0/rn/VMware-vCloud-Director-for-Service-Providers-100-Release-Notes.html
API: https://code.vmware.com/apis/553/vcloud-director

Instalation,configuration and upgrade guide: https://docs.vmware.com/en/vCloud-Director/9.7/com.vmware.vcloud.install.doc/GUID-F14315CC-B373-4A21-A3D9-270FFCF0A417.html
In my scenario I have CentOS 7 VM where is vCloud director 9.7 running. And another VM where is running PostgreSQL.

Step-by-step guide

  1. stop vCloud services

    /etc/init.d/vmware-vcd stop

  2. backup vCloud DB. In my case PostgreSQL

    su – postgres

    pg_dump vcloud > /var/lib/pgsql/vcloud-backup_20200124-1821.sql

  3. create snapshot on vCloud Director VM a PostgreSQL VM
  4. upload and run installation file

    ./vmware-vcloud-director-distribution-10.0.0-14638910.bin

    Checking free disk space…doneChecking for a supported Linux distribution…Detected CentOS7 systemdoneChecking for necessary RPM prerequisites…doneExtracting VMware vCloud Director. Please wait, this could take a few minutes…vmware-vcloud-director-25.2019.09.12-14636284.x86_64.rpmvmware-vcloud-director-rhel-25.2019.09.12-14636284.x86_64.rpmvmware-vcloud-director-h5ui-25.2019.09.12-14636284.x86_64.rpmvmware-phonehome-1.0.0-14574960.noarch.rpmdoneVerifying RPM signatures…doneAn older version of VMware vCloud Director has been detected and will beupgraded to 10.0.0.If you choose to proceed, the installer will stop the vmware-vcd service,back up any configuration files from the previous release and migrate theproduct configuration as necessary.

    Would you like to upgrade now? (y/n)? y
    Upgrading VMware vCloud Director…
    Installing the VMware vCloud Director 10.0.0 RPM…
    warning: vmware-vcloud-director-25.2019.09.12-14636284.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 66fd4949 : NOKEY
    Preparing… ################################# [100%]
    Updating / installing…
    1:vmware-vcloud-director-rhel-25.20################################# [ 13%]
    2:vmware-vcloud-director-25.2019.09warning: /opt/vmware/vcloud-director/etc/global.properties created as /opt /vmware/vcloud-director/etc/global.properties.rpmnew
    ################################# [ 25%]
    3:vmware-vcloud-director-h5ui-25.20################################# [ 38%]
    4:vmware-phonehome-1.0.0-14574960 ################################# [ 50%]
    Cleaning up / removing…
    5:vmware-phonehome-1.0.0-12611311 ################################# [ 63%]
    6:vmware-vcloud-director-h5ui-24.20################################# [ 75%]
    7:vmware-vcloud-director-24.2019.03################################# [ 88%]
    Update completed.
    8:vmware-vcloud-director-rhel-24.20################################# [100%]
    done
    No DSA certificates found; disabling DSA ciphers for SSL/TLS connections. See KB 2056026 for details

    Upgrade installation complete.
    Next steps:

    You will need to upgrade the database schema before starting the
    vmware-vcd service. The product upgrade tool should be run only once per
    vCloud Director group. The tool may be run with the following command:
    /opt/vmware/vcloud-director/bin/upgradeRun upgrade script

  5. Run upgrade script
    /
    opt/vmware/vcloud-director/bin/upgrade

    Welcome to the vCloud Director upgrade utility

    Verify that you have a valid license key to use the version of the
    vCloud Director software to which you are upgrading.

    This utility will apply several updates to the database. Please
    ensure you have created a backup of your database prior to continuing.


    Do you wish to upgrade the product now? [Y/N] y
    Examining database at URL: jdbc:postgresql://Postgre-DB.lab:5432/vcloud?socketTimeout=90
    The next step in the upgrade process will change the vCloud Director database schema.
    Backup your database now using the tools provided by your database vendor.
    Enter [Y] after the backup is complete. y
    Running 5 upgrade tasks
    Executing upgrade task:
    Successfully ran upgrade task
    Executing upgrade task:
    Successfully ran upgrade task
    Executing upgrade task:
    Successfully ran upgrade task
    Executing upgrade task:
    ……………./Successfully ran upgrade task
    Executing upgrade task:
    ……………[15]
    Successfully ran upgrade task
    Database upgrade complete
    Upgrade complete

    Would you like to start the vCloud Director service now? If you choose not
    to start it now, you can manually start it at any time using this command:
    service vmware-vcd start

    Start it now? [y/n] y

    Starting vmware-vcd-watchdog: [ OK ]
    Starting vmware-vcd-cell [ OK ]


 

VMware User Group Czech Republic – meeting – 4.12.2017

It’s almost a 2months back, but you know.. a lot of other stuff was more important.

Agenda:

Agenda:

8:00 8:50 Registration / Welcome tea/coffee
8:50 9:00 VMUGCZ Leader’s – Welcome…
9:00 9:45 Duncan Epping – “(r)Evolution of vSAN” – Keynote speaker
9:50 10:35 Andrey Zhelezko – Veeam and VMware Best Practices 2017 edition
10:35 10:55 Coffee break
10:55 11:40 Mark Brookfield – Moving Code from Dev to Prod using vRealize Automation and Code Stream
11:45 12:30 G2 server CZ – Michal Hampl (Chief Technology Officer), Martin Javorský (Infrastructure Director),
Vojtěch Morávek (Chief Product Officer) – Jak děláme cloud v G2
12:30 13:30 LUNCH
13:30 14:15 David Pasek – CLI for VMware Distributed Switch (Community project)
14:20 15:05 HPE – presentation
15:10 15:55 Andrea Mauro – The dark side of stretched cluster
15:55 16:15 Coffee break
16:15 17:00 Runecast – presentation
17:05 17:50 Vladan Laxa – vSphere Automation

Speakers Experts:

Duncan Epping:

Chief Technologist @VMware | Author of http://Yellow-Bricks.com , Essential Virtual SAN, Clustering Deepdive | Hyper-Converged, Software-Defined Storage, vSphere
http://www.yellow-bricks.com/

Mark Brookfield:
PSO Consultant @VMware specialising in cloud infrastructure & management. vExpert, VCAP5-DCA/DCD, VCP-DT, MCITP, MCSE, CCNA, ITIL. Tweets are my own.
http://virtualhobbit.com/

Andrew Mauro
ITPro. Accreditations: vExpert 2010-17,MVP 2014-16,NTC.Some certifications: VCDX-DCV,VCAP-*,VCP-*, MCSA,MCSE,MCITP,CCA,NPP. VMUG IT Co-Founder and board member.
http://vinfrastructure.it/

 David Pasek
An IT Pro specializing in next gen computing (virtualized compute/storage/networking). IT geek who knows he know nothing but everyday learns. VCP,VCAP,VCDX #200
http://www.vcdx200.com/

Vladan Laxa
virtualization enthusiast and opensource fan, VCP6.5-DCV
http://www.latraxa.cz/


Runecast
Automated VMware expertise – Proactively use VMware KBs, best practices and security hardening guidelines to protect your environment
http://www.runecast.biz/

Official agenda:

And some photos from event:

Duncan Epping – “(r)Evolution of vSAN” – Keynote speaker

Coffee break

Mark Brookfield – Moving Code from Dev to Prod using vRealize Automation and Code Stream

G2 server CZ – Michal Hampl (Chief Technology Officer), Martin Javorský (Infrastructure Director), Vojtěch Morávek (Chief Product Officer) – Jak děláme cloud v G2

David Pasek – CLI for VMware Distributed Switch (Community project)

HPE – presentation

Andrea Mauro – The dark side of stretched cluster

Runecast – presentation

And a lottery 🙂

Upgrade Veeam Backup & Replication from 9.0 to 9.5

 

Check status of Veeam services

Get-Service Veeam*

output:

Status   Name               DisplayName
------   ----               -----------
Running  VeeamBackupSvc     Veeam Backup Service
Running  VeeamBrokerSvc     Veeam Broker Service
Running  VeeamCatalogSvc    Veeam Guest Catalog Service
Running  VeeamCloudSvc      Veeam Cloud Connect Service
Running  VeeamDeploySvc     Veeam Installer Service
Running  VeeamMountSvc      Veeam Mount Service
Running  VeeamNFSSvc        Veeam vPower NFS Service
Running  VeeamTapeSvc       Veeam Tape Access Service
Running  VeeamTransportSvc  Veeam Data Mover Service

Before upgrade stop all your Veeam jobs and disable all Veeam services and restart server.

 Set-Service VeeamBackupSvc -StartupType Disabled
 Set-Service VeeamCatalogSvc -StartupType Disabled
 Set-Service VeeamCloudSvc -StartupType Disabled
 Set-Service VeeamDeploySvc -StartupType Disabled
 Set-Service VeeamMountSvc -StartupType Disabled
 Set-Service VeeamNFSSvc -StartupType Disabled
 Set-Service VeeamTapeSvc -StartupType Disabled
 Set-Service VeeamTransportSvc -StartupType Disabled

Once the server is back online run the setup.exe, accept the license and click Next

veeam1

 

Setup will inform you about detected previous version

veeam2

 

and recognize that you have already licenced version. If you want to provide new license number just click Browse and add new license file.

veeam3

Veeam 9.5 require Microsoft System CLR Types for SQL2014 and Management Objects. And if you didnt install it already, it will inform you. You have the option to install it now .. just press Install.

veeam4

 

once installed  you can click Next and continue with upgrade.veeam6

Choose under which account will be your Veeam Backup & Replication service running.

veeam7

Choose a database instance. I am using local MSSQLDB.

veeam8

Setup will ask if you are sure to use this database and if required upgrade it.

veeam9

Now all prerequisities are done and you can isntall upgrade.

veeam10

 

Progress…..

veeam11

 

.. and finished. Your Veeam Backup & Replication was upgraded to version 9.5veeam12

You can connect ..

veeam13

 

after login as a last step server componnents will be upgraded.veeam14

veeam16

Once done you can use Veeam Backup & Replication and do backups.

Note:

All services which were stopped and disabled before installation are automatically set as Automatic startup.

VCSA – vCenter Server Appliance 6.5 – backup

 

  • Login to admin environment of vCenter appliance
http://VCENTER-DNS-NAME:5480/

 

vcsa65-backup1

  • Choose backup

vcsa65-backup2

 

And in wizard fill all the info:

  • Protocol [HTTPS or HTTP or SCP or FTPS or FTP]
  • Location [server_IP_or_DNS/EmptyDirectory]
  • Port [if you use standard ports for protocols above, then you can skip]
  • UserName
  • Password

Continue reading “VCSA – vCenter Server Appliance 6.5 – backup”

CZ VMUG – Praha – 6.12.2016

Few days back was 2nd CZ VMUG.

Agenda:

agenda
Katarina Wagnerova [@_KatkaW_] presenting her way to VDM (Virtual Design Master). This was an awesome presentation. Really breath taking. Where she found all the time to do it in such a short time.

 

katka

 

Paudie ORiordan [@oriorp] was doing live scripted demo of 2node vSAN. Amazing presentation from the VMware guy. Who know a lot about VSAN.

vsan_demo

 

Presentation of “Metro Cluster HA or DR“ was from Czech TAM’s David Pasek  (VCDX200) and Standa Jurena. A lot of information from the field. And they give us a lot of information from Metro Cluster HA and DR. At the end of the presentation you should know the main reasons for “what to choose” Metro Cluster HA or DR.

pasek_jurena

 

Veeam presentation was full of practical information about the new version of their backup software Veeam Backup & Replication presented by Boris Mittelmann.

veeam

 

at the end I want to thank you to our VMUG leaders..

VMware Workstation Pro 12.5 release

What’s New

VMware Workstation 12 Pro version 12.5 is a free upgrade for all VMware Workstation 12 Pro users, it adds support for the following operating systems:

  • Windows 10 Anniversary Update
  • Windows Server 2016

VMware Workstation 12 Pro Version 12.5 also contains bug fixing, security updates and performance improvements.

 

VMware Workstation 12 Pro Version 12.5 | 13 SEP 2016 | Build 4352439
Last updated: 13 SEP 2016

VMware Workstation Pro Documentation

Release notes

source: official site

Veeam backup Agent for Linux update to BETA2 on CentOS 7

 

Now I want to update it with newer version “beta2” which was released recently. First of all download BETA2 files for your Linux distribution. In my case RPM files for RedHat/Centos 7 from Veeam site.

First of all you need to uninstall “beta1” to be able to install “beta2” properly.

Continue reading “Veeam backup Agent for Linux update to BETA2 on CentOS 7”

new NUC in my home lab

 

Home LAB starts to grow. More and more test lab VM’s, nested ESXi hosts etc. So  I was looking for another node. Dont want to spent a fortune so the price was the key. I had also other minimum requirements as 32GB of RAM and power consumption. After few weeks of searching I decide to buy a Intel NUC.

Components added to my #HOMELAB:

  • Intel 6th Generation NUC NUC6i3SYH
  • 2x Kingston 16GB DDR4 2133MHz SODIMM
  • USB3 TP-LINK  UE300 gigabit NIC
  • 8GB San Disk Cruzer Fit
  • HDMI to VGA adapter

 

Disclaimer: The Intel NUC is not on VMware’s official Hardware Compatibility List (HCL)

Veeam backup Agent for Linux (beta) CentOS 7

today just received an email from Veaam with link and code. So I can download the beta agent for linux.  In my case I will use CentOS 7  linux distribution 64bit.

Installation is easy, with some tricky part. As on installation page here is step-by-step  info about how to install the Veeam Linux agent. But I am missing step-by-step info about how to install prerequisites. So you can read it here for CentOS 7 Linux.

First of all update your server. Once done,  reboot the server if during your update was installed new kernel.

Continue reading “Veeam backup Agent for Linux (beta) CentOS 7”

2nd NIC for my NUC

Intel NUC is the best piece of HW for HOME mini-LAB. But once you start grow you need more network bandwith. And one pNIC is not enough. After few sec of googling I find great page DevTTY. Where is a lot of information about “supported” USB NIC for your Intel NUC. I choose TP-LINK UE300 because I had a couple of TP-LINK (3210, 5426) switches and they are doing great job.

So I ordered TP-LINK UE300 USB 3.0 network card. Once it was delivered to me, I connected it to the NUC. Then download the driver from DevTTY and upload it to one of my datastore.  No maintenance, reboot is needed. The only thing you need to do is to change the “Host Image Profile Acceptance Level”  to  “Community supported”.

Host Image Profile Acceptance Level-Community

Then just log in to the ESXi console and install VIB file with command:

Continue reading “2nd NIC for my NUC”