In questo articolo illustrerò la procedura per aggiornare l’Host ESXi quando l’ambiente VMware è composto da un solo server.
Nota 1: La prima attività è quella di aggiornare il vCenter (VCSA) controllando quali versioni ESXi sono supportate.
Nota 2: Il metodo tradizionale per aggiornare gli Host ESXi, sfrutta il processo automatizzato di update gestisto dalla console del vCenter.
Nota 3: Il sito di DR del mio laboratorio è costituito da un singolo Host VMware ESXi sul quale è presente il vCenter secondario (VCSA); in questo scenario, la metodologia indicata nella nota 1 non è utilizzabile, poiché durante la fase di aggiornamento, l’Host ESXi viene posto in maintenance mode. In questo stato tutte le VM presenti sono spente (compresa la VCSA).
La soluzione è quella di utilizzare la procedura presente nel sito VMware ESXi Patch Tracker che consta delle seguenti fasi:
1- Selezione della versione software che sarà installata alla fine del processe sull’host (vedi immagine 1)
Immagine 1
2- Determinare i comandi CLI da utilizzare durante la procedura di aggiornamento:
La procedura viene illustrata nel pop-up che appare quando si clicca sul pacchetto selezionato (vedi immagine 2)
Immagine 2
3- Abilitare l’Host ESXi alla connessione ssh (immagine 3)
Immagine 3
4- Collegarsi via ssh all’host ESXi ed avviare i comandi precedentemente mostrati nel pop-up.
Nel mio caso:
esxcli network firewall ruleset set -e true -r httpClient
esxcli network firewall ruleset set -e false -r httpClient
5- Porre l’Host ESXi in Maintenance mode e riavviarlo.
6- Al termine controllate che l’aggiornamento sia avvenuto correttamente (immagine 4 e 5)
Immagine 4 – Pre Aggiornamento
Immagine 5 – Post Aggiornamento
Nota 4: Nel caso in cui l’hardware non fosse in matrice di compatibilità, il consiglio è di utilizzare l’opzione <–no-hardware-warning>. Nel mio caso il secondo comando è stato cambiato in:
In this article, I will explain the procedure to upgrade the ESXi Host when the VMware environment consists of only one server.
Note 1: The first task is to update the vCenter ( VCSA ) by checking which ESXi versions are supported.
Note 2: The traditional method of updating ESXi Hosts uses the automated update process managed by the vCenter console.
Note 3: The DR site of my laboratory consists of a single VMware ESXi Host on which the secondary vCenter ( VCSA ) is present; in this scenario, the methodology indicated in note 1 cannot be used, since, during the update phase, the ESXi Host is placed in maintenance mode. In this state, all the VMs present are off (including the VCSA ).
The solution is to use the procedure on the VMware ESXi Patch Tracker site which consists of the following steps:
1- Selection of the software version that will be installed on the host at the end of the process (see image 1)
Picture 1
2- Determine the CLI commands to use during the update procedure:
The procedure is illustrated in the pop-up that appears when you click on the selected package (see image 2)
picture 2
3- Enable the ESXi Host for ssh connection (image 3)
Picture 3
4- Connect via ssh to the ESXi host and run the commands previously shown in the pop-up.
In my case:
esxcli network firewall ruleset set -e true -r httpClient
esxcli network firewall ruleset set -e false -r httpClient
5- Put the ESXi Host in Maintenance mode and restart it.
6- At the end, check that the update was successful (image 4 and 5)
Picture 4 – Pre Update
Picture 5 – Post Update
Note 4 : In case the hardware is not in the compatibility matrix, the advice is to use the option< –no-hardware-warning> . In my case the second command was changed to:
Antonio era una persona eclettica, con molti interessi, tra i quali privilegiava il bridge, la montagna e la buona cucina.
Era sempre un piacere incontrarlo, sapevi che avrebbe raccontato storie di vita divertenti che, grazie alla sua grande oratoria, riuscivano a catturare l’attenzione di tutti gli astanti.
Se il Bisbino da giovane l’aveva sedotto, insegnandogli l’amore per la montagna, Bormio e le sue vallate sono stati i luoghi di vacanza a lui più cari e di cui conosceva ogni angolo e anfratto.
Lo si capiva da quella luce che si accendeva quando parlava della Val Viola, della Val Zebrù e dei Laghi di Cancano.
Lo ricordo qualche anno fa quando, raggiunto a piedi il rifugio del ghiacciaio dei Forni, disse a pieni polmoni “Son tornato” con un tono di voce che chiaramente indicava un rappacificamento con quell’angolo incantato della Valtellina.
Durante il pranzo, rigorosamente con polenta e uova, raccontò che qualche anno prima quella salita lo aveva ferito (al cuore) e raggiungere nuovamente il rifugio aveva rinsaldato quella lunga e vecchia amicizia che sembrava persa.
Il suo motto era “E’ tutto in piano!” e spesso lo utilizzava per convincere persone meno avvezze ai sentieri alpini a raggiungere mete impegnative. Premiava i vincitori raccontando aneddoti storici su luogo mentre si gustavano piatti tipici dell’alta Valtellina.
Era certamente una buona forchetta, il suo stomaco gli permetteva di digerire ogni pietanza. Diceva che se avesse avuto il cuore forte come lo stomaco avrebbe potuto vivere per altri 100 anni.
Vederlo poi scegliere dal menù i piatti era una vera goduria. Apriva il menù, lo leggeva attentamente (anche se preferiva i posti dove il menù veniva raccontato) e come se stesse già assaporando le portate, prima di comunicare la sua comanda, si sfregava le mani chiedendo qualche conferma sulla preparazione dei piatti.
Sulla scelta dei vini poi era una autorità, sapeva sempre cosa abbinare a quello che si ordinava, privilegiando sempre la cantina al nome del vino.
Forse non tutti sanno che Antonio era anche uno specialista della frutta. Conosceva tutte le tipologie di pere, mele, amarene … e la sua vera passione erano le ciliegie. In anni di lavoro aveva scoperto e mappato tutte le piante “free” dell’alto Milanese e spesso durante i viaggi di ritorno si fermava a cogliere il prelibato frutto.
Il suo umorismo si esaltava nelle situazioni che sembravano complicate.
Con il gruppo aveva scelto di passare qualche giorno in Tuscia. La prima cena la facemmo nell’agriturismo dove alloggiavamo che aveva come specialità la carne.
Anche se non eccelsa, quasi tutti mangiammo la nostra porzione.
Quando la padrona di casa chiese un parere, una di noi criticò il piatto indicandone correttamente i limiti.
Antonio prese la palla al balzo, si alzò e con la scusa di voler conoscere meglio la tipologia dei vini, iniziò a parlare con la proprietaria dell’agriturismo.
Giunto a debita distanza iniziò una conversazione fitta della quale non capivamo il senso.
Dopo qualche minuto, tornò al tavolo mentre la signora nuovamente serena si diresse in cucina.
Alla maliziosa domanda su cosa avesse promesso per rendere la signora giuliva, Antonio rispose: “Ho semplicemente affermato che la nostra commensale è una ricchissima duchessa abituata a tagli pregiati di carne e che ci onora qualche volta con la sua presenza”.
Fintanto che rimanemmo nell’agriturismo, la proprietaria chiedeva sempre conferma ad Antonio se alla duchessa fossero piaciuti la colazione o il pranzo e noi, come studenti inquieti in classe, nascondevamo a stento le risate.
Il mercoledì pomeriggio aveva un appuntamento fisso: il torneo di Bridge a Mendrisio.
Era particolarmente affezionato a quell’evento e alle persone che frequentavano quel circolo. Si sentiva onorato di far parte di quel gruppo e grato dell’amicizia verso il presidente Luciano. Vinceva spesso anche lì e utilizzava i franchi vinti per organizzare e pagare cene nei crotti elvetici ai suoi compagni di gioco
Nel bridge era molto conosciuto non solo per essere un giocatore vincente, ma soprattutto per i suoi modi cordiali.
A chi chiedeva consiglio su come avrebbe dovuto licitare oppure giocare una mano, dava sempre una risposta dettagliata proprio perché sapeva che per non far sparire il bridge era necessario condividere le proprie conoscenze.
Si buttava in ogni manifestazione con l’ardore di un ventenne. Seduto sempre rigorosamente in Nord oppure in Est.
Con il gruppo abbiamo fatto vacanze corte e lunghe in giro per il nostro bellissimo paese, che Antonio definiva straordinario, bellissimo e ferito da una incapacità atavica di renderlo ancora più ricettivo al turismo.
Le serate terminavano con una partita di Burraco dove giocava anche con la figlia Bibi e vinceva inesorabilmente chi in quel momento aveva la dea bendata a favore. Lo sfottò del giorno dopo era raccontare quella pescata miracolosa che aveva permesso a quel gioco illogico di essere vincente (classico nel burraco).
Raffaella è stata la sua compagna di gioco negli ultimi 11 anni e se abbiamo conosciuto questo meraviglioso personaggio dobbiamo dire grazie a lei che lo ha fatto subito entrare in un gruppo eterogeneo di persone unite dalla passione per il bridge (tra l’altro prima di iniziare la partnership mi chiese, come un uomo di altri tempi, se fossi d’accordo).
Dopo qualche anno porsi una semplice domanda ad Antonio: lui, grande giocatore, come faceva a gestire certe giocate “illogiche” di Raffaella?
Lui rispose con una massima che mi rimarrà per sempre: “Gabriele, risparmia il fiato, ti servirà”.
Ciao Antonio, so che troverai al tavolo i tuoi vecchi amici del bridge e che continuerai a dilettarli con il tuo vero io.
Antonio was an eclectic person, with many interests, among which he favored bridge, the mountains and good food.
It was always a pleasure to meet him, you knew he would tell funny life stories that, thanks to his great oratory, managed to capture the attention of all bystanders.
If the Bisbino had seduced him as a young man, teaching him the love for the mountains, Bormio and its valleys were the holiday destinations most dear to him and of which he knew every corner and ravine.
You could tell from that light that came on when he spoke of Val Viola, Val Zebrù and the Cancano Lakes.
I remember it a few years ago when, having reached the Forni glacier refuge on foot, he said loudly “I’m back” in a tone of voice that clearly indicated a reconciliation with that enchanted corner of Valtellina.
During lunch, rigorously with polenta and eggs, he said that a few years earlier that climb had hurt him (to the heart) and reaching the refuge again had strengthened that long and old friendship that seemed lost.
His motto was “It’s all flat!” and he often used it to convince people less accustomed to alpine trails to reach challenging destinations. He rewarded the winners by telling historical anecdotes about the place while they tasted typical dishes of the upper Valtellina.
He was certainly a good fork, his stomach allowed him to digest any dish. He said that if he had a heart as strong as his stomach he could live for another 100 years.
Seeing him then choose dishes from the menu was a real pleasure. He opened the menu, read it carefully (even if he preferred the places where the menu was told) and as if he were already savoring the dishes, before communicating his command, he rubbed his hands asking for some confirmation on the preparation of the dishes.
He was also an authority on the choice of wines, he always knew what to combine with what he ordered, always favoring the cellar over the name of the wine.
Perhaps not everyone knows that Antonio was also a fruit specialist. He knew all types of pears, apples, black cherries … and his true passion was cherries. In years of work, he had discovered and mapped all the “free” plants of the upper Milanese area and often stopped to pick the delicious fruit during his return trips.
His humor was enhanced in situations that seemed complicated.
With the group he had chosen to spend a few days in Tuscia. We had the first dinner in the farmhouse where we were staying, which had meat as a specialty.
While not great, most of us ate our portion.
When the hostess asked for an opinion, one of us criticized the dish by correctly indicating its limits.
Antonio took the ball, got up and with the excuse of wanting to know better the type of wines, he started talking to the owner of the farm.
Arrived at a safe distance, he began an intense conversation of which we did not understand the meaning.
After a few minutes, he returned to the table while the again serene lady headed into the kitchen.
To the mischievous question about what he had promised to make the lady happy, Antonio replied: “I simply said that our diner is a very rich duchess accustomed to fine cuts of meat and who sometimes honors us with her presence”.
As long as we stayed in the farmhouse, the owner always asked Antonio for confirmation whether the Duchess liked breakfast or lunch and we, like restless students in the classroom, barely hid the laughter.
On Wednesday afternoon he had a fixed appointment: the Bridge tournament in Mendrisio.
He was particularly fond of that event and the people who frequented that club. He felt honored to be part of that group and grateful for his friendship with President Luciano. He also often won there and used the francs he won to organize and pay for dinners in the Swiss crotti for his playmates.
In bridge he was well known not only for being a winning player, but above all for his cordial manner.
To those who asked for advice on how he should bid or play a hand, he always gave a detailed answer precisely because he knew that in order not to make the bridge disappear it was necessary to share his knowledge.
He threw himself into every event with the ardor of a twenty year old. Always sitting strictly in the North or in the East.
With the group, we took short and long holidays around our beautiful country, which Antonio defined as extraordinary, beautiful, and wounded by an atavistic inability to make it even more receptive to tourism.
The evenings ended with a game of Burraco where he also played with his daughter Bibi and inexorably won those who at that moment had the luck in favor. The teasing of the next day was to tell the miraculous catch that had allowed that illogical game to be a winner (classic in burraco).
Raffaella has been her playmate for the last 11 years and if we have met this wonderful character we must say thanks to her who immediately made him join a heterogeneous group of people united by a passion for the bridge (among other things, before starting the partnership asked me, like a man of yesteryear, if I agreed).
After a few years, I asked Antonio a simple question: he, a great player, how did he manage certain “illogical” plays by Raffaella?
He replied with a maxim that will remain with me forever: “Gabriel, save your breath, you’ll need it.”
Bye Antonio, I know that you will find your old bridge friends at the table and that you will continue to delight them with your true self.
War does not determine who is right – only who is left. – Bertrand Russell.
The more you sweat in peace, the less you bleed in war. – Norman Schwarzkop.
Weakness of attitude becomes weakness of character. – Albert Einstein.
The two most powerful warriors are patience and time. – Leo Tolstoy
The fool who has no sense to discriminate between what is good and what is bad is well nigh as dangerous as the man who does discriminate and yet chooses the bad. – Theodore Roosevelt
Durante le operazioni di manutenzione del laboratorio, improvvisamente una Virtual Machine non era più in grado di avviarsi.
La console del vCENTER indicava un errore sull’inizializzazione del file di swap del server.
Come ogni buon sistemista, prima di effettuare una qualsiasi modifica all’ambiente, ho provato a realizzare il backup della suddetta VM.
Il job si interrompeva a causa del seguente errore: (“An error occurred while taking a snapshot: Invalid change tracker error code“).
Troubleshooting:
Dato che il file di swap gestisce l’over-commitment della memoria, ho provato a modificare la quantità di RAM assegnata.
Ho aggiunto spazio al Datastore sul quale risiedeva la VM per essere certo che VMware avesse sufficiente spazio per gestire il file di swap.
Ho ricercato all’interno del file di configurazione (vmx) differenze rispetto alla configurazione delle altre VM.
Tutti test e le modifiche effettuate non hanno risolto il problema.
Conscio che avrei dovuto modificare la configurazione della VM ho implementato una semplice strategia per:
Realizzare il backup della VM attraverso il Veeam Agent for Linux (Il VAL opera a livello di Guest-OS e non di hypervisor).
Annotare tutte le modifiche che avrei apportato alle VM (ndr: avevo indossato il cappello di Pollicino, in grado cioè di tornare alla configurazione iniziale in poco tempo).
Il metodico approccio “cambia, annota, controlla e accendi” mi ha permesso di scoprire che il problema era legato alla configurazione della CPU della Virtual Machine.
Reimpostando infatti i valori “CPU reservation” a Zero e “CPU share” a Normal (vedi immagine 1) il problema è rientrato permettendomi così di avviare la VM e effettuarne il backup.
Sapiens nihil affirmat quod non probet (il saggio non afferma nulla che non possa provare)