Vboxmanage error could not find file for the medium

Всем привет! Прочитал тему: но увы нормально ничего там и не понял, и не помогло(( В результате всех попыток, имею только это: brainkiller@localhost:~$ vboxmanage modifyhd windows.vdi --resize 40000 VBoxManage: error: Could not find file for the medium '/home/brainkiller/windows.vdi' (VERR_FILE_NOT_FOUND) VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports VBoxManage: error: Context:
  • Печать

Страницы: [1]   Вниз

Тема: vboxwindowsСнова увеличение размера дисков .vdi  (Прочитано 1789 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Brainkiller

Всем привет! Прочитал тему: https://forum.ubuntu.ru/index.php?topic=214897.15
но увы нормально ничего там и не понял, и не помогло(( В результате всех попыток, имею только это:
brainkiller@localhost:~$ vboxmanage modifyhd windows.vdi —resize 40000
VBoxManage: error: Could not find file for the medium ‘/home/brainkiller/windows.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
brainkiller@localhost:~$ vboxmanage modifyhd /home/brainkiller/VirtualBox VMs/WIS-ASRA.vdi —resize 45000VBoxManage: error: Could not find file for the medium ‘/home/brainkiller/VirtualBox VMs/WIS-ASRA.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
brainkiller@localhost:~$ cd /home/fanta/VirtualBox VMs/Win2/
bash: cd: /home/fanta/VirtualBox VMs/Win2/: Нет такого файла или каталога
brainkiller@localhost:~$ vboxmanage modifyhd WIS-ASRA.vdi —resize 45000
VBoxManage: error: Could not find file for the medium ‘/home/brainkiller/WIS-ASRA.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

помогите люди добрые растянуть диск. объяснения желательны почти по типу «тупой и ищё тупее», как бы стыдно для меня это ни звучало. я в командной строке архиполный нуб.

« Последнее редактирование: 17 Ноября 2015, 00:25:46 от it0r »


Оффлайн
alsoijw

Brainkiller, ты пытаешся сделать что-то с диском в хомяке

Но он наверняка лежит в другом месте. Открой терминал, напиши ls[пробел], и перетащи в терминал папку с виртуальным диском. Потом набери команду vboxmanage modifyhd [пробел] начинай вводить имя файла, tab может дополнить. [пробел] Потом допиши —resize 40000

Мало видеть нам начало — надо видеть и конец. Если видишь ты создание — значит где-то есть ТВОРЕЦ
Многие жалуются: геометрия в жизни не пригодилась. Ямб от хорея им приходится отличать ежедневно?


Оффлайн
Brainkiller

Brainkiller, ты пытаешся сделать что-то с диском в хомякеНо он наверняка лежит в другом месте. Открой терминал, напиши ls[пробел], и перетащи в терминал папку с виртуальным диском. Потом набери команду vboxmanage modifyhd [пробел] начинай вводить имя файла, tab может дополнить. [пробел] Потом допиши —resize 40000

адрес файла такой: /home/brainkiller/VirtualBox VMs/WIS-ASRA
в хомяке лежит. перетаскивание папки ничего не даёт, ибо не происходит ровным счётом ничего.


Оффлайн
Бонька

адрес файла такой: /home/brainkiller/VirtualBox VMs/WIS-ASRA

а почему у тебя во всех командах после  VirtualBox стоит обратный слеш + пробел? Не пробовал перейти в файловом менеджере в папку искомую, где лежит файл, оттуда вызвать терминал, и увеличиватьуменьшать все необходимое?

Asus N56VJ, SSD, btrfs, Manjaro 16 (Ellada). x64, XFCE :)


Оффлайн
alsoijw

Бонька, пробелы надо эеранировать, иначе они расцениваются как начало новой команды/ключа

Мало видеть нам начало — надо видеть и конец. Если видишь ты создание — значит где-то есть ТВОРЕЦ
Многие жалуются: геометрия в жизни не пригодилась. Ямб от хорея им приходится отличать ежедневно?


Оффлайн
Brainkiller

адрес файла такой: /home/brainkiller/VirtualBox VMs/WIS-ASRA

а почему у тебя во всех командах после  VirtualBox стоит обратный слеш + пробел? Не пробовал перейти в файловом менеджере в папку искомую, где лежит файл, оттуда вызвать терминал, и увеличиватьуменьшать все необходимое?

из  папки не вызывается терминал почесу то. в папке я кликаю на «инструменты» там кликаю на «открыть текущую папку в терминале» и ничего не происходит.


Оффлайн
wajnon

Brainkiller,

cd /home/brainkiller/.VirtualBox VMs/

ls -a


Оффлайн
Brainkiller

Brainkiller,
cd /home/brainkiller/.VirtualBox VMs/ls -a

brainkiller@localhost:~$ cd /home/brainkiller/.VirtualBox VMs/
bash: cd: /home/brainkiller/.VirtualBox VMs/: Нет такого файла или каталога


Оффлайн
wajnon

Brainkiller,

ls '/home/brainkiller/VirtualBox VMs/WIS-ASRA'


Оффлайн
Бонька

Бонька, пробелы надо эеранировать, иначе они расцениваются как начало новой команды/ключа

хмм.. Не знал. Я всегда такое с пробелами в кавычки заключаю просто, типа:

cd "/home/brainkiller/.VirtualBox VMs/"

Asus N56VJ, SSD, btrfs, Manjaro 16 (Ellada). x64, XFCE :)


Оффлайн
Brainkiller

Brainkiller,
ls '/home/brainkiller/VirtualBox VMs/WIS-ASRA'

brainkiller@localhost:~$ ls ‘/home/brainkiller/VirtualBox VMs/WIS-ASRA’
Logs  NewVirtualDisk1.vdi  WIS-ASRA.vbox  WIS-ASRA.vbox-prev  WIS-ASRA.vdi
brainkiller@localhost:~$


Оффлайн
wajnon

Brainkiller,

cd '/home/brainkiller/VirtualBox VMs/WIS-ASRA'

vboxmanage modifyhd WIS-ASRA.vdi --resize <сколько_нужно>


Оффлайн
Brainkiller

wajnon,
увеличилось, спасибо. теперь осталось разобраться как растянуть диск ц в винде самой.


Оффлайн
it0r

ТУТ — это дерево. А ЗДЕСЬ — это МЕСТО…. Так что ТУТ — это не ЗДЕСЬ.


  • Печать

Страницы: [1]   Вверх

  • Reply with quote

«vboxmanage modifymedium —compact» command not working

«vboxmanage modifymedium —compact» command suddenly not working. Below is the error message:

VBoxManage: error: Could not find file for the medium ‘/home/ryzen/Debian12.vbox’ (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: «OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())» at line 187 of file VBoxManageDisk.cpp

VirtualBox version 6.1.32; OS: Debian sid. Did not have problem about a couple of months ago. Tried another vdi file that was successfully compacted before, but not working this time.

pwzhangz
 
Posts: 12
Joined: 15. Sep 2012, 23:41

  • Reply with quote

Re: «vboxmanage modifymedium —compact» command not working

Postby pwzhangz » 19. Feb 2022, 09:34

I think this problem is related to the 5.16 kernel. I executed this command in one of my machines running the 5.15.x kernel and no problem encountered. But after I upgraded this machine to the 5.16 kernel, execution failed with the same error messages.

pwzhangz
 
Posts: 12
Joined: 15. Sep 2012, 23:41

  • Reply with quote

Re: «vboxmanage modifymedium —compact» command not working

Postby pwzhangz » 19. Feb 2022, 10:12

Oops, sorry for jumping the gun. I booted into the old 5.15.15 kernel and the problem still persisted. Therefore, there must be something else that was upgraded along with the 5.16 kernel that caused the problem. I have increased the size of the vm, thus, no need to compact the vdi file at least for now.

pwzhangz
 
Posts: 12
Joined: 15. Sep 2012, 23:41

  • Reply with quote

Re: «vboxmanage modifymedium —compact» command not working

Postby AndyCot » 19. Feb 2022, 10:17

What VB version do you have installed?
What is the exact command you tried to run?
Do a n «ls -la <vdi>» where <vdi> is the HDD image you are trying to compact as per the VB manual?

I think you are trying to compact the XML /home/ryzen/Debian12.vbox and a VDI file.

AndyCot
 
Posts: 285
Joined: 29. Feb 2020, 03:04

  • Reply with quote

Re: «vboxmanage modifymedium —compact» command not working

Postby scottgus1 » 19. Feb 2022, 16:11

Good eye, Andy!

pwzhangz wrote:«vboxmanage modifymedium —compact» command

VBoxManage: error: Could not find file for the medium ‘/home/ryzen/Debian12.vbox

The .vbox file is not the disk file. It’s the motherboard. You can’t compact motherboards… :D

Please post the entire command you are trying.

scottgus1
Site Moderator
 
Posts: 17670
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

  • Reply with quote

Re: «vboxmanage modifymedium —compact» command not working

Postby pwzhangz » 19. Feb 2022, 19:14

I booted into one of my backup partitions that have not been «apt upgraded», and was able to execute the «vboxmanage modifymedium —compact» command without any problem.

The size of the original .vdi file was reduced by 30%:

Before compacting:
-rw——- 1 ryzen ryzen 22513975296 Feb 18 22:05 Debian12.vdi

After compacting:

-rw——- 1 ryzen ryzen 15870197760 Feb 19 07:01 Debian12.vdi

Problem temporarily averted. But when time permits I will still try to find out which package upgrade that caused this problem.

Thanks for all the helps.

pwzhangz
 
Posts: 12
Joined: 15. Sep 2012, 23:41

  • Reply with quote

Re: «vboxmanage modifymedium —compact» command not working

Postby pwzhangz » 20. Feb 2022, 04:34

This problem seems to have been solved by a more recent update. Kudos, sincerely, to Debian developers!

pwzhangz
 
Posts: 12
Joined: 15. Sep 2012, 23:41


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 20 guests

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

User avatar

sadhu

Level 5
Level 5
Posts: 800
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

SOLVED unable to resize virtualbox

I’m running virtualbox from the repository, with the guest additions iso.

I’m getting this response when I try to resize the virtual machine:

Code: Select all

sadhu@desk /ddr/VirtualBoxVMS $ VBoxManage modifymedium win7.vdi --resize 20000
VBoxManage: error: Could not find file for the medium '/ddr/VirtualBoxVMS/win7.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 179 of file VBoxManageDisk.cpp

Can’t understand why the VDI file is not found… I was simply following the directions in https://www.maketecheasier.com/increase … irtualbox/

is this a bug in VBoxManage?

Thanks
-Sadhu

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

sabbe sattā bhavantu sukhitattā. LM 20.3-64 Cinn 5.2.7, Mobo: ASUSTeK STRIX B250G GAMING v, Dual core Pntm G4560, Intel Gfx. Laptop:ASUS, Core i3, 4G RAM Intel Gfx

User avatar

Flemur

Level 20
Level 20
Posts: 10103
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: unable to resize virtualbox — file not found

Post

by Flemur » Wed Apr 24, 2019 10:31 am

sadhu wrote: ↑

Wed Apr 24, 2019 8:59 am


VBoxManage: error: Could not find file for the medium ‘/ddr/VirtualBoxVMS/win7.vdi’ (VERR_FILE_NOT_FOUND)

Try this:

Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up….right?

User avatar

sadhu

Level 5
Level 5
Posts: 800
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: unable to resize virtualbox — file not found

Post

by sadhu » Wed Apr 24, 2019 1:56 pm

Oops! :mrgreen: helps to get the capitalization right!
Now I get this error:

Code: Select all

sadhu@desk /ddr/VirtualBoxVMS $ sudo VBoxManage modifymedium Win7.vdi --resize 20000
[sudo] password for sadhu: 
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize medium operation for this format is not implemented yet!

Other than creating an entirely new VBox file for Win7 — is there any other way to increase its size?

-Thanks
-Sadhu

sabbe sattā bhavantu sukhitattā. LM 20.3-64 Cinn 5.2.7, Mobo: ASUSTeK STRIX B250G GAMING v, Dual core Pntm G4560, Intel Gfx. Laptop:ASUS, Core i3, 4G RAM Intel Gfx

User avatar

AndyMH

Level 20
Level 20
Posts: 11043
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: unable to resize virtualbox — file not found

Post

by AndyMH » Wed Apr 24, 2019 2:58 pm

It’s probably a couple of years since I did this, but I had to clone the original win7 vdi (think I was running VB5.2.8 then), my notes from then:

(a)In VB manager right click on the guest OS (Windows), from the menu select clone.

(b)Accept the defaults, give the clone a name like Windows7xx without spaces (easier for what you do in terminal below and you can change it later). VB will generate a clone which will then appear in the VB window. This takes some time.

(c)Shut down VB.

(d)Open a terminal and navigate to the new folder containing the VDI, e.g. /home/andy/VirtualBox VMs/Windows71

(e)In the terminal enter, as an example:
VBoxManage modifyhd Windows71.vdi --resize 30000

This will resize the image from whatever to 30GB.

(f)Re-start VB and run the guest OS, e.g. Windows 7.1. Goto control panel/admin computer management/storage/disk management and increase the size of C: to use the extra space. Unless this is done, windows will not see and use the additional space created. Note – while it may seem that you cannot change the size basically accept defaults and win will extend drive C:.

(g)Assume that the original guest OS image can now be deleted. Do this from VB manager (again right clicking on the guest OS that you want removed).

Homebrew i5-8400+GTX1080 Cinnamon 19.0, 4 x Thinkpad T430 Cinnamon 20.1, 2 x i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar

sadhu

Level 5
Level 5
Posts: 800
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: SOLVED unable to resize virtualbox

Post

by sadhu » Thu Apr 25, 2019 1:48 am

TYVM Andy!

Now I’m getting this:

Code: Select all

 $ VBoxManage modifyhd win7-64Clone.vdi --resize 20000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize medium operation for this format is not implemented yet!

The page at DuckDuckGo’s first response for this VBox error says that resize operation is not permitted on guest OS’s that are of fixed size. Which mine is.

Oh, well.

In my Win7 VM I deleted a bunch of unnecessary files and folders, and reduced the size of the paging file, which solved the problem, more or less.

Since I only use Win7 to run a very few legacy programs, this should do me well enough.

Thanks Again! :)

-Sadhu

sabbe sattā bhavantu sukhitattā. LM 20.3-64 Cinn 5.2.7, Mobo: ASUSTeK STRIX B250G GAMING v, Dual core Pntm G4560, Intel Gfx. Laptop:ASUS, Core i3, 4G RAM Intel Gfx

User avatar

AndyMH

Level 20
Level 20
Posts: 11043
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SOLVED unable to resize virtualbox

Post

by AndyMH » Thu Apr 25, 2019 4:19 am

resize operation is not permitted on guest OS’s that are of fixed size.

I had the same problem which is why I had to clone the VM — I had also created a fixed size VM, so long ago — maybe missed something in the notes I made, unfortunately too long ago for me to remember. See if you can find any way to clone to a resizable image — last point of call try the VB forum.
https://forums.virtualbox.org/index.php … 195fc28ba7
Not as friendly as this forum, but you are more likely to get an informed response.

Is the rest of your win7 VM up and working?

  • Access to USB ports and USB3 drivers installed in win7
  • Passthrough set so you have access to the DVD/CD drive (if you have one)
  • Can run win programs from a shared folder — default is it won’t

Final note — do you run office inside win7, I was running office 2013, when I resized my win7 VM office complained it was a new install and I had to re-register it.

Homebrew i5-8400+GTX1080 Cinnamon 19.0, 4 x Thinkpad T430 Cinnamon 20.1, 2 x i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar

sadhu

Level 5
Level 5
Posts: 800
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: SOLVED unable to resize virtualbox

Post

by sadhu » Thu Apr 25, 2019 7:19 am

Hi Andy,

Years ago, long before the days of UTF8, I had to create 8-bit Pāḷi & Sanskṛt fonts for use in older editions of Pagemaker and Framemaker. Also I had some pretty hefty Word97 macros for creating and converting between fonts, creating MySQL insert and update queries based upon Calc 97 spreadsheets, and for converting specially-formatted documents (using specific paragraph styles) to plain-text HTML with CSS markup.

(f you’re curious about my work, see http://www.bps.lk/index.php. The library contains all the documents)

Now I’m doing some work with those old publications, so I’m needing Windows again.

My Win-7 VM is only 16GB, and now it only has 2.6GB free. Ṇot enough space for a robust pagefile.sis. The pagefile had grown to take up all the existing space, on the VM, so I had to delete it, find files and directories to delete, and resize the page file.

I can get away with such a small VM because all my data are in other partitions, all accessible to the VM. I can copy/paste between Mint and Win, but about CDROM and USB devices I don’t know, and frankly don’t care.

99.9% of my work is done in Mint, using Linux apps.

Thanks for all your help.
-Sadhu.
PS yes, I’m a bit of a Luddite at heart.

sabbe sattā bhavantu sukhitattā. LM 20.3-64 Cinn 5.2.7, Mobo: ASUSTeK STRIX B250G GAMING v, Dual core Pntm G4560, Intel Gfx. Laptop:ASUS, Core i3, 4G RAM Intel Gfx

User avatar

AndyMH

Level 20
Level 20
Posts: 11043
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SOLVED unable to resize virtualbox

Post

by AndyMH » Thu Apr 25, 2019 11:35 am

Luddite — I started with word for windows version 1 and excel when it was first available on a mac in the late ’80s :)

Homebrew i5-8400+GTX1080 Cinnamon 19.0, 4 x Thinkpad T430 Cinnamon 20.1, 2 x i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

User avatar

sadhu

Level 5
Level 5
Posts: 800
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: SOLVED unable to resize virtualbox

Post

by sadhu » Thu Apr 25, 2019 11:52 am

ever hear of the Kaypro computer, WordStar, Turbo Pascal, etc?

sabbe sattā bhavantu sukhitattā. LM 20.3-64 Cinn 5.2.7, Mobo: ASUSTeK STRIX B250G GAMING v, Dual core Pntm G4560, Intel Gfx. Laptop:ASUS, Core i3, 4G RAM Intel Gfx

User avatar

AndyMH

Level 20
Level 20
Posts: 11043
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: SOLVED unable to resize virtualbox

Post

by AndyMH » Thu Apr 25, 2019 11:59 am

Cut my teeth on wordstar in the early ’80s on a CP/M PC that cost me around £1,000. Wrote an order processing system for a local company, initially in dbase II, and then rewrote in Turbo Pascal, around 13k lines — this was about 1985 :D

Homebrew i5-8400+GTX1080 Cinnamon 19.0, 4 x Thinkpad T430 Cinnamon 20.1, 2 x i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate

Author: Gyro

Resize VirtualBox Disk Image – grow, expand, increase a .VDI disk image in 1 minute

Resize VirtualBox Disk Image — the easy and the hard way.Today I actually used up the 20GB of virtual disk space I set for the Windows XP I use for specific Windows Software. Who would have thought that an old Windows XP license would be useful again, eh? :)

After performing a quick search on how to manipulate an existing VDI file, I found a bunch of lengthy guides, all pretty much saying the exact same thing… create a new VDI, load the old and new VDI disk images into a Virtual Machine as a master and slave drive, boot with a gParted or equivalent BootCD image, and then clone the old disk to the new one… or in short: do a lot of steps that take forever, but not what I want: Resize VirtualBox Disk Image.

virtualbox

After flipping through the 10th or so guide, I realized that pretty much all of them were written in 2008… very unusual as bloggers usually write about the same subject on a yearly basis. That in mind, I search a bit more and… BINGO! Since VirtualBox 4 is out, there is a simple command line tool to resize VDI images. Man, those extra 5 minutes of searching just saved me from a lot of hassle and a huge waste of time.

Since I want to pass on this crucial bit of information, I hope mentioning that this article is about how to resize VirtualBox Disk Image in 1 Minute! will help to put this post up on the first page in google for people searching for this simple solution, and don’t think they have to go through all those steps mentioned in other guides on how to change the size of a vdi disk image file… your help in spreading the word about this article featuring a super easy way to resize VirtualBox disk image is very much appreciated :)

