Following this thread: viewtopic.php?f=35&t=50661
My VM has snapshots, but im on virtualbox 7.0.
I went to file>tools>virtual media manager to increase my disk size. I can't see MainSvr-AW in there, because I named the disk images in confusing ways, so I just increased the size of all of them. I think I named it seve1.vdi, but theres also a snapshot under that. I increase all of them to about 30.
I boot MainSvr-AW's windows OS and it does not detect any unallocated partitions.
I mount a GParted disk image and it does not detect any unallocated partitions.
I see that the thread viewtopic.php?f=35&t=50661 says its not easy to resize a VM that is on fixed disk size or has a snapshot. I try to clone it using their instructions. I installed virtualbox on my c drive but moved the vms to another drive. I try to use that command in there but it throws up an error:
Code: Select all
C:\Program Files\Oracle\VirtualBox>vboxmanage clonehd seve1.vdi clonetest1.vdi --format vdi --variant standard
VBoxManage.exe: error: Could not find file for the medium 'C:\Program Files\Oracle\VirtualBox\seve1.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 205 of file VBoxManageDisk.cpp
C:\Program Files\Oracle\VirtualBox>vboxmanage clonehd MainSvr-AW.vbox clonetest1.vdi --format vdi --variant standard
VBoxManage.exe: error: Could not find file for the medium 'C:\Program Files\Oracle\VirtualBox\MainSvr-AW.vbox' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 205 of file VBoxManageDisk.cpp
I try to do vboxmanage in the directory that my vms are in, but it doesn't support the command in there.
I try to increase size of the drive using CLI, it seems successful:
Code: Select all
C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "D:\VMs\MainSvr-AW\seve1.vdi" --resize 40000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Try to clone the disk into a support format using the CLI command, can't get cmd to recognise my command even though I tried several variants of it
Code: Select all
C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "D:\VMs\MainSvr-AW\seve1.vdi" --format VDI --variant Standardvbox
Oracle VM VirtualBox Command Line Management Interface Version 7.0.6
Copyright (C) 2005-2023 Oracle and/or its affiliates
VBoxManage.exe: error: unknown option: --format
Usage - Change the characteristics of an existing disk image:
VBoxManage modifymedium [disk | dvd | floppy] <uuid | filename> [--autoreset=on | off] [--compact] [--description=description] [--move=pathname] [--property=name=[value]]
[--resize=megabytes| --resizebyte=bytes] [--setlocation=pathname] [--type=normal | writethrough | immutable | shareable | readonly | multiattach]
C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "D:\VMs\MainSvr-AW\seve1.vdi" "D:\VMs\MainSvr-AW\seve1test.vdi" --format VDI --variant Standardvbox
Oracle VM VirtualBox Command Line Management Interface Version 7.0.6
Copyright (C) 2005-2023 Oracle and/or its affiliates
VBoxManage.exe: error: Invalid parameter 'D:\VMs\MainSvr-AW\seve1test.vdi'
Usage - Change the characteristics of an existing disk image:
VBoxManage modifymedium [disk | dvd | floppy] <uuid | filename> [--autoreset=on | off] [--compact] [--description=description] [--move=pathname] [--property=name=[value]]
[--resize=megabytes| --resizebyte=bytes] [--setlocation=pathname] [--type=normal | writethrough | immutable | shareable | readonly | multiattach]
C:\Program Files\Oracle\VirtualBox>modifymedium disk
'modifymedium' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\Oracle\VirtualBox>modifydisk
'modifydisk' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "D:\VMs\MainSvr-AW\seve1.vdi" "copytest.vdi" --format VDI --variant Standardvbox
Oracle VM VirtualBox Command Line Management Interface Version 7.0.6
Copyright (C) 2005-2023 Oracle and/or its affiliates
VBoxManage.exe: error: Invalid parameter 'copytest.vdi'
Usage - Change the characteristics of an existing disk image:
VBoxManage modifymedium [disk | dvd | floppy] <uuid | filename> [--autoreset=on | off] [--compact] [--description=description] [--move=pathname] [--property=name=[value]]
[--resize=megabytes| --resizebyte=bytes] [--setlocation=pathname] [--type=normal | writethrough | immutable | shareable | readonly | multiattach]