[SOLVED] resize virtual HDD

Discussions about using Linux guests in VirtualBox.
Post Reply
Mayagrafix
Posts: 20
Joined: 27. Mar 2013, 18:47
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: OpenSUSE

[SOLVED] resize virtual HDD

Post by Mayagrafix »

OpenSUSE 12.3 with KDE 4 notified me that i was running low on disk space on my home folder, so using the modifyhd command, I doubled the size of the VDI. Soon after, the Guest OS (OpenSUSE 12.3) will not allow me as user to log in, but works OK with root. I can however, log in with user name in console mode. From the console, I can use startx and get the GUI going (as root).

My question is, could this problem be related to re-sizing the VDI hard disk?

Thanks for any help.
Last edited by Mayagrafix on 14. Sep 2014, 07:21, edited 1 time in total.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: resize virtual HDD

Post by noteirak »

Did you resize the partition inside the guest aswell?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Mayagrafix
Posts: 20
Joined: 27. Mar 2013, 18:47
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: OpenSUSE

Re: resize virtual HDD

Post by Mayagrafix »

noteirak wrote:Did you resize the partition inside the guest aswell?
duhh... ok, guilty as charged. How should I proceed? I am familiar with Gparted, can I use it in KDE?

The message says I'm at 0% of available space on the Home partition. Yet when I look it up in Dolphin it says only using 30% of available space.

Thanks for ur help.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: resize virtual HDD

Post by Perryg »

Sounds like you are using LVM, so Gparted won't help. Google how to increase the home partition using LVM if that is indeed what you have.
Mayagrafix
Posts: 20
Joined: 27. Mar 2013, 18:47
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: OpenSUSE

Re: resize virtual HDD

Post by Mayagrafix »

No LVM, have a VDI - dynamically allocated image - and want to use KDE Partition Manager. How should I proceed? not much in the VBox user manual other than "you will typically next need to use a partition management tool inside the guest to adjust the main partition to fill the drive".

So far I figured out how to add a second VDI as a startup disk so the original main disk is not active, but partition management tool inside the guest will not resize partition.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: resize virtual HDD

Post by noteirak »

The VDI is just like a physical hard drive - the VDI would be the raw hardware. You still need partitions on it. LVM would be your partitioning scheme.
Are you using LVM in the guest?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Mayagrafix
Posts: 20
Joined: 27. Mar 2013, 18:47
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: OpenSUSE

Re: resize virtual HDD

Post by Mayagrafix »

My guess is YES - although VirtualBox created a dynamically allocated image for the hard disk, it was the SUSE OS installer which used the default partitioning scheme, and from what I understand, that would be LVM.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: resize virtual HDD

Post by noteirak »

Then you need to extend the logical volume within your VM, just like you would do it on a regular physical PC.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Mayagrafix
Posts: 20
Joined: 27. Mar 2013, 18:47
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: OpenSUSE

Re: resize virtual HDD

Post by Mayagrafix »

After downloading OpenSUSE RescueCD ISO I added it to the broken Vbox, set it up as a Live! CD and booted from there. Gparted the VDI hard disk and faster than u can say Bob ur uncle, I have a working, twice the space hard drive.

Thanks for all the help. 8)
Post Reply