{"id":1437,"date":"2023-08-15T20:06:46","date_gmt":"2023-08-15T12:06:46","guid":{"rendered":"https:\/\/lyvba.com\/?p=1437"},"modified":"2023-08-15T21:04:36","modified_gmt":"2023-08-15T13:04:36","slug":"minidebian12","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2023\/08\/15\/minidebian12\/","title":{"rendered":"Debian 12 Linux \u865a\u62df\u673a\u955c\u50cf\u600e\u4e48\u505a\u5230\u6781\u8f7b\u91cf-VirtualBoxVDI\u6587\u4ef6\u7626\u8eab\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2023\/08\/VBOX.webp\" alt=\"\" \/><\/p>\n<h2>Debian 12 Linux \u865a\u62df\u673a\u955c\u50cf\u600e\u4e48\u505a\u5230\u6781\u8f7b\u91cf-VirtualBoxVDI\u6587\u4ef6\u7626\u8eab\u65b9\u6cd5<\/h2>\n<p>\u8fd9\u662f\u4e00\u4e2a\u521a\u5b89\u88c5 Debian 12 \u7684\u865a\u62df\u673a\u955c\u50cf <code>MiniDebian.vdi<\/code>   1.92 GB (2,063,597,568 \u5b57\u8282)<br \/>\n\u4f7f\u7528 <code>df -h<\/code> \u547d\u4ee4\u663e\u793a\uff0c\u4f7f\u7528 995\u591aMB\uff0c\u6211\u4eec\u6765\u628a\u4ed6\u7f29\u5c0f<\/p>\n<h2>\u9996\u5148\u6211\u4eec\u8981\u66f4\u6362 Linux \u5185\u6838\uff0c\u4f7f\u7528\u4e91\u5185\u6838\uff0c<a href=\"https:\/\/lyvba.com\/index.php\/2023\/08\/12\/linux-image-4-19-0-18-cloud-amd64\/\">\u53c2\u8003\u6587\u7ae0<\/a><\/h2>\n<ul>\n<li>\u66f4\u6362\u5185\u6838\u524d\uff0c\u6211\u4eec\u8981\u770b\u865a\u62df\u673a\u786c\u76d8\u548c\u7f51\u7edc\u8bbe\u7f6e\u90fd\u8981\u6539\u6210 <code>VirtIO<\/code> \u865a\u62df\u5316\u7684\u865a\u62df\u786c\u4ef6<\/li>\n<li>Debian 12 linux\u7cfb\u7edf\u66f4\u6362Cloud\u5185\u6838\u964d\u4f4e\u5185\u5b58\u4f7f\u7528 <a href=\"https:\/\/lyvba.com\/index.php\/2023\/08\/12\/linux-image-4-19-0-18-cloud-amd64\/\">\u53c2\u8003\u6587\u7ae0<\/a><\/li>\n<li>\u5220\u9664\u65e7\u5185\u6838\uff0c\u91ca\u653e\u7a7a\u95f4<\/li>\n<\/ul>\n<h2>\u505a\u4e00\u4e2a  mini.sh \u811a\u672c\uff0c\u6765\u5220\u9664 \u7f13\u5b58 \u548c\u975e\u5907\u8981\u8f6f\u4ef6<\/h2>\n<p>\u5982\u679c\u4f60\u5b89\u88c5\u4e86\u8fd9\u4e9b\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u6dfb\u52a0\u8fdb\u53bb\uff0c\u6ca1\u5b89\u88c5\u653e\u8fd9\u91cc\u4e5f\u884c<\/p>\n<pre><code>apt remove -y wget curl htop vim  &amp;&amp; \\\n  apt autoremove &amp;&amp; \\\n  rm -rf \/var\/lib\/apt\/lists\/*   \/var\/cache\/apt\n\ndd if=\/dev\/zero of=\/free bs=1M\nrm \/free<\/code><\/pre>\n<h2>VirtualBox\u538b\u7f29VDI\u6587\u4ef6 VDI\u6587\u4ef6\u7626\u8eab\u65b9\u6cd5<\/h2>\n<p>\u7626\u8eab\u539f\u7406\uff1a\u64cd\u4f5c\u7cfb\u7edf\u5220\u9664\u6587\u4ef6\uff0c\u4e0d\u4f1a\u586b\u51450\uff0c\u6240\u4ee5\u78c1\u76d8\u955c\u50cf\u4e0d\u80fd\u91ca\u653e\u7a7a\u95f4\uff0c\u6240\u4ee5\u4f7f\u7528dd\u628a\u5269\u4f59\u7a7a\u95f4\u7528zero\u5168\u96f6\u586b\u5145\uff0c\u7136\u540e\u5220\u9664 free\u8fd9\u4e2a\u6587\u4ef6<br \/>\n\u518d\u7528VBoxManage\u5c31\u80fd\u7626\u8eab\u4e86\uff1bVbox \u5efa\u7acb\u955c\u50cf\u53ef\u4ee5\u5206\u914d\u7a7a\u95f4\u5c0f\u70b9\uff0c\u4e5f\u53ef\u4ee5\u628a\u7cfb\u7edf\u76d8\u548c\u6570\u636e\u76d8\u5206\u5f00\u5efa\u7acb<\/p>\n<pre><code>dd if=\/dev\/zero of=\/free bs=1M\nrm \/free\n\ncd &quot;C:\\Program Files\\Oracle\\VirtualBox\\&quot;\nVBoxManage modifyvdi  --compact  debian-disk.vdi<\/code><\/pre>\n<h2>\u865a\u62df\u673a\u6781\u8f7b\u91cf\u6210\u679c  MiniDebian.7z \u53ea\u6709 110 MB (116,089,280 \u5b57\u8282)<\/h2>\n<p>MiniDebian.vdi  721 MB  \u7cfb\u7edf\u4f7f\u7528\u7a7a\u95f4  453M<\/p>\n<pre><code>df -h\nFilesystem      Size  Used Avail Use% Mounted on\n\/dev\/sda1       3.9G  453M  3.2G  13% \/<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Debian 12 Linux \u865a\u62df\u673a\u955c\u50cf\u600e\u4e48\u505a\u5230\u6781\u8f7b\u91cf-VirtualBoxVDI\u6587\u4ef6\u7626\u8eab\u65b9\u6cd5 \u8fd9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1438,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23,17],"class_list":["post-1437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux","tag-vps"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1437"}],"version-history":[{"count":4,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1442,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1437\/revisions\/1442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media\/1438"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}