{"id":219,"date":"2008-09-09T09:59:35","date_gmt":"2008-09-09T07:59:35","guid":{"rendered":"http:\/\/blog.it4sport.de\/?p=219"},"modified":"2008-09-09T09:59:35","modified_gmt":"2008-09-09T07:59:35","slug":"vmimages-shrinken","status":"publish","type":"post","link":"https:\/\/gmbd.de\/wordpress\/index.php\/2008\/09\/09\/vmimages-shrinken\/","title":{"rendered":"VMImages shrinken"},"content":{"rendered":"<p>\t\t\t\tEgal ob VMware, Xen oder KVM gelegentlich will ich die Images sichern oder transportieren. Da ist es gut, wenn sie so klein wie nur irgend m\u00f6glich sind. Bei VMware gibt&#8217;s zwar in der  <em>vmware-toolbox<\/em> shrink. Das gibt aber keinen Speicherplatz zur\u00fcck. Deswegen ist es am besten die leeren Bl\u00f6cke zu l\u00f6schen. Dazu einfach die Platte bis zum Anschlag wie folgt mit Nullen f\u00fcllen:<br \/>\n<code><br \/>\ndd if=\/dev\/zero of=\/tmp\/zero.dat bs=1024K count=1024 ; sync ; sleep 1 ; sync ; rm \/tmp\/zero.dat<br \/>\n<\/code><br \/>\nAnschlie\u00dfend ist das Image komprimiert erheblich kleiner.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Egal ob VMware, Xen oder KVM gelegentlich will ich die Images sichern oder transportieren. Da ist es gut, wenn sie so klein wie nur irgend m\u00f6glich sind. Bei VMware gibt&#8217;s zwar in der vmware-toolbox shrink. Das gibt aber keinen Speicherplatz zur\u00fcck. Deswegen ist es am besten die leeren Bl\u00f6cke zu l\u00f6schen. Dazu einfach die Platte\u2026 <span class=\"read-more\"><a href=\"https:\/\/gmbd.de\/wordpress\/index.php\/2008\/09\/09\/vmimages-shrinken\/\">Weiterlesen &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[206,382,399],"_links":{"self":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":0,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"wp:attachment":[{"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gmbd.de\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}