{"id":1451,"date":"2024-08-05T11:40:21","date_gmt":"2024-08-05T09:40:21","guid":{"rendered":"https:\/\/eonea.pl\/?p=1451"},"modified":"2025-03-04T16:36:46","modified_gmt":"2025-03-04T15:36:46","slug":"instalacja-xcp-ng-i-xen-orchestra-w-2024","status":"publish","type":"post","link":"https:\/\/eonea.pl\/en\/instalacja-xcp-ng-i-xen-orchestra-w-2024\/","title":{"rendered":"Installation of XCP-NG and Xen-Orchestra in 2024"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"1451\" class=\"elementor elementor-1451\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-85ca122 e-flex e-con-boxed e-con e-parent\" data-id=\"85ca122\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3d432b2 e-flex e-con-boxed e-con e-parent\" data-id=\"3d432b2\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-a267c51 e-flex e-con-boxed e-con e-child\" data-id=\"a267c51\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-16df225 elementor-widget elementor-widget-video\" data-id=\"16df225\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/MNt0UL7i068&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c72a854 elementor-widget elementor-widget-text-editor\" data-id=\"c72a854\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Introduction<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-74ccb8b elementor-widget elementor-widget-text-editor\" data-id=\"74ccb8b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Before we get down to the fun, I'll first say a few words of introduction, then I'll tell you what we'll need and we'll smoothly move on to how to install our XCP-NG server step by step. We will install Xen-orchestra on it, and finally we will start installing some virtual machine. We will only start, because the installation itself, whether Linux or Windows, is beyond the scope of this material. Additionally, I am tentatively assuming that as you get down to virtualization, you know how to install Windows. In anticipation of possible comments, I am calmly able to imagine a great many individual cases in which the quoted recommendations will turn out to be, to say the least, wrong. In this material I wanted to focus on a simple test solution with which you can start your adventure with virtualization. Both XCP-NG and XEN-Orchestra are open source solutions and their use is license-free and free, for both testing and commercial purposes. You can simply download and use. However, if you need the reassurance that you will get support for even the most unexpected problems, I would also encourage you to buy paid support directly from the software developers<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-01b1da9 elementor-widget elementor-widget-text-editor\" data-id=\"01b1da9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>XCP-NG requirements - CPU<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7f8d9c1 elementor-widget elementor-widget-text-editor\" data-id=\"7f8d9c1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Starting with the requirements for the XCP-NG virtualizer, the technical minimum for a processor is 1.5GHz, 64-bit of the x86 series. However, multi-core 2GHz or faster is recommended.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-438fb9d elementor-widget elementor-widget-text-editor\" data-id=\"438fb9d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In fact, for test-laboratory solutions, any modern server-class processor will be definitely enough. Here one more thing that can save you some time, make sure that these functions are enabled in the BIOS.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ee36ea6 elementor-widget elementor-widget-text-editor\" data-id=\"ee36ea6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>As for the practical selection of a processor for production solutions, that will already depend on what we want to host, well, and more prosaically, on budget. But that's way beyond this material, where we want to focus on running a test solution.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1163297 elementor-widget elementor-widget-text-editor\" data-id=\"1163297\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The exception to the low CPU requirements will be the need to run Windows 11 as a guest, but about that later.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6d97ff2 elementor-widget elementor-widget-text-editor\" data-id=\"6d97ff2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>XCP-NG requirements - RAM<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef0b772 elementor-widget elementor-widget-text-editor\" data-id=\"ef0b772\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>As for the RAM requirements for XCP-NG, it says there is a technical minimum of 2 GB RAM and 4 GB RAM is recommended.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f0b366e elementor-widget elementor-widget-text-editor\" data-id=\"f0b366e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In practice, these are requirements mainly for the virtualizer itself. In short, for starters you need 4 GB of RAM plus as much RAM as you want to allocate to your virtual machines. \u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-54e74a9 elementor-widget elementor-widget-text-editor\" data-id=\"54e74a9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>XCP-NG requirements - system drives<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0473bf4 elementor-widget elementor-widget-text-editor\" data-id=\"0473bf4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">For XCP-NG, the required disk capacity is a minimum of 46 GB and the recommendations say 70 GB.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-067a18a elementor-widget elementor-widget-text-editor\" data-id=\"067a18a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">In practice, some 128GB SSD will suffice completely for the lab, but for production work it should also be ok, although of course in this case I recommend double for redundancy.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f9bfdbf elementor-widget elementor-widget-text-editor\" data-id=\"f9bfdbf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">I also warn you in advance of questions, playing with and SD cards and USB flash drives is definitely not advisable for performance reasons.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d45d5e5 elementor-widget elementor-widget-text-editor\" data-id=\"d45d5e5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Keep in mind, however, that this is space for the XCP-NG system itself. For storing virtual machine disks, we will need definitely more space and probably completely separate disks or even a server. \u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1daa3e6 elementor-widget elementor-widget-text-editor\" data-id=\"1daa3e6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>XCP-NG requirements - disks for VMs<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c9857e0 elementor-widget elementor-widget-text-editor\" data-id=\"c9857e0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>There are several ways to store virtual machine disks in XCP-NG. The simplest, but rather mainly for testing, is to put them on the same disk as the system. In that case, we need some sort of SSD of 70 GB for the system, plus the amount of space you want to allocate to the disks for your virtual machines. Here a very important note, if you will want to use snapshots, and in practice even if you do backup and use snapshots, you need at least twice as much space as the disks of your virtual machines will have.&nbsp;&nbsp; &nbsp;<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4144c32 elementor-widget elementor-widget-text-editor\" data-id=\"4144c32\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In more practical applications, however, I would recommend separating the system disks and the disks for storing virtual machines. XCP-NG itself also loads the disks, and we don't want to create a situation where our virtual machines loading the disks will cause problems for the entire virtualizer. In general, a separate set of disks is used, or with slightly higher requirements, external datastores. At the test set level in this material, I deliberately skirt the issues of disk performance, which in the real world is often a real pain.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9689e43 elementor-widget elementor-widget-text-editor\" data-id=\"9689e43\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Also remember that XCP-NG by itself will not take care of or enforce disk redundancy. We ourselves must, layer below it, make sure that both the system disks and the disk resources for virtual machine disks have redundancy. Let it be at least some RAID or ZFS, or redundancy at the disk array level. Anything that will ensure that the first better disk failure will not cause us headaches.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5276b10 elementor-widget elementor-widget-text-editor\" data-id=\"5276b10\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>XCP-NG requirements - network<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ba1d96f elementor-widget elementor-widget-text-editor\" data-id=\"ba1d96f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To connect our XCP-NG we will need some kind of network card. The requirements say 100Mb but let's be realistic, however, already 1Gb is testing should be enough. In practical cases, we will already need a minimum of two network cards due to redundancy.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd74062 elementor-widget elementor-widget-text-editor\" data-id=\"fd74062\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">If you intend to use networked datastores, migrate VMs, or back up larger VMs I would consider 10Gb or more connections. For slightly larger sets, it is recommended that the traffic between XCP-NG on the network drive be done over a dedicated connection or connections to ensure smooth operation.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-375e10e elementor-widget elementor-widget-text-editor\" data-id=\"375e10e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>XCP-NG supported systems<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-475a331 elementor-widget elementor-widget-text-editor\" data-id=\"475a331\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">All right, but once I have this XCP-NG, what will I be able to run on it you ask? <br \/>In fact, quite a lot, although not everything. At the moment, XCP-NG as a virtualizer supports as a guest system, the whole family of Linux systems like RedHAT, CentOS, the whole family of Debian and Ubuntu, SUSE, Apline and many others. In very high probability, if something is Linux, it will work. XCP-NG also supports FreeBSD or OpenBSD so we can safely vitualize such systems as TrueNAS CORE or pfSense.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-25b004a elementor-widget elementor-widget-text-editor\" data-id=\"25b004a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">From the Windows family systems it is we have support for Windows server 2012 until 2022 and from the home systems it is Windows 10. Unfortunately, at the moment there is no support for Windows 11. Yes it's a little weak, especially since it is already beginning to be noisy about the end of support for Windows 10 well and in stores you can already buy only Windows 11. Yes I know that you can do it by manipulating the registry, but about that not now.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3765aaa elementor-widget elementor-widget-text-editor\" data-id=\"3765aaa\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">This is the situation as of July 2024, when the XCP-NG production version is 8.2.1. I mention this for two reasons. First, version 8.2 enters the End Of Live stage in less than a year. Which is inevitably related to the second issue, the long-awaited version 8.3 which should be released soon. This month, version 8.3 Beta2 was released. And this is important because with version 8.3 comes support for Windows 11 solving the TPM encryption module problem by introducing virtual vTPM. You can install and test it, but it is not yet a production version.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4f5bfea elementor-widget elementor-widget-text-editor\" data-id=\"4f5bfea\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\">Unfortunately, the problem of somewhat artificial, and certainly much debated, processor requirements will still be solved by buying servers with new processors for the lab (not very cool) or by manipulating the registry.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-16a60b3 elementor-widget elementor-widget-text-editor\" data-id=\"16a60b3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p class=\"Textbody\"><b>Check out the video for details.<\/b><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>https:\/\/youtu.be\/MNt0UL7i068 Wst\u0119p Zanim zabierzemy si\u0119 do zabawy najpierw powiem kilka s\u0142\u00f3w wst\u0119pu, potem opowiem, co b\u0119dzie nam potrzebne i p\u0142ynnie przejdziemy do tego, jak krok po kroku zainstalowa\u0107 nasz serwer XCP-NG. Zainstalujemy na nim Xen-orchestra, a na koniec rozpoczniemy instalacj\u0119 jakiej\u015b maszyny wirtualnej. Tylko zaczniemy, poniewa\u017c sama instalacja, czy to Linuxa czy Windowsa, jest poza [&hellip;]<\/p>","protected":false},"author":3,"featured_media":1452,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7,8],"tags":[308,307,131,133,306,141,142],"class_list":["post-1451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it-dla-kazdego","category-truenas","tag-serwery-wirtualne","tag-vm","tag-wirtualizacja","tag-xcp-ng","tag-xcp-ng-w-2024","tag-xen-orchestra","tag-xoa"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/1451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":21,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"predecessor-version":[{"id":1639,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/1451\/revisions\/1639"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/media\/1452"}],"wp:attachment":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}