{"id":682,"date":"2022-07-01T07:49:53","date_gmt":"2022-07-01T05:49:53","guid":{"rendered":"https:\/\/eonea.pl\/?p=682"},"modified":"2024-04-05T09:49:57","modified_gmt":"2024-04-05T07:49:57","slug":"xen-orchestra-automatyczne-testy-backapow","status":"publish","type":"post","link":"https:\/\/eonea.pl\/en\/xen-orchestra-automatyczne-testy-backapow\/","title":{"rendered":"Xen-Orchestra - automatic backap tests"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/hl7wXvLWe-Y?si=knsqjuyTZXTWXbMe\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<div class=\"et_pb_module et_pb_text et_pb_text_0 et_pb_text_align_left et_pb_bg_layout_light\">\n<div class=\"et_pb_text_inner\">\n<p class=\"western\">Xen-Orchestra - ways and types of backups of virtual machines running on xcp-ng servers with special emphasis on automatic backup testing.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">Because the fact that an untested security copy will work may be just a false assumption.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">Admittedly, I've already done an episode on how to manage XCP-NG servers through Xen-Orchestra <a href=\"https:\/\/eonea.pl\/en\/xen-orchestra-xoa-zarzadzaj-backup-snapshot-migracje\/\">https:\/\/eonea.pl\/xen-orchestra-xoa-zarzadzaj-backup-snapshot-migracje\/<\/a> I'm talking about it about backup types but in late may 2022 version 5.71 came out <a title=\"https:\/\/xen-orchestra.com\/blog\/xen-orchestra-5-71\/\" href=\"https:\/\/xen-orchestra.com\/blog\/xen-orchestra-5-71\/\">https:\/\/xen-orchestra.com\/blog\/xen-orchestra-5-71\/<\/a> Which contains some interesting facts. From my point of view, a useful thing is the automatic disconnection of vUSB to take a snapshot and then backup.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">This comes in handy if it is a VM that we are forced to connect some USB, generally some license key or something like that. Then we redirect such USB connected to the server to a specific VM. Then there is a problem with backup because it is impossible to snapshot such a VM. Since all forms of backup in Xen-Orchestra use snapshots this backup of a VM with a USB connected simply did not work. Until now, you had to use scripts to turn off the VM, disconnect the vUSB, make a backup, connect the vUSB, turn on the VM ... A lot of combining. In this version, this problem has been solved.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">The most interesting, however, is the function of automatic testing of created backups, which after creating a backup plays it on the indicated server waits until it starts and if everything is it closes deletes and marks the backup as successful. GENIAL!!!<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">Of the important details, firstly it starts the VM isolated from the network so we don't have to worry that the VM under test will introduce some interference in the network. Secondly, as a test whether the VM is running, it treats the establishment of communication with xen-tools. This means that such a test will only be effective with a VM with vm-tools installed. Although in principle this should always be done because they significantly improve performance, it is worth knowing that this is the determinant of proper operation during the test.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">Please note that it will not check anything else. It won't check whether n.e.g. the web server or SQL or anything else is working.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">It is also worth mentioning that the server we will use for testing does not have to be the same server as the one on which the original of our VM is. More pleasantly, it did not want to work for me. Probably due to the fact that the VM being recreated for testing would have the same UUID, which would cause a conflict.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\">And now click by click I invite you to watch .<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; Xen-Orchestra \u2013 sposoby i rodzaje backup wirtualnych maszyn dzia\u0142aj\u0105cych na serwerach xcp-ng ze szczeg\u00f3lnym uwzgl\u0119dnieniem automatycznego testowania kopii bezpiecze\u0144stwa. &nbsp; Bo to, \u017ce nie przetestowana kopia bezpiecze\u0144stwa zadzia\u0142a mo\u017ce okaza\u0107 si\u0119 tylko z\u0142udnym za\u0142o\u017ceniem. &nbsp; Co prawda zrobi\u0142em ju\u017c odcinek o tym jak zarz\u0105dza\u0107 serwerami XCP-NG przez Xen-Orchestra https:\/\/eonea.pl\/xen-orchestra-xoa-zarzadzaj-backup-snapshot-migracje\/ m\u00f3wi\u0119 o nim o [&hellip;]<\/p>","protected":false},"author":1,"featured_media":685,"comment_status":"closed","ping_status":"closed","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":[12,10],"tags":[151,152,82,83,153,147,148,149,134,154,155,136,140,156,141],"class_list":["post-682","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vlog","category-wirtualizacja","tag-automatyczny-test-backup","tag-backup-autotest","tag-open-source","tag-open-source-software","tag-test-backup-restore","tag-xcp-ng-backup","tag-xcp-ng-backup-software","tag-xcp-ng-backup-vm","tag-xcp-ng-xen-orchestra","tag-xcp-ng-xenserver","tag-xen-orchestra-backup","tag-xen-orchestra-community-edition","tag-xen-orchestra-tutorial","tag-xen-server","tag-xen-orchestra"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/682","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/comments?post=682"}],"version-history":[{"count":4,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/682\/revisions"}],"predecessor-version":[{"id":1298,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/posts\/682\/revisions\/1298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/media\/685"}],"wp:attachment":[{"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/media?parent=682"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/categories?post=682"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eonea.pl\/en\/wp-json\/wp\/v2\/tags?post=682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}