Proxmox CentOS template erstellen

Vorwort


Für einen Kunden müssen wir ein CentOS 7 Template erstellen, damit wir später um die 20 bis 30 VMs schnell und einfach erstellen können. Diese müssen bei Bedarf gelöscht und einfach wieder neu erstellt werden können.

Installation


Die Installation ist selbst erklärend und wir werden hier nicht weiter daruf eingehen. Einfach eine VM erstellen und CentOS installieren.

Aktualisierung


yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.proserve.nl
* extras: mirror.serverius.net
* updates: centos.cu.be

NetworkManager.x86_64 1:1.18.8-2.el7_9 updates
[...]
xz.x86_64 5.2.2-2.el7_9 updates
xz-libs.x86_64 5.2.2-2.el7_9 updates
zlib.x86_64 1.2.7-21.el7_9 updates


yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.proserve.nl
* extras: mirror.serverius.net
* updates: centos.cu.be
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.8-1.el7 will be updated
[...]
---> Package xz.x86_64 0:5.2.2-2.el7_9 will be an update
---> Package xz-libs.x86_64 0:5.2.2-1.el7 will be updated
---> Package xz-libs.x86_64 0:5.2.2-2.el7_9 will be an update
---> Package zlib.x86_64 0:1.2.7-18.el7 will be updated
---> Package zlib.x86_64 0:1.2.7-21.el7_9 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================
Installing:
kernel x86_64 3.10.0-1160.92.1.el7 updates 52 M
Updating:
NetworkManager x86_64 1:1.18.8-2.el7_9 updates 1.9 M
[...]
xz x86_64 5.2.2-2.el7_9 updates 229 k
xz-libs x86_64 5.2.2-2.el7_9 updates 103 k
zlib x86_64 1.2.7-21.el7_9 updates 90 k

Transaction Summary
==========================================================================================================================================
Install 1 Package
Upgrade 114 Packages

Total download size: 255 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/updates/packages/NetworkManager-1.18.8-2.el7_9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for NetworkManager-1.18.8-2.el7_9.x86_64.rpm is not installed
(1/115): NetworkManager-1.18.8-2.el7_9.x86_64.rpm | 1.9 MB 00:00:00
(2/115): NetworkManager-libnm-1.18.8-2.el7_9.x86_64.rpm | 1.7 MB 00:00:00
(3/115): NetworkManager-team-1.18.8-2.el7_9.x86_64.rpm | 165 kB 00:00:00
(4/115): NetworkManager-tui-1.18.8-2.el7_9.x86_64.rpm | 329 kB 00:00:00
(5/115): bash-4.2.46-35.el7_9.x86_64.rpm | 1.0 MB 00:00:00
(6/115): bind-export-libs-9.11.4-26.P2.el7_9.13.x86_64.rpm | 1.1 MB 00:00:00
[...]
(112/115): xz-5.2.2-2.el7_9.x86_64.rpm | 229 kB 00:00:00
(113/115): wpa_supplicant-2.6-12.el7_9.2.x86_64.rpm | 1.2 MB 00:00:00
(114/115): xz-libs-5.2.2-2.el7_9.x86_64.rpm | 103 kB 00:00:00
(115/115): zlib-1.2.7-21.el7_9.x86_64.rpm | 90 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------
Total 11 MB/s | 255 MB 00:00:23
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-9.2009.0.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y

Running transaction check
Running transaction test
Transaction test succeeded
Running transaction

Updating : 1:grub2-common-2.02-0.87.0.2.el7.centos.11.noarch 1/229
Updating : centos-release-7-9.2009.1.el7.centos.x86_64 2/229
Updating : 1:grub2-pc-modules-2.02-0.87.0.2.el7.centos.11.noarch 3/229
Updating : kbd-misc-1.15.5-16.el7_9.noarch 4/229
[...]
Updating : iwl6000-firmware-9.221.4.1-80.el7_9.noarch 114/229
Updating : iwl5150-firmware-8.24.2.2-80.el7_9.noarch 115/229
Cleanup : 12:dhclient-4.2.5-82.el7.centos.x86_64 116/229
Cleanup : 2:microcode_ctl-2.1-73.el7.x86_64 117/229
[...]
Cleanup : glibc-2.17-317.el7.x86_64 228/229
Cleanup : tzdata-2020a-1.el7.noarch 229/229
Verifying : 7:device-mapper-event-1.02.170-6.el7_9.5.x86_64 1/229
Verifying : libblkid-2.23.2-65.el7_9.1.x86_64 2/229
[...]
Verifying : util-linux-2.23.2-65.el7.x86_64 228/229
Verifying : libmount-2.23.2-65.el7.x86_64 229/229

Installed:
kernel.x86_64 0:3.10.0-1160.92.1.el7

Updated:
NetworkManager.x86_64 1:1.18.8-2.el7_9 NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9 NetworkManager-team.x86_64 1:1.18.8-2.el7_9 [...]
xz-libs.x86_64 0:5.2.2-2.el7_9 zlib.x86_64 0:1.2.7-21.el7_9

Complete!



QEMU Agent

yum install -y qemu-guest-agent
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.proserve.nl
* extras: mirror.serverius.net
* updates: centos.cu.be
Package 10:qemu-guest-agent-2.12.0-3.el7.x86_64 already installed and latest version
Nothing to do


Cloud Init


