<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Archives - Rhein-Ruhr-Informatik</title>
	<atom:link href="https://rhein-ruhr-informatik.de/category/articles/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://rhein-ruhr-informatik.de/category/articles/linux/</link>
	<description></description>
	<lastBuildDate>Tue, 11 Mar 2025 08:44:41 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/cropped-favicon-32x32.png</url>
	<title>Linux Archives - Rhein-Ruhr-Informatik</title>
	<link>https://rhein-ruhr-informatik.de/category/articles/linux/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Installation von SUSE SLES 15 SP6 in Hyper-V und anschließende Installation von Ansible</title>
		<link>https://rhein-ruhr-informatik.de/2025/04/22/installation-von-suse-sles-15-sp6-in-hyper-v-und-anschliessende-installation-von-ansible/</link>
		
		<dc:creator><![CDATA[Rhein-Ruhr-Informatik]]></dc:creator>
		<pubDate>Tue, 22 Apr 2025 09:52:40 +0000</pubDate>
				<category><![CDATA[Artikel]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://rhein-ruhr-informatik.de/?p=541</guid>

					<description><![CDATA[<p>Dieser Leitfaden beschreibt den Prozess der Installation von SUSE Linux Enterprise Server (SLES) 15 SP6 auf einer virtuellen Hyper-V-Maschine, gefolgt von der Installation von Ansible für Automatisierungstasks. Die Einrichtung umfasst die Konfiguration der virtuellen Maschine in Hyper-V, die Installation von SLES aus einem ISO-Image und optional die Leistungssteigerung mit Hyper-V-Gasttools.<a class="moretag" href="https://rhein-ruhr-informatik.de/2025/04/22/installation-von-suse-sles-15-sp6-in-hyper-v-und-anschliessende-installation-von-ansible/"> Weiterlesen&#8230;</a></p>
<p>The post <a href="https://rhein-ruhr-informatik.de/2025/04/22/installation-von-suse-sles-15-sp6-in-hyper-v-und-anschliessende-installation-von-ansible/">Installation von SUSE SLES 15 SP6 in Hyper-V und anschließende Installation von Ansible</a> appeared first on <a href="https://rhein-ruhr-informatik.de">Rhein-Ruhr-Informatik</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Dieser Leitfaden beschreibt den Prozess der Installation von SUSE Linux Enterprise Server (SLES) 15 SP6 auf einer virtuellen Hyper-V-Maschine, gefolgt von der Installation von Ansible für Automatisierungstasks. Die Einrichtung umfasst die Konfiguration der virtuellen Maschine in Hyper-V, die Installation von SLES aus einem ISO-Image und optional die Leistungssteigerung mit Hyper-V-Gasttools. Nach Abschluss der Betriebssysteminstallation aktivieren wir das SUSE Package Hub-Repository, um auf die erforderlichen Pakete zuzugreifen und Ansible mit dem zypper-Paketmanager zu installieren. Diese Einrichtung führt zu einer voll funktionsfähigen SLES-Umgebung in Hyper-V, die für die Unternehmensautomatisierung mit Ansible bereit ist.</p>



<p><strong>Prepare the environment to install the ISO image in the Hyper-V</strong></p>



<p>Auf meinem Bare-Metal-System ist der Hyper-V-Hypervisor bereits installiert. Die Methode zur Installation finden Sie hier:</p>



<p><a href="https://learn.microsoft.com/en-us/training/modules/configure-manage-hyper-v/2-define-hyper-v">https://learn.microsoft.com/en-us/training/modules/configure-manage-hyper-v/2-define-hyper-v</a></p>



<p>Daher müssen Sie die Hyper-V-Funktion in Windows aktivieren, indem Sie den folgenden Befehl in PowerShell ausführen:</p>



<p><code>PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All</code></p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="715" height="592" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image.png" alt="" class="wp-image-542" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image.png 715w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-300x248.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-14x12.png 14w" sizes="(max-width: 715px) 100vw, 715px" /></figure></div>


<p>Nachdem Hyper-V erfolgreich installiert wurde, ist es wichtig, das virtuelle Netzwerk zu erstellen und zu konfigurieren. Um die Umgebung für die Installation von SUSE vorzubereiten, habe ich mit Windows PowerShell mithilfe von Befehlen einen Netzwerkadapter erstellt:</p>



<ul class="wp-block-list">
<li><code>Get-NetAdapter</code></li>
</ul>



<ul class="wp-block-list">
<li><code>Import-Module Hyper-V</code></li>
</ul>



<ul class="wp-block-list">
<li><code>$ethernet = Get-NetAdapter -Name "Ethernet"</code></li>
</ul>



<ul class="wp-block-list">
<li><code>New-VMSwitch -Name "virtuelles Netzwerk" -NetAdapterName $ethernet.Name -AllowManagementOS $true -Notes "Geteiltes virtuelles Netzwerkinterface</code></li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="761" height="726" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-1.png" alt="" class="wp-image-543" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-1.png 761w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-1-300x286.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-1-13x12.png 13w" sizes="(max-width: 761px) 100vw, 761px" /></figure></div>


<p>Der nächste Schritt besteht darin, den Speicherplatz für die SUSE-VM zuzuweisen. Hierfür habe ich folgende Schritte durchgeführt:</p>



<p>Erstellen des Verzeichnisses für SLES:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="936" height="206" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-2.png" alt="" class="wp-image-544" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-2.png 936w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-2-300x66.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-2-768x169.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-2-18x4.png 18w" sizes="(max-width: 936px) 100vw, 936px" /></figure>



<p>Ich habe 50 GB Speicherplatz zugewiesen:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="975" height="413" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-3.png" alt="" class="wp-image-545" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-3.png 975w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-3-300x127.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-3-768x325.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-3-18x8.png 18w" sizes="auto, (max-width: 975px) 100vw, 975px" /></figure>



<p>Nach der Vorbereitung der Umgebung habe ich das ISO-Image SUSE SLE-15-SP6-Full-x86_64-GM-Media1.iso von der offiziellen SUSE-Website heruntergeladen: <a href="https://www.suse.com/download/sles/" target="_blank" rel="noreferrer noopener">https://www.suse.com/download/sles/</a> und lokal gespeichert.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="314" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-4-1024x314.png" alt="" class="wp-image-546" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-4-1024x314.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-4-300x92.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-4-768x235.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-4-18x6.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-4.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Anschließend haben wir die Installation von SUSE über den Hyper-V-Manager fortgesetzt, indem wir folgende Schritte befolgt haben:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="134" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-5-1024x134.png" alt="" class="wp-image-547" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-5-1024x134.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-5-300x39.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-5-768x101.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-5-18x2.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-5.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Wählen Sie &#8222;Neu&#8220; und dann &#8222;Virtueller Computer&#8220;</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="764" height="591" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-6.png" alt="" class="wp-image-548" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-6.png 764w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-6-300x232.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-6-16x12.png 16w" sizes="auto, (max-width: 764px) 100vw, 764px" /></figure>



<p>Benennen Sie die VM und fahren Sie fort.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="780" height="591" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-7.png" alt="" class="wp-image-549" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-7.png 780w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-7-300x227.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-7-768x582.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-7-16x12.png 16w" sizes="auto, (max-width: 780px) 100vw, 780px" /></figure>



<p>Wählen Sie &#8222;Generation 1&#8220; und fahren Sie fort.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="773" height="591" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-8.png" alt="" class="wp-image-550" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-8.png 773w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-8-300x229.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-8-768x587.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-8-16x12.png 16w" sizes="auto, (max-width: 773px) 100vw, 773px" /></figure>



<p>Festlegen des Speichers. In unserem Fall haben wir 4096 MB zugewiesen.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="773" height="591" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-9.png" alt="" class="wp-image-551" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-9.png 773w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-9-300x229.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-9-768x587.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-9-16x12.png 16w" sizes="auto, (max-width: 773px) 100vw, 773px" /></figure>



<p>In der Netzwerkkonfiguration wählen wir das zuvor erstellte virtuelle Netzwerk aus.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="772" height="591" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-10.png" alt="" class="wp-image-552" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-10.png 772w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-10-300x230.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-10-768x588.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-10-16x12.png 16w" sizes="auto, (max-width: 772px) 100vw, 772px" /></figure>



<p>Benennen der virtuellen Speicherverbindung, Auswählen des Pfads und Festlegen der Speichermenge.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="772" height="591" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-11.png" alt="" class="wp-image-553" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-11.png 772w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-11-300x230.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-11-768x588.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-11-16x12.png 16w" sizes="auto, (max-width: 772px) 100vw, 772px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="853" height="252" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-12.png" alt="" class="wp-image-554" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-12.png 853w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-12-300x89.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-12-768x227.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-12-18x5.png 18w" sizes="auto, (max-width: 853px) 100vw, 853px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="53" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-13-1024x53.png" alt="" class="wp-image-555" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-13-1024x53.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-13-300x15.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-13-768x39.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-13-18x1.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-13.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Nach den obigen Konfigurationen haben wir die VM über PowerShell mit dem Befehl Start-VM -Name &#8222;sles&#8220; gestartet, und die Installation begann. Der Start der Installation ist im folgenden Bild dargestellt:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="723" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-14.png" alt="" class="wp-image-556" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-14.png 723w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-14-300x270.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-14-13x12.png 13w" sizes="auto, (max-width: 723px) 100vw, 723px" /></figure>



<p>In diesem Bild ist der Beginn der Installation dargestellt.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="820" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-15.png" alt="" class="wp-image-557" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-15.png 820w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-15-300x238.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-15-768x609.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-15-15x12.png 15w" sizes="auto, (max-width: 820px) 100vw, 820px" /></figure>



<p>Netzwerkkonfiguration initialisieren.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="756" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-16.png" alt="" class="wp-image-558" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-16.png 756w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-16-300x258.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-16-14x12.png 14w" sizes="auto, (max-width: 756px) 100vw, 756px" /></figure>



<p>Der Installer wird aktualisiert…</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="748" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-17.png" alt="" class="wp-image-559" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-17.png 748w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-17-300x261.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-17-14x12.png 14w" sizes="auto, (max-width: 748px) 100vw, 748px" /></figure>



<p>Hier müssen wir die Sprache einstellen und das Produkt auswählen.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="738" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-18.png" alt="" class="wp-image-560" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-18.png 738w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-18-300x264.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-18-14x12.png 14w" sizes="auto, (max-width: 738px) 100vw, 738px" /></figure>



<p>Wir haben die deutsche Sprache und SUSE Linux Enterprise Server 15 SP6 ausgewählt.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="737" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-19.png" alt="" class="wp-image-561" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-19.png 737w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-19-300x265.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-19-14x12.png 14w" sizes="auto, (max-width: 737px) 100vw, 737px" /></figure>



<p>Auswählen der Lizenzvereinbarung und Fortfahren.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="729" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-20.png" alt="" class="wp-image-562" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-20.png 729w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-20-300x267.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-20-13x12.png 13w" sizes="auto, (max-width: 729px) 100vw, 729px" /></figure>



<p>Hier sind einige Module, die ich für die spätere Verwendung ausgewählt habe.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="749" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-21.png" alt="" class="wp-image-563" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-21.png 749w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-21-300x260.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-21-14x12.png 14w" sizes="auto, (max-width: 749px) 100vw, 749px" /></figure>



<p>Installation der Add-On-Produkte.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="731" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-22.png" alt="" class="wp-image-564" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-22.png 731w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-22-300x267.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-22-13x12.png 13w" sizes="auto, (max-width: 731px) 100vw, 731px" /></figure>



<p>In diesem Fall habe ich den HA-Knoten ausgewählt.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="732" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-23.png" alt="" class="wp-image-565" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-23.png 732w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-23-300x266.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-23-14x12.png 14w" sizes="auto, (max-width: 732px) 100vw, 732px" /></figure>



<p>So sieht die Partitionierung aus.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="722" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-24.png" alt="" class="wp-image-566" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-24.png 722w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-24-300x270.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-24-13x12.png 13w" sizes="auto, (max-width: 722px) 100vw, 722px" /></figure>



<p>Festlegen der Zeitzone und Fortfahren.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="727" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-26.png" alt="" class="wp-image-568" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-26.png 727w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-26-300x268.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-26-13x12.png 13w" sizes="auto, (max-width: 727px) 100vw, 727px" /></figure>



<p>Festlegen des lokalen Benutzernamens und Passworts.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="713" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-27.png" alt="" class="wp-image-569" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-27.png 713w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-27-300x273.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-27-13x12.png 13w" sizes="auto, (max-width: 713px) 100vw, 713px" /></figure>



<p>Mit der Installation fortfahren.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="719" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-28.png" alt="" class="wp-image-570" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-28.png 719w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-28-300x271.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-28-13x12.png 13w" sizes="auto, (max-width: 719px) 100vw, 719px" /></figure>



<p>Bestätigen der Installation.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="760" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-29.png" alt="" class="wp-image-571" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-29.png 760w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-29-300x257.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-29-14x12.png 14w" sizes="auto, (max-width: 760px) 100vw, 760px" /></figure>



<p>Installationsprozess…</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="672" height="650" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-30.png" alt="" class="wp-image-572" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-30.png 672w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-30-300x290.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-30-12x12.png 12w" sizes="auto, (max-width: 672px) 100vw, 672px" /></figure>



<p>Um mit einer neuen SUSE-VM starten zu können, haben wir das Boot-Linux-System ausgewählt.</p>



<p><strong>Aktivieren des SUSE GNOME-Desktops</strong></p>



<p>Um die SUSE-GUI nutzen zu können, müssen wir die folgenden GNOME-Desktop-Pakete installieren:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="26" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-31-1024x26.png" alt="" class="wp-image-573" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-31-1024x26.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-31-300x8.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-31-768x20.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-31-18x1.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-31.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Anschließend installieren wir das GNOME-Desktop-Muster:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="725" height="34" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-32.png" alt="" class="wp-image-574" style="width:538px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-32.png 725w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-32-300x14.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-32-18x1.png 18w" sizes="auto, (max-width: 725px) 100vw, 725px" /></figure>



<p>Und wir müssen das Systemziel auf &#8222;graphical.target&#8220; setzen.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="813" height="34" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-33.png" alt="" class="wp-image-575" style="width:568px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-33.png 813w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-33-300x13.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-33-768x32.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-33-18x1.png 18w" sizes="auto, (max-width: 813px) 100vw, 813px" /></figure>



<p>Das SUSE-GUI-Bild ist unten dargestellt:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="465" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-34-1024x465.png" alt="" class="wp-image-576" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-34-1024x465.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-34-300x136.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-34-768x349.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-34-18x8.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-34.png 1088w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Registrieren der SUSE-VM für den Zugriff auf Repositories einschließlich Package Hub</strong></p>



<p>Um die benötigten Pakete installieren zu können, ist es wichtig, unser System beim SUSE Customer Center zu registrieren und den Registrierungscode zu erhalten. SUSE bietet einen zweimonatigen kostenlosen Abonnementcode.</p>



<p>Im folgenden Bild sind die nicht aktivierten Repositories dargestellt:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="924" height="236" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-35.png" alt="" class="wp-image-577" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-35.png 924w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-35-300x77.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-35-768x196.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-35-18x5.png 18w" sizes="auto, (max-width: 924px) 100vw, 924px" /></figure>



<p>Nach der Evaluierung des Abonnements können wir den Registrierungscode finden, um auf das SUSE-Repository zugreifen zu können.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="342" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-36-1024x342.png" alt="" class="wp-image-578" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-36-1024x342.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-36-300x100.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-36-768x256.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-36-18x6.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-36.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Jetzt können wir die Schritte zur Registrierung unseres Systems mit dem Registrierungscode mithilfe des folgenden Befehls befolgen:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="709" height="27" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-37.png" alt="" class="wp-image-579" style="width:540px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-37.png 709w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-37-300x11.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-37-18x1.png 18w" sizes="auto, (max-width: 709px) 100vw, 709px" /></figure>



<p>Dann können wir das Basis-Systemmodul-Repository aktivieren:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="944" height="31" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-38.png" alt="" class="wp-image-580" style="width:609px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-38.png 944w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-38-300x10.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-38-768x25.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-38-18x1.png 18w" sizes="auto, (max-width: 944px) 100vw, 944px" /></figure>



<p>Und nach dem Aktivieren des Repositories aktualisieren wir es, um die Metadaten zu aktualisieren:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="445" height="33" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-39.png" alt="" class="wp-image-581" style="width:306px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-39.png 445w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-39-300x22.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-39-18x1.png 18w" sizes="auto, (max-width: 445px) 100vw, 445px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="120" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-40-1024x120.png" alt="" class="wp-image-582" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-40-1024x120.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-40-300x35.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-40-768x90.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-40-18x2.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-40.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Alle Repositories wurden aktualisiert:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="224" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-41-1024x224.png" alt="" class="wp-image-583" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-41-1024x224.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-41-300x66.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-41-768x168.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-41-18x4.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-41.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Mit dem Befehl können wir den Status der Repositories anzeigen.</p>



<p><code>zypper repos | egrep -E “Yes”</code></p>



<p></p>



<p><strong>Ansible-Installation in SLES 15 SP6</strong></p>



<p>Wir können Ansible in SLES 15 SP6 über das Package-Hub-Repository installieren:</p>



<p><a href="https://packagehub.suse.com/search/?q=ansible">https://packagehub.suse.com/search/?q=ansible</a></p>



<p>Bevor wir mit der Installation beginnen, sollten wir überprüfen, welche SUSE-Service-Pack-Version in unserer Umgebung installiert ist.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="811" height="306" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-42.png" alt="" class="wp-image-584" style="width:567px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-42.png 811w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-42-300x113.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-42-768x290.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-42-18x7.png 18w" sizes="auto, (max-width: 811px) 100vw, 811px" /></figure>



<p>Und dann die richtige Ansible-Release-Version auf der Webseite finden: <a href="https://packagehub.suse.com/packages/ansible/">https://packagehub.suse.com/packages/ansible/</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="87" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-43-1024x87.png" alt="" class="wp-image-585" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-43-1024x87.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-43-300x25.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-43-768x65.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-43-18x2.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-43.png 1088w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Überprüfen Sie den Verbindungsstatus:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="154" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-44-1024x154.png" alt="" class="wp-image-586" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-44-1024x154.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-44-300x45.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-44-768x116.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-44-18x3.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-44.png 1088w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Zypper-Update</p>



<p>Wir müssen überprüfen, ob der Package_Hub mit dem Befehl aktiviert ist, wie unten gezeigt:</p>



<p><code>zypper lr -u | egrep -E “Package_Hub”</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="250" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-45-1024x250.png" alt="" class="wp-image-587" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-45-1024x250.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-45-300x73.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-45-768x188.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-45-18x4.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-45.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Falls nicht, können wir es wie folgt tun:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="752" height="236" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-46.png" alt="" class="wp-image-588" style="width:556px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-46.png 752w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-46-300x94.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-46-18x6.png 18w" sizes="auto, (max-width: 752px) 100vw, 752px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="382" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-47-1024x382.png" alt="" class="wp-image-589" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-47-1024x382.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-47-300x112.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-47-768x286.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-47-18x7.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-47.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Wir können nach Ansible mit dem Befehl im Bild oben suchen:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1009" height="685" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-48.png" alt="" class="wp-image-590" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-48.png 1009w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-48-300x204.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-48-768x521.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-48-18x12.png 18w" sizes="auto, (max-width: 1009px) 100vw, 1009px" /></figure>



<p>Hier können wir sehen, dass Ansible mit dem Status &#8222;nicht installiert&#8220; angezeigt wird.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="339" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-49-1024x339.png" alt="" class="wp-image-591" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-49-1024x339.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-49-300x99.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-49-768x255.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-49-18x6.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-49.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Start der Ansible-Installation. Nach der Installation können wir die Version überprüfen:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="188" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-50-1024x188.png" alt="" class="wp-image-592" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-50-1024x188.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-50-300x55.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-50-768x141.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-50-18x3.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-50.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Und so können wir den Status sehen:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1008" height="644" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-51.png" alt="" class="wp-image-593" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-51.png 1008w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-51-300x192.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-51-768x491.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-51-18x12.png 18w" sizes="auto, (max-width: 1008px) 100vw, 1008px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="190" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-52-1024x190.png" alt="" class="wp-image-594" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-52-1024x190.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-52-300x56.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-52-768x142.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-52-18x3.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/11/image-52.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Zusammenfassung</strong></p>



<p>Dieser Artikel bietet einen umfassenden Leitfaden für IT-Administratoren, die ihre Abläufe optimieren und die Effizienz durch die Integration von SUSE Linux Enterprise Server (SLES) und Ansible in virtualisierten Umgebungen steigern möchten. Durch die Nutzung der leistungsstarken Automatisierungsmöglichkeiten von Ansible können IT-Teams verschiedene Aufgaben wie Bereitstellung, Konfiguration und Bereitstellung automatisieren, wodurch der manuelle Aufwand und potenzielle menschliche Fehler erheblich reduziert werden. Der Artikel geht auf spezifische Anwendungsfälle und Best Practices ein und ist somit eine wertvolle Ressource für Unternehmen jeder Größe, die ihre IT-Infrastruktur modernisieren und mehr Agilität erreichen möchten.</p>



<p></p>
<p>The post <a href="https://rhein-ruhr-informatik.de/2025/04/22/installation-von-suse-sles-15-sp6-in-hyper-v-und-anschliessende-installation-von-ansible/">Installation von SUSE SLES 15 SP6 in Hyper-V und anschließende Installation von Ansible</a> appeared first on <a href="https://rhein-ruhr-informatik.de">Rhein-Ruhr-Informatik</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern</title>
		<link>https://rhein-ruhr-informatik.de/2025/04/07/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern/</link>
		
		<dc:creator><![CDATA[Rhein-Ruhr-Informatik]]></dc:creator>
		<pubDate>Mon, 07 Apr 2025 08:14:01 +0000</pubDate>
				<category><![CDATA[Artikel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://rhein-ruhr-informatik.de/?p=498</guid>

					<description><![CDATA[<p>Overview Bevor wir mit der Erweiterung beginnen, ist es wichtig zu verstehen, dass die Erweiterung einer virtuellen Festplatte in der Hyper-V-Umgebung eine Erhöhung ihrer zugewiesenen Kapazität bedeutet. Diese Aktion führt nicht automatisch zur Befüllung des zusätzlichen Speicherplatzes mit Daten. Um den zusätzlichen Speicher effektiv nutzen zu können, müssen die Partitionen<a class="moretag" href="https://rhein-ruhr-informatik.de/2025/04/07/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern/"> Weiterlesen&#8230;</a></p>
<p>The post <a href="https://rhein-ruhr-informatik.de/2025/04/07/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern/">Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern</a> appeared first on <a href="https://rhein-ruhr-informatik.de">Rhein-Ruhr-Informatik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="910" height="910" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40.png" alt="" class="wp-image-501" style="width:185px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40.png 910w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40-300x300.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40-150x150.png 150w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40-768x768.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40-12x12.png 12w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-40-50x50.png 50w" sizes="auto, (max-width: 910px) 100vw, 910px" /></figure></div>


<h2 class="wp-block-heading"><strong>Overview</strong></h2>



<p>Bevor wir mit der Erweiterung beginnen, ist es wichtig zu verstehen, dass die Erweiterung einer virtuellen Festplatte in der Hyper-V-Umgebung eine Erhöhung ihrer zugewiesenen Kapazität bedeutet. Diese Aktion führt nicht automatisch zur Befüllung des zusätzlichen Speicherplatzes mit Daten. Um den zusätzlichen Speicher effektiv nutzen zu können, müssen die Partitionen und Dateisysteme der virtuellen Maschine manuell erweitert werden, damit sie den neu zugewiesenen Speicherplatz belegen können.</p>



<p>Bevor wir auf die Schritte eingehen, klären wir zunächst, warum wir die Festplatte einer Hyper-V-VM möglicherweise erweitern möchten. Diese Aktion ist in der Regel erforderlich, wenn die vorhandene Speicherkapazität der virtuellen Maschine nicht ausreicht, um wachsende Daten oder Anwendungen aufzunehmen.</p>



<h2 class="wp-block-heading"><br><strong>Hyper-V Manager Aufrufen</strong></h2>



<p><strong>Windows 10/11:</strong> Suchen Sie im Startmenü nach &#8222;Hyper-V Manager&#8220; und öffnen Sie es.</p>



<p>Zuerst müssen wir den Server herunterfahren.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="634" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-65-1024x634.png" alt="" class="wp-image-602" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-65-1024x634.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-65-300x186.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-65-768x475.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-65-18x12.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-65.png 1087w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Auf dem virtuellen Computer klicken wir auf die Einstellungen, um die Festplatte zu konfigurieren:</p>



<p>Unter dem Menü &#8222;Hardware&#8220; wählen wir den Speicher aus und klicken auf der rechten Seite auf die Schaltfläche &#8222;Bearbeiten&#8220;, um mit den nächsten Schritten fortfahren zu können.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="936" height="882" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-66.png" alt="" class="wp-image-604" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-66.png 936w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-66-300x283.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-66-768x724.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-66-13x12.png 13w" sizes="auto, (max-width: 936px) 100vw, 936px" /></figure>



<p><br>Auf dem linken Bildschirm wählen wir &#8222;Aktion&#8220;, dann &#8222;Erweitern&#8220; und schließlich &#8222;Weiter&#8220;:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="974" height="738" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-67.png" alt="" class="wp-image-605" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-67.png 974w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-67-300x227.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-67-768x582.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-67-16x12.png 16w" sizes="auto, (max-width: 974px) 100vw, 974px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="885" height="674" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-68.png" alt="" class="wp-image-606" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-68.png 885w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-68-300x228.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-68-768x585.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-68-16x12.png 16w" sizes="auto, (max-width: 885px) 100vw, 885px" /></figure>



<p><br>Wie wir im Bild unten unter &#8222;Daten konfigurieren&#8220; auf der rechten Seite sehen, sind 50 GB vorhanden. Hier können wir die Größe des Speichers erweitern.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="774" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-69-1024x774.png" alt="" class="wp-image-607" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-69-1024x774.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-69-300x227.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-69-768x581.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-69-16x12.png 16w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-69.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Wie im Bild unten gezeigt, wird es auf 60 GB erweitert.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="780" height="309" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-70.png" alt="" class="wp-image-608" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-70.png 780w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-70-300x119.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-70-768x304.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-70-18x7.png 18w" sizes="auto, (max-width: 780px) 100vw, 780px" /></figure>



<p><br>Nachdem wir auf Weiter geklickt haben, erhalten wir dieses Bild, in dem wir erneut auf Weiter klicken.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="976" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-71-1024x976.png" alt="" class="wp-image-609" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-71-1024x976.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-71-300x286.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-71-768x732.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-71-13x12.png 13w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-71.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Ich habe die virtuelle Maschine gestartet.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="347" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-72-1024x347.png" alt="" class="wp-image-610" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-72-1024x347.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-72-300x102.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-72-768x260.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-72-18x6.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-72.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Nach diesen Schritten im Hyper-V Manager starten wir die virtuelle Maschine und erweitern das LVM.</p>



<p>Über das Putty-Tool müssen wir auf unsere virtuelle Maschine zugreifen.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="702" height="692" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-73.png" alt="" class="wp-image-611" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-73.png 702w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-73-300x296.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-73-12x12.png 12w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-73-50x50.png 50w" sizes="auto, (max-width: 702px) 100vw, 702px" /></figure>



<p><br>Beginnen Sie mit der Überprüfung des freien Speicherplatzes Ihres Root-Dateisystems mit df -hT. Unsere Root-Disk ist zu 62% ausgelastet. Jetzt werden wir die Schritte befolgen, um 10 GB mehr zuzuweisen, um den Prozentsatz unseres Dateisystems zu erhöhen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="431" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-74-1024x431.png" alt="" class="wp-image-612" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-74-1024x431.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-74-300x126.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-74-768x323.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-74-18x8.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-74.png 1094w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Wir geben die folgenden Befehle ein: <strong><code>parted -l</code></strong> adm type <strong><code>Fix</code></strong> , um die Liste der Festplatten und Partitionen anzuzeigen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="651" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-75-1024x651.png" alt="" class="wp-image-613" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-75-1024x651.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-75-300x191.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-75-768x488.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-75-18x12.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-75.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Im Bild unten sehen wir, dass ein Fehler namens vorliegt <strong><code>GPT PMBR size mismatch</code></strong>. Zuerst können wir ihn beheben, indem wir den Befehl zur Fehlerkorrektur eingeben.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-76-1024x423.png" alt="" class="wp-image-614" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-76-1024x423.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-76-300x124.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-76-768x318.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-76-18x7.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-76.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Jetzt scheint alles in Ordnung zu sein.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="409" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-77-1024x409.png" alt="" class="wp-image-615" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-77-1024x409.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-77-300x120.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-77-768x307.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-77-18x7.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-77.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Jetzt können wir unser logisches Volume auf dem /dev/sda3-Dateisystem wie unten gezeigt erweitern:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="424" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-78-1024x424.png" alt="" class="wp-image-616" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-78-1024x424.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-78-300x124.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-78-768x318.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-78-18x7.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-78.png 1085w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Zuerst verwenden wir den Befehl fdisk /dev/sda und fahren mit den anderen unten gezeigten Befehlen fort.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="634" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-79-1024x634.png" alt="" class="wp-image-617" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-79-1024x634.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-79-300x186.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-79-768x475.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-79-18x12.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-79.png 1092w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Jetzt ist ein Neustart des Systems erforderlich.</p>



<p>Um den vorhandenen freien Speicherplatz auf Ihrer Volume Group (wo er durch die Standardinstallationswerte hinterlassen wird) zu überprüfen, führen Sie die Befehle <strong><code>vgdisplay</code> </strong>und<strong> <code>lvdisplay</code> </strong>aus, um nach freiem Speicherplatz zu suchen.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="876" height="619" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-80.png" alt="" class="wp-image-618" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-80.png 876w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-80-300x212.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-80-768x543.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-80-18x12.png 18w" sizes="auto, (max-width: 876px) 100vw, 876px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="927" height="513" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-81.png" alt="" class="wp-image-619" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-81.png 927w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-81-300x166.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-81-768x425.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-81-18x10.png 18w" sizes="auto, (max-width: 927px) 100vw, 927px" /></figure>



<p><br>Nachdem der Computer neu gestartet wurde, können wir den Befehl<br><strong><code>lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv</code></strong><br>verwenden, um die Partition zu erweitern.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="121" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-82-1024x121.png" alt="" class="wp-image-620" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-82-1024x121.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-82-300x35.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-82-768x91.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-82-18x2.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-82.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>An dieser Stelle haben Sie die Größe des Blockvolumens, auf dem Ihr Root-Dateisystem residiert, erweitert, aber Sie müssen das Dateisystem darauf noch erweitern. Führen Sie zuerst <strong><code>lsblk</code></strong> aus:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="487" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-83-1024x487.png" alt="" class="wp-image-621" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-83-1024x487.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-83-300x143.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-83-768x365.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-83-18x9.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-83.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Um unser Root-Dateisystem zu überprüfen:<br><strong><code>resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv</code></strong><br>um unser Dateisystem zu erweitern:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="474" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-84-1024x474.png" alt="" class="wp-image-622" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-84-1024x474.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-84-300x139.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-84-768x356.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-84-18x8.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-84.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>Wie wir jetzt sehen, hat sich die Größe unseres LVM auf 48 GB erweitert.</p>



<h2 class="wp-block-heading"><br><strong>Zusammenfassung</strong></h2>



<p><br>Insgesamt bietet dieser Leitfaden eine schrittweise Anleitung zum Erweitern der Festplatte einer Hyper-V-VM, wobei häufige Herausforderungen angesprochen werden, und eine optimale Speichernutzung gewährleistet wird.</p>
<p>The post <a href="https://rhein-ruhr-informatik.de/2025/04/07/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern/">Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern</a> appeared first on <a href="https://rhein-ruhr-informatik.de">Rhein-Ruhr-Informatik</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Jenkins auf Ubuntu 22.04 LTS installieren und einige Administrationsaufgaben</title>
		<link>https://rhein-ruhr-informatik.de/2025/03/01/jenkins-auf-ubuntu-22-04-lts-installieren-und-einige-administrationsaufgaben/</link>
		
		<dc:creator><![CDATA[Rhein-Ruhr-Informatik]]></dc:creator>
		<pubDate>Sat, 01 Mar 2025 16:51:43 +0000</pubDate>
				<category><![CDATA[Artikel]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://rhein-ruhr-informatik.de/?p=454</guid>

					<description><![CDATA[<p>Übersicht Jenkins ist eine äußerst beliebte Open-Source-Webanwendung, die entwickelt wurde, um den Softwareentwicklungsprozess zu rationalisieren und zu automatisieren. Es ist ein Eckpfeiler für Continuous Integration (CI) und Continuous Delivery (CD)-Pipelines und ermöglicht es Entwicklern und DevOps-Teams, Anwendungen effizient zu erstellen, zu testen und bereitzustellen. Jenkins installieren&#160;&#160;&#160;&#160;&#160; Es gibt viele Methoden,<a class="moretag" href="https://rhein-ruhr-informatik.de/2025/03/01/jenkins-auf-ubuntu-22-04-lts-installieren-und-einige-administrationsaufgaben/"> Weiterlesen&#8230;</a></p>
<p>The post <a href="https://rhein-ruhr-informatik.de/2025/03/01/jenkins-auf-ubuntu-22-04-lts-installieren-und-einige-administrationsaufgaben/">Jenkins auf Ubuntu 22.04 LTS installieren und einige Administrationsaufgaben</a> appeared first on <a href="https://rhein-ruhr-informatik.de">Rhein-Ruhr-Informatik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="408" height="389" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-17.png" alt="" class="wp-image-455" style="width:306px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-17.png 408w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-17-300x286.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-17-13x12.png 13w" sizes="auto, (max-width: 408px) 100vw, 408px" /></figure></div>


<p><strong>Übersicht</strong></p>



<p>Jenkins ist eine äußerst beliebte Open-Source-Webanwendung, die entwickelt wurde, um den Softwareentwicklungsprozess zu rationalisieren und zu automatisieren. Es ist ein Eckpfeiler für Continuous Integration (CI) und Continuous Delivery (CD)-Pipelines und ermöglicht es Entwicklern und DevOps-Teams, Anwendungen effizient zu erstellen, zu testen und bereitzustellen<strong>.</strong></p>



<p><strong>Jenkins installieren&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong></p>



<p>Es gibt viele Methoden, um Jenkins in Ubuntu zu installieren. Bevor wir jedoch mit der Installation von Jenkins beginnen, müssen wir bereits die Java JRE (Java Runtime Environment) installiert haben. OpenJDK ist eine Open-Source-Implementierung der Java-Plattform. Es bietet die Kernkomponenten, die zum Ausführen von Java-Anwendungen erforderlich sind.</p>



<p>Wir werden mit der Ubuntu-22.04-Version arbeiten.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1019" height="322" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-8.png" alt="" class="wp-image-774" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-8.png 1019w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-8-300x95.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-8-768x243.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-8-18x6.png 18w" sizes="auto, (max-width: 1019px) 100vw, 1019px" /></figure>



<p>Lassen Sie uns OpenJDK-11 installieren. Die Schritte zum Installieren dieser Distribution auf unserem System über die Putty-Schnittstelle werden nachfolgend beschrieben. Als Erstes werden wir die archivierte OpenJDK-11-Datei der offiziellen Website [<a href="https://jdk.java.net/archive/" target="_blank" rel="noreferrer noopener">https://jdk.java.net/archive/</a>] herunterladen.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="992" height="558" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-18.png" alt="" class="wp-image-456" style="width:742px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-18.png 992w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-18-300x169.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-18-768x432.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-18-18x10.png 18w" sizes="auto, (max-width: 992px) 100vw, 992px" /><figcaption class="wp-element-caption"><em>OpenJDK download</em></figcaption></figure></div>


<p>Dann können wir über die WinSCP-App auf unser Linux (Ubuntu)-Umgebung zugreifen, um sie als Binärdatei zu übertragen.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="522" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-19-1024x522.png" alt="" class="wp-image-457" style="width:792px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-19-1024x522.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-19-300x153.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-19-768x392.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-19-18x9.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-19.png 1086w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption"><em>OpenJDK file transfer</em></figcaption></figure></div>


<p>Nachdem wir die Archivdatei in unserer Umgebung haben, müssen wir sie zuerst über die Befehlszeile extrahieren.</p>



<p><strong>tar -xvzf openjdk-17.0.1_linux-x64_bin.tar.gz</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="62" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-9-1024x62.png" alt="" class="wp-image-776" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-9-1024x62.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-9-300x18.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-9-768x47.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-9-18x1.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-9.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Da die Datei nur Lese- und Schreibrechte hat, werden wir ihr die Ausführungsberechtigung wie folgt erteilen:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="54" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-10-1024x54.png" alt="" class="wp-image-777" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-10-1024x54.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-10-300x16.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-10-768x41.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-10-18x1.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-10.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Wenn wir dann auflisten, erhalten wir:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="66" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-11-1024x66.png" alt="" class="wp-image-778" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-11-1024x66.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-11-300x19.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-11-768x49.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-11-18x1.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-11.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Jetzt können wir OpenJDK-17 mit dem folgenden Befehl installieren:</p>



<p><strong>sudo apt install openjdk-17-jdk -y</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="167" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-12-1024x167.png" alt="" class="wp-image-780" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-12-1024x167.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-12-300x49.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-12-768x125.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-12-18x3.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-12.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Da jedoch OpenJDK-17 bereits in meiner Umgebung installiert ist, wird die neueste Version angezeigt.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="85" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-13-1024x85.png" alt="" class="wp-image-781" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-13-1024x85.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-13-300x25.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-13-768x64.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-13-18x2.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-13.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code></code></pre>



<p>Nach der Installation überprüfen wir, ob der Jenkins-Dienst aktiv ist.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="220" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-14-1024x220.png" alt="" class="wp-image-782" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-14-1024x220.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-14-300x64.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-14-768x165.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-14-18x4.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2025/03/image-14.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code>  
  root@master:/home/bekber1# systemctl
  status jenkins
  ● jenkins.service
  - Jenkins Continuous Integration Server
  &nbsp;&nbsp;&nbsp;&nbsp;
  Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor
  preset: enabled)
  &nbsp;&nbsp;&nbsp;&nbsp;
  Active: active (running) since Tue 2024-09-03 06:34:13 UTC; 2h 58min
  ago
  &nbsp;&nbsp;
  Main PID: 18413 (java)
  &nbsp;&nbsp;&nbsp;&nbsp;
  &nbsp;Tasks: 63 (limit: 2178)
  &nbsp;&nbsp;&nbsp;&nbsp;
  Memory: 791.1M
  &nbsp;&nbsp;&nbsp;&nbsp;
  CGroup: /system.slice/jenkins.service
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; └─18413 /usr/bin/java
  -Djava.awt.headless=true -jar /usr/share/java/jenkins.war
  --webroot=/var/cache/jenkins/war --httpPort=xxx
  
</code></pre>



<p>Wir können also sehen, dass der Jenkins-Dienst aktiv ist. Um jetzt über den Webbrowser auf Jenkins zugreifen zu können, müssen wir die Standard-UFW-Firewall konfigurieren.</p>



<p>Öffnen Sie dem Port 8080, indem Sie die folgenden Befehle ausführen:</p>



<pre class="wp-block-code"><code> 
  root@master:/home/bekber1#
  ufw allow 8080
  Rule
  added
  Rule
  added (v6)
  &nbsp;
  root@master:/home/bekber1#
  ufw status
  Status:
  active<span style="color:red;mso-ansi-language:EN-US"></span>
 </code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="846" height="642" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-24.png" alt="" class="wp-image-462" style="width:660px;height:auto" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-24.png 846w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-24-300x228.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-24-768x583.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-24-16x12.png 16w" sizes="auto, (max-width: 846px) 100vw, 846px" /></figure></div>


<p>In der Putty-CLI verwenden wir den folgenden Befehl, um das Administrator-Kennwort zu erhalten:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="28" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-25-1024x28.png" alt="" class="wp-image-463" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-25-1024x28.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-25-300x8.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-25-768x21.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-25-18x1.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-25.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Wir kopieren das standardmäßig bereitgestellte Kennwort und fügen es in das im obigen Bild gezeigte Feld ein, bevor wir auf die Schaltfläche &#8222;Weiter&#8220; klicken. Danach können wir loslegen.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="940" height="702" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-26.png" alt="" class="wp-image-464" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-26.png 940w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-26-300x224.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-26-768x574.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-26-16x12.png 16w" sizes="auto, (max-width: 940px) 100vw, 940px" /></figure>



<p>Nach der Installation und Konfiguration müssen wir unseren ersten Admin-Benutzer erstellen, wie im folgenden Bild gezeigt:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="896" height="639" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-27.png" alt="" class="wp-image-465" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-27.png 896w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-27-300x214.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-27-768x548.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-27-18x12.png 18w" sizes="auto, (max-width: 896px) 100vw, 896px" /></figure>



<p>Jetzt können wir auf &#8222;Speichern und fortfahren&#8220; klicken und erhalten dann die Jenkins-URL, wie unten gezeigt:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="881" height="611" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-28.png" alt="" class="wp-image-466" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-28.png 881w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-28-300x208.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-28-768x533.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-28-18x12.png 18w" sizes="auto, (max-width: 881px) 100vw, 881px" /></figure>



<p>Jetzt ist Jenkins bereit und wir können es starten und verwenden.</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="331" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-30-1024x331.png" alt="" class="wp-image-468" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-30-1024x331.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-30-300x97.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-30-768x248.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-30-18x6.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-30.png 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption"><em>Beginnen Sie mit Jenkins</em></figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="297" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-31-1024x297.png" alt="" class="wp-image-469" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-31-1024x297.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-31-300x87.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-31-768x223.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-31-18x5.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-31.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption"><em>Melden Sie sich bei Jenkins an</em></figcaption></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="279" src="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-32-1024x279.png" alt="" class="wp-image-470" srcset="https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-32-1024x279.png 1024w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-32-300x82.png 300w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-32-768x209.png 768w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-32-18x5.png 18w, https://rhein-ruhr-informatik.de/wp-content/uploads/2024/10/image-32.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption"><em>Jenkins-Dashboard</em></figcaption></figure></div>


<p>Jenkins-Administrator-Kennwort ändert, wenn es verlorengeht:</p>



<p>Wenn wir das Jenkins-Admin-Passwort für den Webbrowser vergessen haben, sollten wir die folgenden Schritte befolgen, um es zurückzusetzen:</p>



<p>Zunächst müssen wir herausfinden, wo sich die config.xml-Datei befindet:</p>



<pre class="wp-block-code"><code>root@master:/home/bekber1# cd /var/lib/jenkins/ </code></pre>



<p>Wir müssen die config.xml-Datei öffnen und die folgende Zeile in der Konfigurationsdatei ändern:</p>



<pre class="wp-block-code"><code>root@master:/var/lib/jenkins# vim config.xml</code></pre>



<p>Wenn Sie diese Datei in der CLI zusammenfügen, können Sie die Zeile <code>"&lt;useSecurity&gt;true&lt;/useSecurity&gt;"</code> sehen. Wir ändern sie von &#8222;<strong>true</strong>&#8220; auf &#8222;<strong>false</strong>&#8220; und starten anschließend den Jenkins-Dienst neu wie folgt:</p>



<p><code>systemctl restart jenkins&nbsp;</code></p>



<p>Nach diesen Schritten aktualisieren wir die Seite des Webbrowsers und gelangen auf die Jenkins-Seite, um die Änderungen vorzunehmen, da sie nun ungesichert ist.</p>



<p>Der erste Schritt besteht darin, &#8222;<strong>Manage Jenkins</strong>&#8220; auszuwählen und anschließend in der Dropdown-Liste &#8222;<strong>Security Realm</strong>&#8220; &#8222;<strong>Jenkins&#8216; own user database</strong>&#8220; auszuwählen. Wir speichern dies und schließen das Fenster.</p>



<p>Danach können wir unter &#8222;<strong>Manage Jenkins</strong>&#8220; -&gt; &#8222;<strong>Security</strong>&#8220; -&gt; &#8222;<strong>Users</strong>&#8220; auf die Schaltfläche &#8222;<strong>Einstellungen</strong>&#8220; klicken und unter &#8222;<strong>Kennwort</strong>&#8220; das Kennwort ändern.</p>



<p><strong>So erstellen Sie einen integrierten Node-Agenten</strong></p>



<p>In Jenkins sind Agents unerlässlich für die Ausführung von Build-Jobs. Die Schritte, die wir befolgen sollten, sind:</p>



<p>Wir müssen .ssh in /var/lib/jenkins/.ssh/known_host konfigurieren.</p>



<p>-wir erstellen den Ordner namens .ssh</p>



<pre class="wp-block-code"><code>root@master:/var/lib/jenkins#mkdir -p /var/lib/jenkins/.ssh
root@master:/var/lib/jenkins# chown -R jenkins:jenkins .ssh
root@master:/var/lib/jenkins#ssh-keyscan -H agent1 &gt;&gt; /var/lib/jenkins/.ssh/known_host

</code></pre>



<p>Wenn es nicht funktioniert, z. B.</p>



<pre class="wp-block-code"><code>root@master:/etc/ssh# ssh-keyscan -H agent1 &gt;&gt; /var/lib/jenkins/.ssh/known_hosts
getaddrinfo agent1: Temporary failure in name resolution
getaddrinfo agent1: Temporary failure in name resolution
getaddrinfo agent1: Temporary failure in name resolution
getaddrinfo agent1: Temporary failure in name resolution
getaddrinfo agent1: Temporary failure in name resolution

</code></pre>



<p>Dann müssen wir die IP-Adresse von agent1 in der <code>/etc/hosts</code>-Datei hinzufügen.&nbsp;</p>



<p>Zur Ermittlung der IP-Adresse von agent1 nutzen wir den Befehl</p>



<pre class="wp-block-code"><code>root@master:/etc/ssh# dig agent1
 
; &lt;&lt;&gt;&gt; DiG 9.16.48-Ubuntu &lt;&lt;&gt;&gt; agent1
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: SERVFAIL, id: 15329
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
 
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;agent1.                                IN      A
 ;; Query time: 0 msec
;; SERVER: &lt;MyIpAddress&gt;#53(&lt;MyIpAddress&gt;)
;; WHEN: Sun Mar 10 10:33:06 UTC 2024
;; MSG SIZE  rcvd: 35

</code></pre>



<p>und bearbeiten wir die /etc/hosts-Datei mit dem Nano-Editor wie folgt:</p>



<pre class="wp-block-code"><code>root@master:/etc# cat hosts
&lt;MyIpAddress&gt;localhost
&lt;MyIpAddress&gt;linux-0
&lt;MyIpAddress&gt;master
&lt;MyIpAddress&gt;node1
&lt;MyIpAddress&gt;node2
&lt;MyIpAddress&gt; agent1    ----------&gt; mit dem Nano- oder Vim-Editor müssen wir die IP-Adresse von agent1 hinzufügen.
/etc/hosts
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
</code></pre>



<p>Nach Ausführung des Befehls ssh-keyscan -H agent1 &gt;&gt; /var/lib/jenkins/.ssh/known_hosts erhalten wir die Auflösung:</p>



<pre class="wp-block-code"><code>root@master:/etc# ssh-keyscan -H agent1 &gt;&gt; /var/lib/jenkins/.ssh/known_hosts
# agent1:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
# agent1:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
# agent1:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
# agent1:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
# agent1:22 SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
</code></pre>



<p>Jenkins agent1 am Port 22 wird aufgelöst:</p>



<pre class="wp-block-code"><code>root@master:/etc# cd /var/lib/jenkins/.ssh/
root@master:/var/lib/jenkins/.ssh# ll
total 12
drwxr-xr-x  2 jenkins jenkins 4096 Mar 10 10:11 ./
drwxr-xr-x 15 jenkins jenkins 4096 Mar 10 10:05 ../
-rw-r--r--  1 jenkins jenkins  978 Mar 10 10:36 known_hosts

root@master:/var/lib/jenkins/.ssh# cat known_hosts
|1|UMnpRmZeDMTxf8bAmPYanyzeE54=|C7tpVgwzVbu7FDJG4fUiDVN3L4I= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAunO9x3A5IInM2Qqqf4wwWBEokfH8pRiMVcrjNTNn7hCZrgi75hbRbV+dG8hy2xhUtDlywP0k0S/+qpSwoVd7E=
|1|nPGx2tNNjsRAU6ZYf7UqlI1iGcM=|TqWQT18KAS56FgREOVEfVUvvILQ= ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTy0gPfw8tQ7T2VkFlp82regznVnrZx7tlsgLqlOWVqzhCPrA4/V0DlOsHRjDKUFNnrH+LgOSSAmZwqRrHYyy6Oe+BkmXU4v5a8oZPA1xYRSL/Q1YDYhiMeySilDDzUQwy6HqcmlpPHdPFsl/S/vQIoCAlP5PbS9/GYXILJJj2bxVjqq/nWeC3QywDsoch02XxPpQORk3qFPKDAbc8AWn26v/zHXFgjEig0vW+el1gjkKe8scNTvjVhRot31gD3SdM39SpEspD+Unkw0EhI60hnQeZjiunRUM9/Za2sw3cFGOCXOySDPrkZ2mm10geTZVDF4JTm+pdsv8cmLOUSooRWg+t8R6MK7ZDmeW1aRScpy5R8je0fuGU7XX/P+RNs27TFJQevE0EwWcTYMtBMQunuuqGFBVUBIOMZzwKeipojx9mGXhDp+TiHsQRXq/9nIOdiDfrub658RUJBgZsaX7fAsnnMMbjf0qBSXdikNoQHm+SrvxI4I7L7XawidSqWkU=
|1|1JIhNCOumg+yjaTgMMYtcGAkC6o=|B/ZgF81ZU+t+8AbByBU3hwp68X0= ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFLr95lmAUl1k0+zxfhzG4B9fvrvPtddpxOCII+abRfO

root@master:/var/lib/jenkins/.ssh#
</code></pre>



<p>Jenkins-Logs:</p>



<pre class="wp-block-code"><code>Warning: no key algorithms provided; JENKINS-42959 disabled
SSHLauncher{host='agent1', port=22, credentialsId='linux-0', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
&#91;03/10/24 10:43:30] &#91;SSH] Opening SSH connection to agent1:22.
Searching for agent1 in /var/lib/jenkins/.ssh/known_hosts
Searching for agent1:22 in /var/lib/jenkins/.ssh/known_hosts
&#91;03/10/24 10:43:30] &#91;SSH] SSH host key matches key in Known Hosts file. Connection will be allowed.
&#91;03/10/24 10:43:31] &#91;SSH] Authentication successful.
&#91;03/10/24 10:43:32] &#91;SSH] The remote user's environment is:
BASH=/usr/bin/bash
.
.
.
&lt;===&#91;JENKINS REMOTING CAPACITY]===&gt;channel started
Remoting version: 3206.vb_15dcf73f6a_9
Launcher: SSHLauncher
Communication Protocol: Standard in/out
This is a Unix agent
Agent successfully connected and online
</code></pre>



<p><strong>Zusammenfassung</strong></p>



<p>Jenkins ist ein wertvolles Werkzeug zur Automatisierung von Softwareentwicklungsprozessen. Durch das Verständnis seiner Kernfunktionen, Installation, Konfiguration, Sicherheit und Agentenverwaltung können Sie Jenkins effektiv nutzen, um Ihre CI/CD-Pipelines zu verbessern und hochwertige Software zu liefern.</p>



<p><strong>Referenz:</strong></p>



<p><a href="https://community.jenkins.io/t/can-i-create-agent-for-built-in-node/1183">https://community.jenkins.io/t/can-i-create-agent-for-built-in-node/1183</a></p>



<p><a href="https://jdk.java.net/archive">https://jdk.java.net/archive</a></p>



<p></p>
<p>The post <a href="https://rhein-ruhr-informatik.de/2025/03/01/jenkins-auf-ubuntu-22-04-lts-installieren-und-einige-administrationsaufgaben/">Jenkins auf Ubuntu 22.04 LTS installieren und einige Administrationsaufgaben</a> appeared first on <a href="https://rhein-ruhr-informatik.de">Rhein-Ruhr-Informatik</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
