<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>The Wombelix Post - vSphere</title><link href="https://dominik.wombacher.cc/" rel="alternate"/><link href="/feeds/tag_vsphere.atom.xml" rel="self"/><id>https://dominik.wombacher.cc/</id><updated>2022-03-29T00:00:00+02:00</updated><entry><title>vCloud Usage Meter 4.5 Upgrade - Error(908) Command line option is invalid: --skipdigest</title><link href="https://dominik.wombacher.cc/posts/vcloud_usage_meter_45_upgrade_error_908_command_line_option_is_invalid_skipdigest.html" rel="alternate"/><published>2022-03-29T00:00:00+02:00</published><updated>2022-03-29T00:00:00+02:00</updated><author><name>Dominik Wombacher</name></author><id>tag:dominik.wombacher.cc,2022-03-29:/posts/vcloud_usage_meter_45_upgrade_error_908_command_line_option_is_invalid_skipdigest.html</id><summary type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Again a interesting bug, this time during the In-Place Upgrade of a VMWare vCloud Usage Meter
from Version 4.4 to 4.5, which shouldn't be a big deal based  ... &lt;a class="read-more" href="/posts/vcloud_usage_meter_45_upgrade_error_908_command_line_option_is_invalid_skipdigest.html"&gt; [read more]&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Again a interesting bug, this time during the In-Place Upgrade of a VMWare vCloud Usage Meter
from Version 4.4 to 4.5, which shouldn't be a big deal based on the
&lt;a class="reference external" href="https://docs.vmware.com/en/vCloud-Usage-Meter/4.5/Getting-Started-vCloud-Usage-Meter/GUID-AE5A81E1-097A-4EED-9A8E-8BF7E0B378A4.html"&gt;official Upgrade Guide&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20220329202039/https://docs.vmware.com/en/vCloud-Usage-Meter/4.5/Getting-Started-vCloud-Usage-Meter/GUID-AE5A81E1-097A-4EED-9A8E-8BF7E0B378A4.html"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.03.29-201847/https://docs.vmware.com/en/vCloud-Usage-Meter/4.5/Getting-Started-vCloud-Usage-Meter/GUID-AE5A81E1-097A-4EED-9A8E-8BF7E0B378A4.html"&gt;[2]&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Running &lt;code&gt;bash /root/upgrade/upgrade-um.sh&lt;/code&gt; ended in:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Error(908) : Command line error: option is invalid.
No such option: --skipdigest. Please use /usr/bin/tdnf --help
Upgrade fail during JRE update. Please, revert to latest snapshot and prior update execute 'tdnf clean cache'.`

&lt;/pre&gt;
&lt;p&gt;I followed all steps exactly as described in the Guide so how is it possible that the Upgrade Script triggers &lt;code&gt;tdnf&lt;/code&gt; with unavailable options?
Couldn't find anything related / similar in the VMWare KB, GitHub and a good old Google / DuckDuckGo Search.&lt;/p&gt;
&lt;p&gt;Based on our internal documentation, we installed the Usage Meter a while back in Version 4.1
and upgraded to 4.4 a year ago, probably there was also a 4.2 and / or 4.3 upgrade before.&lt;/p&gt;
&lt;p&gt;The result of &lt;code&gt;tdnf --version&lt;/code&gt; was a quite outdated version &lt;code&gt;tdnf: 1.2.3&lt;/code&gt; which seem to be released around mid of 2017,
but option &lt;code&gt;--skipdigest&lt;/code&gt; was part of a &lt;a class="reference external" href="https://github.com/vmware/tdnf/commit/7f23f9c2f5b5976d2ccd443ddc2b84e00cba81d0"&gt;commit&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20220329202918/https://github.com/vmware/tdnf/commit/7f23f9c2f5b5976d2ccd443ddc2b84e00cba81d0"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.03.29-202915/https://github.com/vmware/tdnf/commit/7f23f9c2f5b5976d2ccd443ddc2b84e00cba81d0"&gt;[2]&lt;/a&gt;) on April 12 2019.&lt;/p&gt;
&lt;p&gt;vCloud Usage Meter is running on VMware Photon OS, &lt;em&gt;just&lt;/em&gt; another Linux Distribution with yum as package manager and attached online repositories.
So let's just try to update &lt;strong&gt;tdnf&lt;/strong&gt; manually via &lt;code&gt;yum update tdnf&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Upgrading:
rpm-libs          x86_64      4.14.3-1.ph3      photon-updates      937.03k 959523
rpm               x86_64      4.14.3-1.ph3      photon-updates      356.38k 364930
hawkey            x86_64      2017.1-8.ph3      photon-updates      150.05k 153656
tdnf-cli-libs     x86_64      3.1.8-1.ph3       photon-updates       70.18k 71864
tdnf              x86_64      3.1.8-1.ph3       photon-updates      309.71k 317139

Total installed size:   1.78M 1867112

Is this ok [y/N]: y

&lt;/pre&gt;
&lt;p&gt;Looks good, installation of version &lt;code&gt;tdnf: 3.1.8&lt;/code&gt; was successful, a quick test, which ended earlier in the same &lt;em&gt;Error(908)&lt;/em&gt; as above,
worked this time, so obviously this version is new enough to know the option &lt;code&gt;--skipdigest&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
tdnf update --skipdigest vmware-jre

&lt;/pre&gt;
&lt;p&gt;Afterwards I could just follow the Guide from VMWare to perform the In-Place Upgrade to Version 4.5 without any further issues.
I assume something went wrong during earlier Upgrades and &lt;code&gt;tdnf&lt;/code&gt; was never updated after the initial Installation.
Earlier Upgrade Scripts probably didn't used the &lt;code&gt;--skipdigest&lt;/code&gt; option, so it was undetected until now.&lt;/p&gt;
&lt;p&gt;All this would explain why no one else seem to hit that bug, was probably a rare edge case limited to our Environment.&lt;/p&gt;
</content><category term="Linux"/><category term="vCloud"/><category term="VMWare"/><category term="vSphere"/><category term="Error"/><category term="Upgrade"/></entry><entry><title>openSUSE Leap 15.3 on VMware vSphere 6.7: Get Guest Customization working</title><link href="https://dominik.wombacher.cc/posts/opensuse_leap_15-3_on_vmware_vsphere_6-7_get_guest_customization_working.html" rel="alternate"/><published>2022-03-10T00:00:00+01:00</published><updated>2022-03-10T00:00:00+01:00</updated><author><name>Dominik Wombacher</name></author><id>tag:dominik.wombacher.cc,2022-03-10:/posts/opensuse_leap_15-3_on_vmware_vsphere_6-7_get_guest_customization_working.html</id><summary type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Technically &lt;em&gt;openSUSE Leap 15.3&lt;/em&gt; is equal to &lt;em&gt;SUSE Linux Enterprise Server 15 SP3&lt;/em&gt;, both share the same code and binary packages,
the only difference is community vs. commercial support  ... &lt;a class="read-more" href="/posts/opensuse_leap_15-3_on_vmware_vsphere_6-7_get_guest_customization_working.html"&gt; [read more]&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;!-- SPDX-FileCopyrightText: 2023 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Technically &lt;em&gt;openSUSE Leap 15.3&lt;/em&gt; is equal to &lt;em&gt;SUSE Linux Enterprise Server 15 SP3&lt;/em&gt;, both share the same code and binary packages,
the only difference is community vs. commercial support. It's even possible to quickly
&lt;a class="reference external" href="https://en.opensuse.org/SDB:How_to_migrate_to_SLE#Migration_from_openSUSE_Leap_to_SUSE_Linux_Enterprise_Server"&gt;migrate from Leap 15.3 to SLES 15 SP3&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20220210180820/https://en.opensuse.org/SDB:How_to_migrate_to_SLE"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.03.10-225629/https://en.opensuse.org/SDB:How_to_migrate_to_SLE"&gt;[2]&lt;/a&gt;)
if you decide vendor support is preferred at a later point.&lt;/p&gt;
&lt;p&gt;VMWare still doesn't officially support Leap 15.3 as VM on vSphere neither allows Guest Customization,
but for sure, when you run SLES 15 SP3 it's not a problem and fully supported?!&lt;/p&gt;
&lt;p&gt;As explained &lt;a class="reference external" href="https://cstan.io/?p=12416&amp;amp;lang=en"&gt;here&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20210420173348/https://cstan.io/?p=12416&amp;amp;lang=en"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2022.03.10-225051/https://cstan.io/?p=12416&amp;amp;lang=en"&gt;[2]&lt;/a&gt;) in regards to Leap 15.2,
one option is to replace to content of &lt;code&gt;/etc/issue&lt;/code&gt; with &lt;code&gt;SUSE Linux Enterprise Server 15&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Keep in mind that &lt;code&gt;/etc/issue&lt;/code&gt; is a symlink to &lt;code&gt;/run/issue&lt;/code&gt;, a &lt;em&gt;volatile and temporary file&lt;/em&gt;,
managed by systemd service &lt;code&gt;issue-generator&lt;/code&gt;. So you have to remove the symlink and create a new
&lt;code&gt;/etc/issue&lt;/code&gt; file, otherwise your changes will be lost after the next reboot.&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
sudo rm /etc/issue &amp;amp;&amp;amp; echo &amp;quot;SUSE Linux Enterprise Server 15&amp;quot; &amp;gt; /etc/issue

&lt;/pre&gt;
&lt;p&gt;In addition I had to change the OS Type in the VM Settings on vSphere to &amp;quot;SUSE Linux Enterprise Server 15&amp;quot; as well,
otherwise the Guest Customization couldn't even be started without an error message.&lt;/p&gt;
&lt;p&gt;I like the generated issue file and the additional information, so after the new deployed VM is up and running, let's just revert the change:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
sudo rm /etc/issue &amp;amp;&amp;amp; ln -s /run/issue /etc/issue

&lt;/pre&gt;
&lt;p&gt;Little more complicated, but also possible, is to replace &lt;code&gt;/etc/os-release&lt;/code&gt; with the content
from a SLES 15 SP3 System. It has the same effect as changing &lt;code&gt;/etc/issue&lt;/code&gt;, the Guest
Customization will think it's a SUSE Linux Enterprise Server and apply all settings.&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
NAME=&amp;quot;SLES&amp;quot;
VERSION=&amp;quot;15-SP3&amp;quot;
VERSION_ID=&amp;quot;15.3&amp;quot;
PRETTY_NAME=&amp;quot;SUSE Linux Enterprise Server 15 SP3&amp;quot;
ID=&amp;quot;sles&amp;quot;
ID_LIKE=&amp;quot;suse&amp;quot;
ANSI_COLOR=&amp;quot;0;32&amp;quot;
CPE_NAME=&amp;quot;cpe:/o:suse:sles:15:sp3&amp;quot;

&lt;/pre&gt;
</content><category term="Linux"/><category term="openSUSE"/><category term="Leap"/><category term="VMWare"/><category term="vSphere"/></entry></feed>