{"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":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"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":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9W9h9-5J","jetpack-related-posts":[{"id":27,"url":"https:\/\/www.rothamel.com\/index.php\/2018\/05\/21\/get-ubuntu-kernel-headers\/","url_meta":{"origin":355,"position":0},"title":"Linux: Get Ubuntu kernel headers","author":"Rolf Rothamel","date":"2018-05-21","format":false,"excerpt":"Just a little how-to: Make sure you have updated version $ sudo apt-get updateSearch for kernel version (optional) $ apt-cache search linux-headers-$(uname -r)Install linux-header package $ sudo apt-get install linux-headers-$(uname -r)","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.rothamel.com\/index.php\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":228,"url":"https:\/\/www.rothamel.com\/index.php\/2020\/07\/17\/container-teil-2-arbeiten-mit-docker-containern\/","url_meta":{"origin":355,"position":1},"title":"Container \u2013 Part 2: Working with Docker-Containers","author":"Rolf Rothamel","date":"2020-07-17","format":false,"excerpt":"After showing the creation of an exemplary Docker container in the first part, this part of the article series now focuses on working with containers.","rel":"","context":"In &quot;Allgemein&quot;","block_context":{"text":"Allgemein","link":"https:\/\/www.rothamel.com\/index.php\/category\/allgemein\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":219,"url":"https:\/\/www.rothamel.com\/index.php\/2020\/07\/15\/docker-teil-1-tomcat-im-docker-container\/","url_meta":{"origin":355,"position":2},"title":"Container &#8211; Part 1: Tomcat im Docker-Container","author":"Rolf Rothamel","date":"2020-07-15","format":false,"excerpt":"Docker represents a pleasant possibility to create clearly defined, lightweight runtime environments (containers) and to distribute them if necessary. In the following, the creation and possible use is shown using the example of a container with Tomcat and OpenSuse.","rel":"","context":"In &quot;Allgemein&quot;","block_context":{"text":"Allgemein","link":"https:\/\/www.rothamel.com\/index.php\/category\/allgemein\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75,"url":"https:\/\/www.rothamel.com\/index.php\/2018\/10\/27\/liferay-development-for-beginners-part-one-setup-your-own-instance\/","url_meta":{"origin":355,"position":3},"title":"Liferay-Development for beginners &#8211; Part One \u2013 Setup your own instance","author":"Rolf Rothamel","date":"2018-10-27","format":false,"excerpt":"This little tutorial is written for users that are familiar with the following points, so they are not explained in detail: Working with linux (or any other OS of your choice), an editor like vi, etc. Install and configure a Mysql instance Creation of schema and assignment of user and\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.rothamel.com\/index.php\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":77,"url":"https:\/\/www.rothamel.com\/index.php\/2018\/10\/27\/liferay-development-for-beginners-part-two-creation-of-a-development-environment\/","url_meta":{"origin":355,"position":4},"title":"Liferay-Development for beginners \u2013 Part two \u2013 Creation of a development environment","author":"Rolf Rothamel","date":"2018-10-27","format":false,"excerpt":"The development for the Liferay portal is quite nice by using a local develop environment with Eclipse, Mysql and Liferay. Therefore you should download the following components: Liferay (http:\/\/sourceforge.net\/projects\/lportal\/files\/Liferay%20Portal\/) Liferay Portal bundled with Tomcat Liferay Portal sources Liferay Portal Documentation Liferay Portal SDK Eclipse Eclipse Liferay IDE (downloadable via Eclipse\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/www.rothamel.com\/index.php\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29,"url":"https:\/\/www.rothamel.com\/index.php\/2018\/05\/21\/how-can-all-new-users-get-equal-page-structures\/","url_meta":{"origin":355,"position":5},"title":"Liferay: How can all new users get equal page structures","author":"Rolf Rothamel","date":"2018-05-21","format":false,"excerpt":"A little how-to for Liferay dev: 1) Define page structures for that area (public or private) you want to have equal. 2) Export them into a lar file ->do not export Groups \/ Roles otherwise you can\u2019t remove groups on your system that existed on your system when the lar\u2026","rel":"","context":"In &quot;Liferay&quot;","block_context":{"text":"Liferay","link":"https:\/\/www.rothamel.com\/index.php\/category\/liferay\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_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}]}}