Reduce disk usage on Debian-based distro.
前陣子因為公司產品上的需求, 客製了一套自己的 distro: V____x, 因為我很懶一些因素選擇直接從 Ubuntu Minimal 出發… 最終 Xorg, Openbox WM 加上公司產品及一些相依套件庫, »
前陣子因為公司產品上的需求, 客製了一套自己的 distro: V____x, 因為我很懶一些因素選擇直接從 Ubuntu Minimal 出發… 最終 Xorg, Openbox WM 加上公司產品及一些相依套件庫, »
Today I was trying to increase memory size on a qemu-kvm hosted VM. My plan was as simple as shut it down and then change memory setting via virsh edit <VMName>
, but both virsh edit
and virsh start
throws the same error message:
»error: cannot fork child process: Cannot allocate memory
致命的指令失誤是每個 linuxer 成長過程中必定有過的經驗, 誰也免不了.
別不信邪, 即使是 Gentoo Portage 的 official ebuild,
也曾經出現過 rm -rf /lalala
誤寫為 rm -rf / lalala
,
造成使用者更新套件後系統全毀的慘劇…
Consider a situation that you want to change some settings i.e. edit some files in VM, it’ll be nice if you don’t have to boot it up then log in to make some changes. So the question becomes how to access the file system inside the VM disk image file?
»Sometimes we have to make our own image for GRUB splash background. But there are some restrictions on that image for GRUB bootloader to accept and display it. By ImageMagick, we have an easy way to convert any image to satisfy that: convert oldsplash.jpg -resample 72 -sampling-factor 2x2 -resize 640x480\! newsplash.jpg Hint: The \! means FORCE, so it maybe breaks original ratio. »
First, prepare a fresh-installed CentOS as your playground, choose the packages
that your customized disc like to install. Note that if you don’t do so, the
~/install.log
used in the following process will not exists.