{"id":464,"date":"2015-05-18T17:18:33","date_gmt":"2015-05-18T17:18:33","guid":{"rendered":"http:\/\/www.mirageglobe.com\/wp\/?p=464"},"modified":"2015-05-18T17:18:33","modified_gmt":"2015-05-18T17:18:33","slug":"virtualbox-resizing-lubuntu-guest-linux","status":"publish","type":"post","link":"https:\/\/pages.alldaycity.com\/mirageglobe\/virtualbox-resizing-lubuntu-guest-linux\/","title":{"rendered":"VirtualBox Resizing Lubuntu Guest Linux"},"content":{"rendered":"<p><a href=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/05\/lubuntu11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-467\" src=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/05\/lubuntu11.png\" alt=\"lubuntu1\" width=\"1000\" height=\"638\" \/><\/a><br \/>\nHere I cover resizing lubuntu (14.04.2) linux as guest OS on virtual box. I am using Mac OSX as a host OS.<br \/>\nFirst we have a 15gb virtual box (vdmk) image file in virtualbox. If you are paranoid, just to be safe, clone the virtualbox VM by right clicking and clone.<br \/>\n1) Convert vdmk to vdi using this command:<\/p>\n<blockquote><p>&gt; cd ~\/VirtualBox VMs\/<br \/>\n&gt; cd mylubuntubox\/path\/<br \/>\n&gt; VBoxManage clonehd MyLubuntuBox.vmdk lubuntubox.vdi &#8211;format vdi<\/p><\/blockquote>\n<p>2) Resize the vdi clone<\/p>\n<blockquote><p>&gt; VBoxManage modifyhd lubuntubox.vdi &#8211;resize 25600<\/p><\/blockquote>\n<p>3) Download gpartlive iso here:\u00a0http:\/\/gparted.org\/download.php<br \/>\n4) In the virtualbox gui, click on settings and change the HDD to lubuntubox.vdi<br \/>\n5) Add a boot CD as gparted.iso (the iso you downloaded)<br \/>\n6) Start the virtualbox VM and you should get into GPARTed.<br \/>\n<a href=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/05\/lubuntu2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-469\" src=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/05\/lubuntu2.png\" alt=\"lubuntu2\" width=\"1000\" height=\"750\" \/><\/a><br \/>\n7) Resize the Partition to the full size, which covers the unused XXXXGB.<br \/>\nIf there is a lock on the partition, right click and deactivate, then resize. Afterwards just, reactivate.<br \/>\nYour system will not reflect the full extended size if you used LVM (logical volume management). The partition will be 25gb however the sdx contains root(LV) and swap(LV). You need to extend the root (LV)<br \/>\n8) Download and mount lubuntu 14.04.2 (live cd here) PC 64 bit ISO<br \/>\nhttps:\/\/help.ubuntu.com\/community\/Lubuntu\/GetLubuntu\/LTS<br \/>\nmount the Lubuntu iso (like how you mounted gparted iso above) and reboot into Lubuntu Live<br \/>\n10) install the LVM2 system-config-lvm gui to resize the LVM (if you have used LVM in your resize)<\/p>\n<blockquote><p>&gt; run lxterminal<br \/>\n&gt;\u00a0sudo add-apt-repository &#8216;deb http:\/\/archive.ubuntu.com\/ubuntu $(lsb_release -sc) universe&#8217;<br \/>\n&gt; sudo apt-get update<br \/>\n&gt; sudo apt-get install system-config-lvm<br \/>\n&gt; sudo system-config-lvm<\/p><\/blockquote>\n<p>11) now click on root(LV) and click on the button &#8216;use remaining space&#8217;.<br \/>\n12) save and reboot. Good luck.<br \/>\n<a href=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/05\/cmdline1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-470\" src=\"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-content\/uploads\/sites\/2\/2015\/05\/cmdline1.png\" alt=\"cmdline1\" width=\"1000\" height=\"652\" \/><\/a><br \/>\nReference:<\/p>\n<ul>\n<li>http:\/\/stackoverflow.com\/questions\/11659005\/how-to-resize-a-virtualbox-vmdk-file<\/li>\n<li>http:\/\/www.convertunits.com\/from\/gigabyte\/to\/MB<\/li>\n<li>http:\/\/www.howtogeek.com\/127246\/linux-sysadmin-how-to-manage-lvms-with-a-gui\/<\/li>\n<li>http:\/\/askubuntu.com\/questions\/196125\/how-can-i-resize-an-lvm-partition-i-e-physical-volume<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Here I cover resizing lubuntu (14.04.2) linux as guest OS on virtual box. I am using Mac OSX as a host OS. First we have a 15gb virtual box (vdmk) image file in virtualbox. If you are paranoid, just to be safe, clone the virtualbox VM by right clicking and clone. 1) Convert vdmk to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":0,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"wp:attachment":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}