How to resize VirtualBox .vdi Hard Drive File
HTML-код
- Опубликовано: 17 фев 2015
- Here we are resizing the .vdi Virtual Hard Drive file we created in the last video using VirtualBox for Ubuntu. You cannot just change the file size, you have to reorder the drive partitions, which I will show in this video.
The commands used are as follows:
vboxmanage modifyhd [AbsoluteFilePath] --resize [SizeInMb]
sudo apt-get install gparted
df -h
This is awesome!! So clear and step by step explained really well. Thank you!!!
Great work!!! I spent hours using everyone else's messed up path structure, you got it right the first time! It was the backslashes I needed for the spaces in the file path that I was getting wrong. Frustrating!
It works fine! Thank you very much :)
Excellent!
Thanks buddy!!
wonderful thanx u saved me
Thanks!
Thank you very much for this straightforward video and explanation. Just a question, resizing .vdi virtual hard drive means formatting and so erasing this hard drive? Thanks again!
Hey @Partatoes great video, just a quick question. Is there any reason you left the amount of space in the sda2 and sda5 (i.e the other partitions) that you did? I think you left 2 gigabytes, and should this scale with the size of your VM?
Thank you
Thanks
thanks
But what happens if I'm on a mac, and I have Win7 on my virtual machine, do I just do the first part and reset virtualbox? Or do I have to do some extra stuff on win7?
+Castlemaster712 What you have to do is download a tool for resizing partitions. A quick google search could probably find you plenty of programs for it. The actual resizing steps will be different from the video, but the concept should be the same.
Hi Partatoes, I just installed windows 10 on the virtual box on my macbook pro yesterday. And today the disk on the virtual windows machine show the disk as full. It was set to about 20 GB. What's the issue? Will I be able to install any program or will I have to keep increasing the size. I don't get this? How did my disk space get full in just over a day.
Terminal says:
VBoxManage: error: Error: Attempt to resize the medium from 0.0 MB to 150000.0 MB. Use --resizebyte if this is intended!
If I try this it says some error in line 360-something and some other errors. Any suggestions @Partatoes ?
It might be the limited space in your computer.
Try setting it to a lower value.
hello, I am running OS El Capitan and I tried to resize the hard drive in windows Xp. But I typed the commands and terminal showed me a lot of information with a legend in the bottom that says Syntax error: Invalid command 'modifyhd/Users/Vichito-007/VirtualBox VMs/XP/XP.vdi' and the new size, I want 20GB. Please HELP
And what about if my virtual machine is .vmdk?? What can I do my friend?
I keep getting this... Syntax error: Invalid parameter '--resize'
okay never mind... It did not like that I copied and pasted the command. It messed the with -- part of it. Cheers!
I am trying this on my Mac in the terminal and entering this->
Javids-MacBook-Pro:~ javidbeykzadeh$ vboxmanage modifyhd /Users/javidbeykzadeh/VirtualBox\ VMs/Win10\ Win10.vdi --resize 50000
and I get this error->Syntax error: Invalid parameter '--resize'
Doesn't my syntax seem to be correct?
Javid Beykzadeh
here just copy and paste this. i retype it for you. let me know if this helped you out. it should work fine now.
/Users/javidbeykzadeh/VirtualBox\ VMs/Win10\ Win10.vdi --resize 50000