{"id":1675,"date":"2021-11-18T15:34:40","date_gmt":"2021-11-18T15:34:40","guid":{"rendered":"https:\/\/ionoslabs.com\/?p=1675"},"modified":"2024-04-18T19:07:17","modified_gmt":"2024-04-18T19:07:17","slug":"migrate-centos-7-from-vmware-to-ionos","status":"publish","type":"post","link":"https:\/\/ionoslabs.com\/index.php\/migrate-centos-7-from-vmware-to-ionos\/","title":{"rendered":"Migrate Centos 7 from VMWare to IONOS"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1289.6px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_3_4 3_4 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:75%;--awb-margin-top-large:0px;--awb-spacing-right-large:2.56%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:2.56%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\" style=\"--awb-text-transform:none;\"><p>The steps below will go through restoring a Centos 7 system with software RAID 1 VMWare instance to the IONOS environment.<\/p>\n<p><span style=\"font-weight: 400;\">Test from scratch:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create server image on IONOS with just 2 disks<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Add Cdrom<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Boot from Acronis rescue image<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose Rescue Media<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to Tools Menu and choose \u201cVolume Representation\u201d change to linux-like representation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose \u201cManage this machine locally\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose \u201crecover\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose \u201cSelect Data\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click \u201cBrowse\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Select Cloud storage on left and then choose \u201cLogin\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Login with contract-backup unit name and password<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click OK<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose backup file then click \u201cHide Archives and Backups\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click check box at top of each section to select all disks and files<\/span><\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">Click Apply RAID\/LVM configuration<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Leave defaults and click \u201cOK\u201d to begin restore<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">When complete click close<\/span><\/li>\n<li aria-level=\"1\">Upload a Centos 7 install ISO to your DCD environment, follow instructions here https:\/\/docs.ionos.com\/dcd\/administration\/images-and-snapshots<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In DCD select CDROM drive and set image to Centos live Iso<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Resolve errors that come up by setting HD volume metadata to linux<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Right click on server and go to console<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">At Centos Boot screen choose \u201ctroubleshooting&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In terminal\/console run dracut -f<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Then choose \u201cRescue a Centos System\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose 1 continue<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Press enter to get shell<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Chroot \/mnt\/sysimage<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Run command blkid and screen cap for UUID reference (or can take UUID from grub2.cfg)<\/span><\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">Run dracut &#8211;mdadmconf &#8211;fstab &#8211;add=&#8221;mdraid&#8221; &#8211;add-drivers=&#8221;raid1&#8243; -f \/boot\/initramfs-3.10.0-1160.42.2.el7.x86_64.img 3.10.0-1160.42.2.el7.x86_64 your kernel.img and version will probably be different, enter your own versions for initramfs-your kernel and your kernel number again<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Vi \/etc\/grub2.cfg<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Change first set root with mduuid to new UUID no dashes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Change kernel path section from dev\/md2 with ROOT=UUID=new UUID with dashes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Vi \/boot\/grub\/menu.1st and change UUID as changed before in \/etc\/grub2.cfg<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Boot from disk by selecting boot from local disk in centos DVD boot menu, or detach\/delete CDROM drive from your instance and set first disk as boot in IONOS DCD.<\/span><\/li>\n<\/ol>\n<\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_4 1_4 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:25%;--awb-margin-top-large:0px;--awb-spacing-right-large:7.68%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:7.68%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-title title fusion-title-1 fusion-title-text fusion-title-size-one\"><div class=\"title-sep-container title-sep-container-left fusion-no-large-visibility fusion-no-medium-visibility fusion-no-small-visibility\"><div class=\"title-sep sep- sep-solid\" style=\"border-color:#eaeaea;\"><\/div><\/div><span class=\"awb-title-spacer fusion-no-large-visibility fusion-no-medium-visibility fusion-no-small-visibility\"><\/span><h1 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:24;line-height:1.2;\">Other Resources<\/h1><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep- sep-solid\" style=\"border-color:#eaeaea;\"><\/div><\/div><\/div><div class=\"fusion-text fusion-text-2\" style=\"--awb-text-transform:none;\"><p><span style=\"font-weight: 400;\">Acronis install instructions <\/span><a href=\"https:\/\/www.layerstack.com\/resources\/tutorials\/How-to-install-Acronis-Backup-Agent-on-Linux-Cloud-Servers\"><span style=\"font-weight: 400;\">https:\/\/www.layerstack.com\/resources\/tutorials\/How-to-install-Acronis-Backup-Agent-on-Linux-Cloud-Servers<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Acronis recovery instructions:<\/span><\/p>\n<p><a href=\"https:\/\/kb.acronis.com\/content\/55912\"><span style=\"font-weight: 400;\">https:\/\/kb.acronis.com\/content\/55912<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Acronis convert from vmware to kvm<\/span><\/p>\n<p><a href=\"https:\/\/kb.acronis.com\/content\/20546\"><span style=\"font-weight: 400;\">https:\/\/kb.acronis.com\/content\/20546<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Acronis Universal Restore<\/span><\/p>\n<p><a href=\"https:\/\/dl.acronis.com\/u\/pdf\/AcronisUniversalRestore_userguide_en-US.pdf\"><span style=\"font-weight: 400;\">https:\/\/dl.acronis.com\/u\/pdf\/AcronisUniversalRestore_userguide_en-US.pdf<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Centos dracut discussion<\/span><\/p>\n<p><a href=\"https:\/\/forums.centos.org\/viewtopic.php?t=63988\"><span style=\"font-weight: 400;\">https:\/\/forums.centos.org\/viewtopic.php?t=63988<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Acronis true image LVM restore<\/span><\/p>\n<p><a href=\"https:\/\/kb.acronis.com\/content\/1680\"><span style=\"font-weight: 400;\">https:\/\/kb.acronis.com\/content\/1680<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Acronis LVM restore<\/span><\/p>\n<p><a href=\"https:\/\/kb.acronis.com\/content\/8052\"><span style=\"font-weight: 400;\">https:\/\/kb.acronis.com\/content\/8052<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Remove UUID function in grub <\/span><a href=\"https:\/\/serverfault.com\/questions\/875926\/how-to-change-grub2-in-centos-rhel7-from-uuid-to-old-style-device\"><span style=\"font-weight: 400;\">https:\/\/serverfault.com\/questions\/875926\/how-to-change-grub2-in-centos-rhel7-from-uuid-to-old-style-device<\/span><\/a><\/p>\n<\/div><div class=\"fusion-title title fusion-title-2 fusion-title-text fusion-title-size-one\"><div class=\"title-sep-container title-sep-container-left fusion-no-large-visibility fusion-no-medium-visibility fusion-no-small-visibility\"><div class=\"title-sep sep- sep-solid\" style=\"border-color:#eaeaea;\"><\/div><\/div><span class=\"awb-title-spacer fusion-no-large-visibility fusion-no-medium-visibility fusion-no-small-visibility\"><\/span><h1 class=\"fusion-title-heading title-heading-left fusion-responsive-typography-calculated\" style=\"margin:0;--fontSize:24;line-height:1.2;\">Download<\/h1><span class=\"awb-title-spacer\"><\/span><div class=\"title-sep-container title-sep-container-right\"><div class=\"title-sep sep- sep-solid\" style=\"border-color:#eaeaea;\"><\/div><\/div><\/div><style type=\"text\/css\" scopped=\"scopped\">.fusion-syntax-highlighter-1 > .CodeMirror, .fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters {background-color:var(--awb-color1);}.fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-gutters { background-color: var(--awb-color2); }.fusion-syntax-highlighter-1 > .CodeMirror .CodeMirror-linenumber { color: var(--awb-color8); }<\/style><div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-1 fusion-syntax-highlighter-theme-light\" style=\"opacity:0;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:14px;border-width:1px;border-style:solid;border-color:#eaeaea;\"><div class=\"syntax-highlighter-copy-code\"><span class=\"syntax-highlighter-copy-code-title\" data-id=\"fusion_syntax_highlighter_1\" style=\"font-size:14px;\">Copy to Clipboard<\/span><\/div><label for=\"fusion_syntax_highlighter_1\" class=\"screen-reader-text\">Syntax Highlighter<\/label><textarea class=\"fusion-syntax-highlighter-textarea\" id=\"fusion_syntax_highlighter_1\" data-readOnly=\"nocursor\" data-lineNumbers=\"1\" data-lineWrapping=\"\" data-theme=\"default\" data-mode=\"text\/x-sh\">git clone https:\/\/github.com\/ionos-seth\/wp-install<\/textarea><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1365,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[698,382,696,391],"tags":[],"class_list":["post-1675","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup","category-how-to","category-linux","category-resources"],"_links":{"self":[{"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/posts\/1675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/comments?post=1675"}],"version-history":[{"count":1,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/posts\/1675\/revisions"}],"predecessor-version":[{"id":1679,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/posts\/1675\/revisions\/1679"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/media\/1365"}],"wp:attachment":[{"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/media?parent=1675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/categories?post=1675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ionoslabs.com\/index.php\/wp-json\/wp\/v2\/tags?post=1675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}