﻿{"id":160,"date":"2018-09-23T01:04:23","date_gmt":"2018-09-22T22:04:23","guid":{"rendered":"http:\/\/fewit.ru\/?p=160"},"modified":"2018-09-23T01:07:14","modified_gmt":"2018-09-22T22:07:14","slug":"%d0%bc%d0%b8%d0%b3%d1%80%d0%b0%d1%86%d0%b8%d1%8f-vm-%d1%81-esxi-%d0%bd%d0%b0-proxmox-c-lvm","status":"publish","type":"post","link":"https:\/\/fewit.ru\/?p=160","title":{"rendered":"\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f VM \u0441 ESXI \u043d\u0430 Proxmox c LVM"},"content":{"rendered":"<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 Proxmox vmdk:<\/p>\n<pre>scp username@10.10.10.2:\/vmfs\/volumes\/datastore1\/yourVMname\/yourVMname-flat.vmdk yourVMname-flat.vmdk<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c vmdk \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 raw:<\/p>\n<pre>qemu-img convert yourVMname-flat.vmdk -O raw yourVMname.raw<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432 Proxmox \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438 \u043a\u0430\u043a \u0431\u044b\u043b\u0430 \u0438 \u043d\u0430 Esxi.<br \/>\n\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c ID \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0443\u0442\u044c \u0434\u043e lvm \u0434\u0438\u0441\u043a\u0430:<\/p>\n<pre>lvdisplay<\/pre>\n<p>\u041f\u043e\u0442\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0434\u0438\u0441\u043a \u0432 lvm:<\/p>\n<pre>dd if=yourVMname.raw | pv -s 6G | dd of=\/dev\/pve\/vm-117-disk-1<\/pre>\n<p>P.S. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 pv, \u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435. \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0413\u0434\u0435 6G &#8212; \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<p><a href=\"https:\/\/www.sysorchestra.com\/2017\/03\/16\/migrate-vmware-esxi-virtual-machines-to-proxmox-kvm-with-lvm-thin-logical-volumes\/\" rel=\"noopener\" target=\"_blank\">\u0418\u0442\u043e\u0447\u043d\u0438\u043a.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 Proxmox vmdk: scp username@10.10.10.2:\/vmfs\/volumes\/datastore1\/yourVMname\/yourVMname-flat.vmdk yourVMname-flat.vmdk \u0414\u0430\u043b\u0435\u0435 \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c vmdk \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 raw: qemu-img convert yourVMname-flat.vmdk<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,3,51],"tags":[54,53,10,52,37,55],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-proxmox","tag-dd","tag-debian","tag-linux","tag-lvm","tag-proxmox","tag-pv"],"_links":{"self":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160"}],"version-history":[{"count":3,"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/fewit.ru\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fewit.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}