You CAN NOT resize a snapshot .vdi file.
If you use snapshots, you need to DELETE all of them before resizing the .vdi OR you could clone the latest snapshot .vdi to a new .vdi (automatically merging all existing snapshots into one): # VBoxManage clonehd fullpath/{uuid-of-last-snapshot}.vdi the-new-disk.vdi and link «the-new-disk.vdi» to your virtual machine.

THIS IS FOR VIRTUALBOX 4!
If you use VirtualBox Version 5, some syntax has changed. Please check near the bottom of the comment section to find out the correct command.

This is for VirtualBox Version 4 running on Linux, Mac, and Windows. I found the Mac solution in the comments, and there may be some more tips I may have missed to add here.

HERE WE GO:

Using Windows as a Host
Open the command prompt and enter:
# C:Program FilesOracleVirtualBoxVboxManage.exe modifyhd YOUR_HARD_DISK.vdi —resize SIZE_IN_MB

Using Mac as a Host
open a Terminal session (not sure if that is what it is called in Mac, hehe) and type:
# /Applications/VirtualBox.app/Contents/MacOS/VBoxManage modifyhd YOUR_HARD_DISK.vdi —resize SIZE_IN_MB

Using Linux as a Host
open a Terminal session and type:
# VBoxManage modifyhd YOUR_HARD_DISK.vdi —resize SIZE_IN_MB

