{"id":355,"date":"2022-11-13T12:02:24","date_gmt":"2022-11-13T11:02:24","guid":{"rendered":"https:\/\/www.rothamel.com\/?p=355"},"modified":"2023-01-11T16:00:52","modified_gmt":"2023-01-11T15:00:52","slug":"migration-einer-linux-vms-von-vmware-workstation-zu-hyper-v","status":"publish","type":"post","link":"https:\/\/www.rothamel.com\/index.php\/2022\/11\/13\/migration-einer-linux-vms-von-vmware-workstation-zu-hyper-v\/","title":{"rendered":"Migrating a Linux VM from VMWare Workstation to Hyper-V"},"content":{"rendered":"\n<p>The following is a quick guide to migrating an OpenSuse Linux VMs on VMWare Workstation to Hyper-V.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preparations<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create snapshot (as a backup in case something goes wrong)<\/li>\n\n\n\n<li>Remove VMWare Tools<\/li>\n\n\n\n<li>add dracut Config:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/dracut.conf.d\/00-custom.conf <\/code><\/pre>\n\n\n\n<p>and add the following line. Do not forget the spaces before and after the modules!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_drivers+=\" hv_vmbus hv_storvsc hv_netvsc hv_utils hv_balloon hyperv-keyboard hyperv_fb hid-hyperv \"<\/code><\/pre>\n\n\n\n<p>recreate initrd<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>mkinitrd<\/code><\/code><\/pre>\n\n\n\n<p>test loading of hyper-v modules<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lsinitrd |grep ko|grep hv<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Export<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Export VM to OVF file<\/li>\n\n\n\n<li>Download, install and run starwind V2V Converter<\/li>\n\n\n\n<li>Source: local file<\/li>\n\n\n\n<li>Select VMDK file<\/li>\n\n\n\n<li>Set destination (in this case Hyper-V server<\/li>\n\n\n\n<li>Enter host name, if necessary user name, password<\/li>\n\n\n\n<li>Create new VM\n<ul class=\"wp-block-list\">\n<li>Enter name<\/li>\n\n\n\n<li>Select path where VM should be stored in a subfolder (VM name)<\/li>\n\n\n\n<li>Set CPU, RAM<\/li>\n\n\n\n<li>Select G1 (if source is not a UEFI system)<\/li>\n\n\n\n<li>Select network connection<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Select VHDX growable image<\/li>\n\n\n\n<li>Confirm destination and start conversion.<\/li>\n<\/ol>\n\n\n\n<p>If the original VM has several virtual HDs, the process must be repeated for each additional HD, but then the VM already created on the Hyper-V host must be selected and a new VM must not be created in each case.<\/p>\n\n\n\n<p>If an error message about the non-existent restore image appears during booting, this must be removed in the boot loader and, if necessary, created again later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following is a quick guide to migrating an OpenSuse Linux VMs on VMWare Workstation to Hyper-V. Preparations and add the following line. Do not forget the spaces before and after the modules! recreate initrd test loading of hyper-v modules Export If the original VM has several virtual HDs, the process must be repeated for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[27,16,28,26],"class_list":["post-355","post","type-post","status-publish","format-standard","hentry","category-linux","tag-hyper-v","tag-linux","tag-vm","tag-vmware"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":8,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/posts\/355\/revisions\/383"}],"wp:attachment":[{"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rothamel.com\/index.php\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}