[Solved] Specifying .vdi in terminal when the name has .(dot)

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
fell_loss
Posts: 2
Joined: 26. Sep 2017, 10:40

[Solved] Specifying .vdi in terminal when the name has .(dot)

Post by fell_loss »

Hi there,
Recently I realized that I am about to run out of memory to store my files, so I decided to increase the size of the virtual box's hard drive . In this case, I'm talking about a Linux Mint 18.2 hosted on a MAC . What I am doing is the following
1. Open terminal and write
cd /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS"
2. Then I copied: VBoxManage modifyhd --resize 250000 /Users/gloriamontoya/VirtualBox\ VMs/LinuxMint/Linux\ Mint 18.2.vdi

After that, this is what I got:
Oracle VM VirtualBox Command Line Management Interface Version 5.1.26
(C) 2005-2017 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifymedium [disk|dvd|floppy] <uuid|filename>
[--type normal|writethrough|immutable|shareable|
readonly|multiattach]
[--autoreset on|off]
[--property <name=[value]>]
[--compact]
[--resize <megabytes>|--resizebyte <bytes>]
[--move <path>]

Syntax error: Invalid parameter '18.2.vdi'

I suppose the error here has to do with the name of my .vdi since the extension it is followed by the .(dot) of ".2"

What could I do to solve this? I really need to expand my hard drive, and according to all the forums I've read so far this command should work for the resizing.

Thanks in advance.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Specifying .vdi in terminal when the name has .(dot)

Post by mpack »

You seem to be missing an '\' escape before the final space (" 18.2.vdi"), hence making the latter a separate (and unrecognized) parameter.

You might find it simpler to use quotes around filenames, instead of escaping every space. E.g. :-

Code: Select all

VBoxManage modifyhd --resize 250000 "/Users/gloriamontoya/VirtualBox VMs/LinuxMint/Linux Mint 18.2.vdi"
fell_loss
Posts: 2
Joined: 26. Sep 2017, 10:40

Re: Specifying .vdi in terminal when the name has .(dot)

Post by fell_loss »

Ohhh, it worked perfectly. So, at the end it didn't have anything to do with the dot of the file name.

Thank you so much! You made my day ;)
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: [Solved] Specifying .vdi in terminal when the name has .(dot)

Post by mpack »

I'm glad you got it working.
Post Reply