YOUR_HARD_DISK.vdi could be something like:
«C:Virtual BoxesWindows XPWindows XP.vdi» OR
/Users/username/VirtualBox VMs/Litter/Litter.vdi OR
/home/username/VirtualBox VMs/WindowsXP/WindowsXP.vdi
SIZE_IN_MB would be 30000 for 30GB

If you get an error mentioning the VirtualBox COM server, start the VirtualBox Dashboard and make sure you have Administrator rights (command prompt as Administrator / not sure about Mac / sudo in Linux), then try again.

An alternative to using the path to the vdi file
open a Terminal session/command prompt and type:
# VBoxManage list hdds
you will see something like this:

UUID: 5ebf0266-4e9e-4b7e-b9f6-6d67514919c3

Using the above as an example:
# VBoxManage modifyhd 5ebf0266-4e9e-4b7e-b9f6-6d67514919c3 —resize SIZE_IN_MB

And that’s already all there is to it… I just wish they would include this in the GUI.


Note: You probably need to grow the partition to take up the space of the resized .vdi, look below and in the comments for some suggestions :)

If you have Linux installed as a guest, do this:
# sudo resize2fs /dev/sda1
If you get a message along the lines of: «filesystem is already x blocks», then you need to follow my comment from August 22, 2013 08:30

