venturelkp.blogg.se

Virtualbox increase disk size linux guest
Virtualbox increase disk size linux guest




virtualbox increase disk size linux guest

> right-click the data-partition choose resize/move and expand the partition to the maximum size R) expand the data-partition (in my case ext3): > after that delete the expanded-partition too (if the swap is in an expanded-partition) > right-click on to the linux-swap-partiton and delete it. > right-click on to the linux-swap-partiton and switch it of > in gparted all the partition are listed below the graphical illustration Q) remove the swap partition (this is only necessary if the swap partition split the clone vdi disk): P) start gparted on the live cd desktop (ubuntu desktop: menu -> system -> administration -> partition editor) O) shut down the clone vdi disk and modify the cd/dvd-rom settings in order to boot into the live cd

virtualbox increase disk size linux guest

Resize the clone vdi disk (gparted live cd desktop) N) if the clone works fine you are ready to resize the partition so that the clone can use the whole size of the new vdi disk > make the clone vdi disk to the primary master disk and the old vdi disk to a primary slave disk > change the cd/dvd drive mount from iso image to cd/dvd drive M) verify if the clone vdi disk boots and runs fine: L) verify the partition tables type into the terminal: fdisk -l (the partition table oft the new and old vdi disk should be similar)

virtualbox increase disk size linux guest

Verify the clone (terminal live cd desktop K) wait (cloning the old vdi disk can take some hours) J) clone the old vdi disk to the new type into the terminal: dd if=/dev/old of=/dev/new (replace old/new according to your needs) I) write down the output of fdisk -l (look for something like /dev/sda and /dev/sdb or /dev/hda and /dev/hdb) H) find ou the devices of the new and old vdi disk type into the terminal: fdisk -l G) get root privileges therefore type into the terminal type: sudo -s In my case i choose ubuntu-8.04.2-desktop-i386.iso.īut first of all: BACKUP the linux guest you want to resize!!Ĭreate a new vdi disk with the required size:Ī) start virtualbox go to menu -> file -> virtual disk manager -> hard diks -> new -> follow the assistantī) attach the new vdi disk to the guest (old vdi disk) you want to resize: go to settings -> hard disks -> add the new vdi disk as primary slaveĬ) attach a live cd iso image to the linux guest you want to resize: go to settings -> cd/dvd-rom -> highlight cd/dvd drive mount checkbox -> select iso image -> choose a iso imageĭ) modify the boot order: go to settings -> general -> advanced -> boot order -> disable floppy / move cd/dvd to the topĮ) boot the live cd choose the first option of the ubuntu install menu (if you use the ubuntu 8.04 live cd iso image)Ĭlone the old vdi disk to the new (terminal live cd desktop)į) start a terminal from the linux guest desktop (ubuntu desktop go to the menu application -> accessories -> terminal) In order to resize a vdi disk of a linux guest you need a bootable linux live cd (iso image).įurther, the linux live cd should include a terminal an gparted.






Virtualbox increase disk size linux guest