{"id":137,"date":"2019-05-04T23:03:54","date_gmt":"2019-05-04T21:03:54","guid":{"rendered":"http:\/\/www.underealm.com\/tech\/?p=137"},"modified":"2019-05-04T23:03:54","modified_gmt":"2019-05-04T21:03:54","slug":"import-disk-image-into-xcp-ng-xenserver","status":"publish","type":"post","link":"http:\/\/www.underealm.com\/tech\/2019\/05\/import-disk-image-into-xcp-ng-xenserver\/","title":{"rendered":"Import disk image into XCP-ng\/XenServer"},"content":{"rendered":"<p>Importing a disk image into XCP-ng\/XenServer is rather easy, you just need to find the correct VDI and import it using the appropriate `xe vdi-import`. In my case I wanted to test the current OpenWRT release, so:<\/p>\n\n<pre class=\"\"># xe vdi-list\nuuid ( RO)                : &lt;vdi-uuid&gt;\n          name-label ( RW): OpenWRT\n    name-description ( RW):\n             sr-uuid ( RO): &lt;sr-uuid&gt;\n        virtual-size ( RO): &lt;size&gt;\n            sharable ( RO): false\n           read-only ( RO): false\n\n# xe vdi-import uuid=&lt;vdi-uuid&gt; filename=openwrt-combined-ext4.img<\/pre>\n\n<p>That\u2019s it: OpenWRT is installed on Xen and already bootable. At this point you can even mount the OpenWRT drive and <a href=\"https:\/\/openwrt.org\/docs\/guide-user\/installation\/openwrt_x86\">resize its partition<\/a> to fully use the remainder of the space you allocated.<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Importing a disk image into XCP-ng\/XenServer is rather easy, you just need to find the correct VDI and import it using the appropriate `xe vdi-import`. In my case I wanted to test the current OpenWRT release, so: # xe vdi-list uuid ( RO) : &lt;vdi-uuid&gt; name-label ( RW): OpenWRT name-description ( RW): sr-uuid ( RO): [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[71,69,70,65,59],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-xcp-ng","tag-img","tag-openwrt","tag-vdi","tag-xcp-ng","tag-xenserver"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts\/137"}],"collection":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":2,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":139,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/posts\/137\/revisions\/139"}],"wp:attachment":[{"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.underealm.com\/tech\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}