Here is probably the easiest way to grow the partition while Windows (7, Server 2008 R2, or newer) is running on the VirtualBox Guest.
Using Windows Guest System:
1. Right-click Computer and select Manage.
2. Double-click Storage.
3. Double-click Disk Management.
4. In the list, right-click the partition to expand and select Extend Volume.
5. Follow the prompts to resize the partition and click Finish. The partition item in the Disk Management pane displays its new size.
6. Close the Computer Management window

Should you be using a VirtualBox version older than VirtualBox 4 and are looking for a way to resize a VDI VirtualBox Harddisk file,  here are the articles I flipped through but luckily did not have to follow:

Increase the size of a .vdi file

http://www.my-guides.net/en/content/view/122/26/

Resize VirtualBox Disk Image vdi files to bigger size

Resize VirtualBox .VDI files to bigger size

How to Resize a VirtualBox vdi file

http://thestandardoutput.com/2011/05/how-to-resize-a-virtualbox-vdi-file/

Expand vdi virtualbox disk image

http://blog.markloiseau.com/2010/05/expand-vdi-virtualbox/

Grow a virtual drive, vdi Virtual box disk image

https://forums.virtualbox.org/viewtopic.php?f=3&t=17512
Source of the easy way:
http://www.webupd8.org/2011/02/how-to-easily-resize-virtualbox-40-hard.html

367855

Did you like my post? Buy me a Bitcoffee! 14JX52Li7zTKbyQv2omw4tvu6Bi1KzfHNW


View Full Version : [SOLVED] increase win7 guest from 25GB to 50GB


cmcanulty

October 18th, 2014, 01:16 AM

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

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:~$


TheFu

October 18th, 2014, 09:24 AM

/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.


cmcanulty

October 18th, 2014, 01:20 PM

257325Ok 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

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:~$


Elfy

October 18th, 2014, 01:39 PM

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


TheFu

October 18th, 2014, 01:42 PM

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/viewtopic.php?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.


cmcanulty

October 18th, 2014, 02:03 PM

OK that got it thanks!


Powered by vBulletin® Version 4.2.2 Copyright © 2023 vBulletin Solutions, Inc. All rights reserved.

Понравилась статья? Поделить с друзьями:
  • Vboxmanage error could not find a registered machine named
  • Vboxmanage error amd v is not available
  • Vboxautostart error user is not allowed to autostart vms
  • Vbox код ошибки e fail 0x80004005
  • Vbox e xml error