{"id":317,"date":"2022-01-31T08:59:51","date_gmt":"2022-01-31T08:59:51","guid":{"rendered":"https:\/\/virtualall.sk.website.tuke.sk\/?p=317"},"modified":"2026-09-11T14:45:52","modified_gmt":"2026-09-11T14:45:52","slug":"instalacia-sablonz-centos-stream-9-pre-vra-7-6","status":"publish","type":"post","link":"https:\/\/virtualall.sk\/en\/2022\/01\/instalacia-sablonz-centos-stream-9-pre-vra-7-6\/","title":{"rendered":"CentOS Stream 9 Template for VRA"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Vytvorenie \u0161abl\u00f3ny opera\u010dn\u00e9ho syst\u00e9mu CENTOS stream pre syst\u00e9m vmware automation mus\u00ed sp\u013a\u0148a\u0165 ur\u010dit\u00e9 po\u017eiadavky \u010di u\u017e zabezpe\u010denia pr\u00edpadne implementovanie bezpe\u010dnostn\u00fdch polit\u00edk danej organiz\u00e1cie alebo \u0161pecifick\u00fdch nastaven\u00ed. Medzi hlavn\u00e9 nastavenia, ktor\u00e9 je potrebn\u00e9 urobi\u0165 je zamedzenia vykon\u00e1vania opera\u010dn\u00e9ho syst\u00e9mu periodick\u00fdch oper\u00e1ci\u00ed, ktor\u00e9 vy\u0165a\u017euj\u00fa syst\u00e9mov\u00e9 zdroje. Pri klonovan\u00fdch VM by doch\u00e1dzalo napr\u00edklad k vytvoreniu rovnak\u00fdch serverov s rovnak\u00fdmi machine-ID \u010do by sp\u00f4sobovalo chybovos\u0165 pri pride\u013eovan\u00ed IP adries alebo kol\u00edzi\u00e1m v sieti.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nastavenie VM vo VMware<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"803\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-1.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA\" class=\"wp-image-321\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-1.png 858w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-1-300x281.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-1-768x719.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><figcaption>Vypnutie Secure Boot<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"808\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-2.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (2)\" class=\"wp-image-322\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-2.png 855w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-2-300x284.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-2-768x726.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"821\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-3.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (3)\" class=\"wp-image-324\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-3.png 855w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-3-300x288.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-3-768x737.png 768w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><figcaption>Vypnutie SWAP File<\/figcaption><\/figure><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>sched.swap.vmxSwapEnabled   false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>In\u0161tal\u00e1cia opera\u010dn\u00e9ho syst\u00e9mu:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1023\" height=\"769\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-install-1.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (4)\" class=\"wp-image-328\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-1.png 1023w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-1-300x226.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-1-768x577.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Vyber verzie opera\u010dn\u00e9ho syst\u00e9mu pre verziu desktop je potrebne vybra\u0165: &#8220;Workstation&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"766\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-install-2-1024x766.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (5)\" class=\"wp-image-329\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-2-1024x766.png 1024w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-2-300x224.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-2-768x574.png 768w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-2.png 1027w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nastavenie \u010dasovej z\u00f3ny a NTP serverov<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"763\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-install-3.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (6)\" class=\"wp-image-330\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-3.png 1022w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-3-300x224.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-3-768x573.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nastavenie Root hesla a povolenie prihl\u00e1senia cez SSH (root \u00fa\u010det je potrebn\u00fd pre verziu server)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"766\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-install-4-1024x766.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (7)\" class=\"wp-image-331\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-4-1024x766.png 1024w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-4-300x224.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-4-768x574.png 768w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-4.png 1026w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Vytvorenie \u00fa\u010dtu pod ktor\u00fdm sa bude prihlasova\u0165 pou\u017e\u00edvate\u013e:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"767\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-install-5.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (8)\" class=\"wp-image-332\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-5.png 1021w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-5-300x225.png 300w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-install-5-768x577.png 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Aktualiz\u00e1cia<strong> syst\u00e9mu:<\/strong><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>yum update\nyum upgrade<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Nastavenie SSH<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Povolenie SSH root prihl\u00e1senia a zak\u00e1zanie \u00fa\u010dtu vmware pre verziu server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/ssh\/sshd_config.d\/01-permitrootlogin.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>PermitRootLogin yes\nDenyUsers vmware<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Regener\u00e1cia SSH k\u013e\u00fa\u010dov po vytvoren\u00ed \u0161abl\u00f3ny<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/rc.local<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>SSHKEYGEN=\/usr\/bin\/ssh-keygen\n\nif &#91; ! -f \/etc\/ssh\/ssh_host_rsa_key ]; then\n    $SSHKEYGEN -q -t rsa  -f \/etc\/ssh\/ssh_host_rsa_key -N \"\" \\\n        -C \"\" &lt; \/dev\/null &gt; \/dev\/null 2&gt; \/dev\/null\n    echo \"Created \/etc\/ssh_host_rsa_key\"\nfi\n\nif &#91; ! -f \/etc\/ssh\/ssh_host_dsa_key ]; then\n    $SSHKEYGEN -q -t dsa  -f \/etc\/ssh\/ssh_host_dsa_key -N \"\" \\\n        -C \"\" &lt; \/dev\/null &gt; \/dev\/null 2&gt; \/dev\/null\n    echo \"Created \/etc\/ssh_host_dsa_key\"\nfi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Zmazanie aktu\u00e1lnych k\u013e\u00fa\u010dov:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -f \/etc\/ssh\/ssh_host_*<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. In\u0161tal\u00e1cia dodato\u010dn\u00fdch kni\u017en\u00edc, zak\u00e1zanie firewallu<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install -y perl\nsystemctl disable firewalld\nsystemctl disable cloud-init<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Zmazanie do\u010dasn\u00fdch s\u00faborov a vypnutie SWAP part\u00edcie<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum clean all\necho \"\" | sudo tee \/etc\/machine-id &gt;\/dev\/null\nrm -rf \/tmp\/*\nrm -rf \/var\/tmp\/*\nif &#91; -f \/var\/log\/audit\/audit.log ]; then\n    cat \/dev\/null &gt; \/var\/log\/audit\/audit.log\nfi\nif &#91; -f \/var\/log\/wtmp ]; then\n    cat \/dev\/null &gt; \/var\/log\/wtmp\nfi\nif &#91; -f \/var\/log\/lastlog ]; then\n    cat \/dev\/null &gt; \/var\/log\/lastlog\nfi\nif &#91; -f \/var\/log\/cron ]; then\n    cat \/dev\/null &gt; \/var\/log\/cron\nfi\nif &#91; -f \/var\/log\/messages ]; then\n    cat \/dev\/null &gt; \/var\/log\/messages\nfi\nsudo swapoff --all\nsudo sed -ri '\/\\sswap\\s\/s\/^#?\/#\/' \/etc\/fstab\nhistory -c\nhistory -w\nsudo shutdown -h now<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">5. Konvertovanie vytvoren\u00e9ho syst\u00e9mu ako \u0161abl\u00f3nu:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"426\" height=\"158\" src=\"https:\/\/virtualall.sk.website.tuke.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-4.png\" alt=\"CentOS Stream 9 \u0161abl\u00f3na pre VRA (9)\" class=\"wp-image-325\" srcset=\"https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-4.png 426w, https:\/\/virtualall.sk\/wp-content\/uploads\/2022\/01\/centos-template-settings-4-300x111.png 300w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">S\u00favisiace n\u00e1vody<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"https:\/\/virtualall.sk\/2026\/05\/vra-ubuntu-2604-desktop-template\/\">VRA Ubuntu 26.04 Desktop Template \u2014 Kompletn\u00e1 \u0161abl\u00f3na pre vRealize Automation<\/a><\/li>\n\n\n<li><a href=\"https:\/\/virtualall.sk\/2026\/05\/vra-ubuntu-2604-server-template\/\">VRA Ubuntu 26.04 Server Template \u2014 Kompletn\u00e1 \u0161abl\u00f3na pre vRealize Automation<\/a><\/li>\n\n\n<li><a href=\"https:\/\/virtualall.sk\/2024\/07\/vra-ubuntu-template\/\">VRA Ubuntu Template<\/a><\/li>\n\n\n<li><a href=\"https:\/\/virtualall.sk\/2024\/05\/vra-windows-vytvorenie-sablony\/\">VRA Windows vytvorenie \u0161abl\u00f3ny<\/a><\/li>\n\n\n<li><a href=\"https:\/\/virtualall.sk\/2022\/03\/vrealize-automation-7-windows-11-sablona\/\">VRA Windows 11 \u0161abl\u00f3na<\/a><\/li>\n\n\n<li><a href=\"https:\/\/virtualall.sk\/2021\/11\/instalacia-ubuntu-sablony-pre-vrealize-automation\/\">Ubuntu \u0161abl\u00f3na pre VRA<\/a><\/li>\n\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Vytvorenie \u0161abl\u00f3ny opera\u010dn\u00e9ho syst\u00e9mu CENTOS stream pre syst\u00e9m vmware automation mus\u00ed sp\u013a\u0148a\u0165 ur\u010dit\u00e9 po\u017eiadavky \u010di u\u017e zabezpe\u010denia pr\u00edpadne implementovanie bezpe\u010dnostn\u00fdch polit\u00edk danej organiz\u00e1cie alebo \u0161pecifick\u00fdch nastaven\u00ed. Medzi hlavn\u00e9 nastavenia, ktor\u00e9 je potrebn\u00e9 urobi\u0165 je zamedzenia vykon\u00e1vania opera\u010dn\u00e9ho syst\u00e9mu periodick\u00fdch oper\u00e1ci\u00ed, ktor\u00e9 vy\u0165a\u017euj\u00fa syst\u00e9mov\u00e9 zdroje. Pri klonovan\u00fdch VM by doch\u00e1dzalo napr\u00edklad k vytvoreniu rovnak\u00fdch serverov s&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/virtualall.sk\/en\/2022\/01\/instalacia-sablonz-centos-stream-9-pre-vra-7-6\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;CentOS Stream 9 Template for VRA&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[69,70,71,72],"class_list":["post-317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-automation","tag-centos","tag-centos-9","tag-centos-stream","tag-centos-stream-9"],"_links":{"self":[{"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/posts\/317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":18,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":2465,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/posts\/317\/revisions\/2465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/media\/346"}],"wp:attachment":[{"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualall.sk\/en\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}