How to Increase the size of fixed sized disk in Virtualbox - Any format
HTML-код
- Опубликовано: 28 июн 2024
- Increase the size of any fixed sized disk in Virtualbox.
In this tutorial I show you how to increase the size of a fixed sized disk in Virtualbox.
This method should work with any of the following virtual disk image formats: VDI VMDK HD QED and QCOW
The live Linux distro used was Ubuntu Desktop
www.ubuntu.com/download/desktop/
Virtualbox download:
www.virtualbox.org/wiki/Downl...
Blog: www.linuxleech.com
Twitter: / linuxleech
Facebook: / linuxleech
Google+: www.google.com/+linuxleech
~-~~-~~~-~~-~
Please watch: "virtualbox vs vmware virtual machine in virtual machine?"
• Virtualbox vs Vmware I...
~-~~-~~~-~~-~ - Наука
Excellent tutorial. Much simpler and clearer than reading written ones. Crucial details explained too. Thanks!
It's 2021, I'm using Ubuntu 20.04 LTS and this tutorial is still relevant! Thanks a bunch !
Brilliant video! Despite having a slightly different setup with a Windows 10 virtual hard drive, I was able to follow along with this to create an expanded Win 10 copy. Much quicker than starting all over! The one part that might be tricky for some is if they don't know how to attach a Linux ISO as a disk for live booting. If they only have a SATA controller, for example, they would need to attach the ISO as an optical disk and change it to the first SATA port to get it to boot automatically. Anyway, really appreciated this video as it saved me a lot of time.
Worked perfectly, saved my life
yeah man! All good here! My guest was Windows 10. Just used the Computer Management app within Windows 10 to re-occupy the new un-allocated space. Didn't have enough disk space to copy old VM to new VM drive so just gave it a path to an external USB drive and a name and copied to there. Then deleted the original thereby making space for the new and copied it back to the main internal drive. Worked like a charm. Sweet!
Worked like a charm! Thanks!
Great video man, a real "cut to the chase" and does teach a lot, keep the good work.
Very clear instructions. Thanks
Thanks for the help. I feel cooler now that I fixed this problem! :D
Wow! Thanks a lot. Much better than other cmd way to do this. Really appreciate it.
Thnkx a mil for this, It is still working perfectly as at May 2020. I used the process to resize a 60GB Win10 VDH to 150GB. I am running Virtual box 5 on Linux Mint as host and used a linuxmint live iso in stead of Ubunto live but the rest of thhe process works great.
Thanks , Great Great, Easy to follow and worked as smooth as silk
that was a perfect tutorial!
Very nice, thank you! This worked as you showed it. Oddly enough I have never gotten `dd if=/dev/sdX of=/dev/sdY` to work on physical disks ever so I was suprised that it worked with no options in this example :)
Absolutly great for Linux and VB beginners like me!
Thanks! This was a big help
Thank u! great detailed explanation! easy and working (Ubunut 18.04)
I recommend using the dd utility with progress status, because it might take a while and u might get frustrated without seeing any progress:
dd if=/dev/sda of=/dev/sdb bs=1024k status=progress
This video was really helpful, you saved me a lot of time!
Thank you! Very helpful.
absolutely fantastic tutorial, thanks a million mate.
Great tutorial. Thanks!
Very helpful! Thanks.
Thanks a lot!! Very easy to follow
Thank you.
Should mention that the smaller disk can now be deleted.
I had to tweak it for mint, but was more than easy enough. Thanks.
Awesome. Thank you
nice , clean tutorial and also safe too cheers !!!!!!!!!!! very easy to shrink thanks man
Great tutorial. Thank you :)
This is a great video showing how to make the change. I have 1 question on it.
I currently have a fixed disk which hosts Oracle Linux 5. It has a number of applications running on it. Can I use this approach with the ubuntu iso to increase the size? And then start the VM with its contents all ok?
Thank's, simple & fast (y)
Thank you so much!
worked perfectly
Thanks for this tutorial although I have not executed a change on my VM disk size yet. I noticed we moved from a fixed disk size now to a dynamically allocated modified one.Is there any other tutorial whereby you resize the disk and kept it as a fixed disk size ?
Process is the same just make sure the new fixed size disk is larger than the disk you are copying from.
Thanks a lot mate!
Does this work for dynamic disk installs as well? I can run the vboxmanage resize command and the larger size .vdi shows up in virtualbox but is never recognised by live cd with gparted.
thanks a lot for this!
Thanks for the nice video! Should this method also work on a Windows guest? I have every step of your tutorial working except the resizing of the NTFS partition. That fails with Error(2): Failed to check /dev/sdb mount state
Hi. Did you ever manage to get this working for windows?
thanks, great tutorial ;)
Thanks!
Wao video. Superb.Its solved my big problem.
I used your method and it worked like a charm, thank you for that. But now I have a problem I can't solve: Booting my Ubuntu Machine now takes more than a Minute - why (probably) is that?
You should change the dd block size to a larger value, it will make a big difference since the default is so small
thanks
When you put the ubuntu 12 in empty disk, it will ask me to install it again it suposed to ?
wow u r excellent man
Thank you Sir
Welcome!
I tried this in kali Linux 4.17.0 but after hitting enter (after DD command) nothing happend? In gpart I got an error. I deleted all my drives and added a new dynamic big drive with a clean install of Kali. I still have my backup, how to copy my files from my backup?
awesome tutorial.. thanks a lot :)
+Fatih Güven Thanks Fatih. :)
Can I assume that fixed memory has an ability to shrink itself when the memory on it is freed?
I wish I knew about this tutorial earlier
it was worth saying that gparted in not found by default and to install it write "sudo apt-get install gparted" in the terminal
didn't work for me , after i tape thouse lines in the termianl , it closes and write aborded
Hi. In my case I use a mac, and the hard disk is under IDE controller, and I don't have an empty disk under IDE controller in order to boot the VM from there and do what you did. Any suggestions?
Click once on your IDE controller so it is highlighted. You should see two icons appear with plus symbols. Click on the one that looks like a cd. A message box will pop up with three options: cancel, choose disk and leave empty, click leave empty and you should now have an empty disk under your IDE controller.
Also, remember that the old multi-gigabyte .vdi file is still stored on the host filesystem. Most will probably want to delete that after testing the new one.
Mine is vmdk but is a Dynamically allocated storage can this still work?
Should work fine.
my unity launcher at the left and the top panel became missing after doing everything you said, what should i do?
solved.
0:36 You should have just told them to take a snapshot right?
Hi, What do I do if I do not have an Empty disk under Controller:IDE? If I need one, can you show me how to create one?
Hi Robert, all you have to do is create a new disk in the same way shown in this tutorial and then add it to the IDE controller instead of the SATA controller.
Plz help, how would i get the .iso image
He has given the link for that up there.
The live Linux distro used was Ubuntu Desktop
www.ubuntu.com/download/desktop/
I literally cannot click on anything. all settings are greyed out. So I cannot do this or the other step!
Why does it have to be such a big process just to increase disk space?
grumpy grumpy cat
Hi, i followed your instructions but i can't increase the size of the biggest partition in /dev/sdb, i believe it is because it have a LVM format (contains an ubuntu server)
José Luis Larroque If you are using LVM you can just create a new disk in virtualbox, add it to the controller in your storage tree for your servers VM, so your server can see it and then just use LVM management tools to add it to your volume group.
I'm trying, but i couldn't.
Should i use the gui or command line to do it?
José Luis Larroque You could just use LVM command line tools within your ubuntu server VM. Should take less than a minute to do. Out of interest what are you using the server for?
The server is used for building a small cluster, to simulate aws-ec2 in a local environment. Thanks for the help
José Luis Larroque cool
funny story: video is 9:20 min, took me 6:17 min to install a new virtual machine with ubuntu and a new drive.
But how much time does it take to reinstall all your stuff? There's the added value
i'll wait 3 - 5 hours for 100 gb :( rip
NB, deleting and recreating swap mandates updates in /etc/fstab for it to work correctly, see this discussion for details askubuntu.com/a/810203