yum install -y cloud-init
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.proserve.nl
* extras: mirror.serverius.net
* updates: centos.cu.be
Resolving Dependencies
--> Running transaction check
---> Package cloud-init.x86_64 0:19.4-7.el7.centos.6 will be installed
--> Processing Dependency: python-six for package: cloud-init-19.4-7.el7.centos.6.x86_64
[...]
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
cloud-init x86_64 19.4-7.el7.centos.6 updates 933 k
Installing for dependencies:
PyYAML x86_64 3.10-11.el7 base 153 k
audit-libs-python x86_64 2.8.5-4.el7 base 76 k
checkpolicy x86_64 2.5-8.el7 base 295 k
libcgroup x86_64 0.41-21.el7 base 66 k
libsemanage-python x86_64 2.5-14.el7 base 113 k
libyaml x86_64 0.1.4-11.el7_0 base 55 k
net-tools x86_64 2.0-0.25.20131004git.el7 base 306 k
policycoreutils-python x86_64 2.5-34.el7 base 457 k
pyserial noarch 2.6-6.el7 base 124 k
python-IPy noarch 0.75-6.el7 base 32 k
python-babel noarch 0.9.6-8.el7 base 1.4 M
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.5.0.1-1.el7 base 13 k
python-chardet noarch 2.2.1-3.el7 base 227 k
python-ipaddress noarch 1.0.16-2.el7 base 34 k
python-jinja2 noarch 2.7.2-4.el7 base 519 k
python-jsonpatch noarch 1.2-4.el7 base 15 k
python-jsonpointer noarch 1.9-2.el7 base 13 k
python-markupsafe x86_64 0.11-10.el7 base 25 k
python-prettytable noarch 0.7.2-3.el7 base 37 k
python-requests noarch 2.6.0-10.el7 base 95 k
python-setuptools noarch 0.9.8-7.el7 base 397 k
python-six noarch 1.9.0-2.el7 base 29 k
python-urllib3 noarch 1.10.2-7.el7 base 103 k
setools-libs x86_64 3.3.8-4.el7 base 620 k

Transaction Summary
================================================================================================================================
Install 1 Package (+25 Dependent packages)

Total download size: 6.0 M
Installed size: 23 M
Downloading packages:
(1/26): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:00
(2/26): PyYAML-3.10-11.el7.x86_64.rpm | 153 kB 00:00:00
(3/26): libcgroup-0.41-21.el7.x86_64.rpm | 66 kB 00:00:00
(4/26): checkpolicy-2.5-8.el7.x86_64.rpm | 295 kB 00:00:00
(5/26): libsemanage-python-2.5-14.el7.x86_64.rpm | 113 kB 00:00:00
(6/26): libyaml-0.1.4-11.el7_0.x86_64.rpm | 55 kB 00:00:00
(7/26): cloud-init-19.4-7.el7.centos.6.x86_64.rpm | 933 kB 00:00:00
(8/26): net-tools-2.0-0.25.20131004git.el7.x86_64.rpm | 306 kB 00:00:00
(9/26): policycoreutils-python-2.5-34.el7.x86_64.rpm | 457 kB 00:00:00
(10/26): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00
(11/26): pyserial-2.6-6.el7.noarch.rpm | 124 kB 00:00:00
(12/26): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00:00
(13/26): python-babel-0.9.6-8.el7.noarch.rpm | 1.4 MB 00:00:00
(14/26): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm | 13 kB 00:00:00
(15/26): python-ipaddress-1.0.16-2.el7.noarch.rpm | 34 kB 00:00:00
(16/26): python-chardet-2.2.1-3.el7.noarch.rpm | 227 kB 00:00:00
(17/26): python-jinja2-2.7.2-4.el7.noarch.rpm | 519 kB 00:00:00
(18/26): python-jsonpatch-1.2-4.el7.noarch.rpm | 15 kB 00:00:00
(19/26): python-jsonpointer-1.9-2.el7.noarch.rpm | 13 kB 00:00:00
(20/26): python-markupsafe-0.11-10.el7.x86_64.rpm | 25 kB 00:00:00
(21/26): python-prettytable-0.7.2-3.el7.noarch.rpm | 37 kB 00:00:00
(22/26): python-requests-2.6.0-10.el7.noarch.rpm | 95 kB 00:00:00
(23/26): python-six-1.9.0-2.el7.noarch.rpm | 29 kB 00:00:00
(24/26): python-urllib3-1.10.2-7.el7.noarch.rpm | 103 kB 00:00:00
(25/26): python-setuptools-0.9.8-7.el7.noarch.rpm | 397 kB 00:00:00
(26/26): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.8 MB/s | 6.0 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-ipaddress-1.0.16-2.el7.noarch 1/26
[...] 25/26
Installing : cloud-init-19.4-7.el7.centos.6.x86_64 26/26
Verifying : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 1/26
Verifying : python-setuptools-0.9.8-7.el7.noarch 2/26
[...] 25/26
Verifying : libcgroup-0.41-21.el7.x86_64 26/26

Installed:
cloud-init.x86_64 0:19.4-7.el7.centos.6

Dependency Installed:
PyYAML.x86_64 0:3.10-11.el7 audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7 libcgroup.x86_64 0:0.41-21.el7 [...]
python-requests.noarch 0:2.6.0-10.el7 python-setuptools.noarch 0:0.9.8-7.el7 python-six.noarch 0:1.9.0-2.el7 python-urllib3.noarch 0:1.10.2-7.el7 setools-libs.x86_64 0:3.3.8-4.el7

Complete!

Um diesen Eintrag vollständig sehen zu können, müssen Sie ein Kunde der Securebit AG sein. Dazu können Sie ein belibites Produkt aus unserem Sortiment bestellen.

Sollten Sie bereits Kunde sein, können Sie sich hier anmelden.