Results 1 to 6 of 6

Thread: increase win7 guest from 25GB to 50GB

  1. #1
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    increase win7 guest from 25GB to 50GB

    I have tried several commands and am not able to do this what am I doing wrong?

    Code:
    cmcanulty@ubuntu1:~$ VBoxManage list hdds
    UUID:           0504a96c-b157-40ea-aa81-62f99d1b0681
    Parent UUID:    base
    State:          locked write
    Type:           normal (base)
    Location:       /home/cmcanulty/VirtualBox VMs/Windows 7/Windows 7.vdi
    Storage format: VDI
    Capacity:       25600 MBytes
    
    cmcanulty@ubuntu1:~$  VBoxManage modifyhd /var/VirtualBox/HardDisks/Windows7.vdi  --resize 50000
    VBoxManage: error: Could not find file for the medium '/var/VirtualBox/HardDisks/Windows7.vdi' (VERR_FILE_NOT_FOUND)
    VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
    VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp
    cmcanulty@ubuntu1:~$

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: increase win7 guest from 25GB to 50GB

    /var/VirtualBox/HardDisks/Windows7.vdi - is not where the file is. Find it.

    Oh - there it is:
    Location: /home/cmcanulty/VirtualBox VMs/Windows 7/Windows 7.vdi

    Be certain to wrap that in quotes.

  3. #3
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: increase win7 guest from 25GB to 50GB

    Screenshot - 10182014 - 08:27:49 AM.pngOk thanks I had tried that first then went by a posting. My mistake was using " for quotes rather than ' is that standard to use single quotes?

    Whoops it appeared to succeed but when I go into VB windows 7 it still shows the drive almost full and I did fully power down the VB

    Code:
    cmcanulty@ubuntu1:~$ VBoxManage modifyhd '/home/cmcanulty/VirtualBox VMs/Windows 7/Windows 7.vdi' --resize 50000
    0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
    cmcanulty@ubuntu1:~$
    Last edited by cmcanulty; October 18th, 2014 at 01:52 PM.

  4. #4
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: increase win7 guest from 25GB to 50GB

    You've now resized the hdd - you'll need to use the win disk tool to expand it's partition to now use the new size hdd - at least I'd guess so, extrapolated from doing similar

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: increase win7 guest from 25GB to 50GB

    Changing the HDD size doesn't change the size of the partitions. Fix that inside the clientOS (Windows Disk Manager).

    Google found this https://forums.virtualbox.org/viewto...p?f=35&t=50661 with warnings about certain situations. I'd carefully review the manpage.

    Or you could just create a new, larger, VM-HDD, connect it to the same VM, then use a liveCD to clone/dd/fsarchive the contents into the larger space.

    Disclosure: I stopped using virtualbox about 2 yrs ago ... and never got it stable on Linux hosts.

  6. #6
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: increase win7 guest from 25GB to 50GB

    OK that got it thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •