Enable growth of VirtualBox guest's disk - Ask Ubuntu


i running virtualbox (version 5.0.24) windows 10 guest under ubuntu 16.04 lts. in storage settings, "virtual size" stated 32 gb , "actual size" 30.2 gb. dynamically allocated storage used. in addition (not sure if relevant), lvm used in ubuntu.

i trying install software take additional 4 gb in windows guest , "not enough space" error. steps should take enable installation? (i still have lots of free disk space in home directory in ubuntu, how windows guest use it?)

you can modify virtual disk container using vboxmanage modifymedium (virtualbox 5.1) command in terminal window. in windows guest, using windows own disk management application extend size of windows partition.

$ vboxmanage (by see long info)    modifymedium              [disk|dvd|floppy] <uuid|filename>                             [--type normal|writethrough|immutable|shareable|                                     readonly|multiattach]                             [--autoreset on|off]                             [--property <name=[value]>]                             [--compact]                             [--resize <megabytes>|--resizebyte <bytes>]                             [--move <full path new location>] 

so resize 30g disk container 45g, you'd do:

sudo vboxmanage modifymedium disk disk_container_name.vdi --resize=45000 

note: in virtualbox versions prior 5.1, modifymedium option may have been called else. command works same, however. type vboxmanage info specific version.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User