[SOLVED] Creating VDI in different folder than default

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Marvin0815
Posts: 7
Joined: 17. Mar 2009, 19:21
Contact:

[SOLVED] Creating VDI in different folder than default

Post by Marvin0815 »

Hi all,

I'm now undergoing severe experiences with VBoxManage on an headless machine ;). Unlike with the graphical frontend I found no way to create virtual harddisks in another folder than the default hdfolder with VBoxManage's createhd.
I need another location for this file cuz of the free space of my /home.

Is it possible to do so without permanent change of the property?

Thx in advance.

--marv
Last edited by Marvin0815 on 18. Mar 2009, 15:09, edited 1 time in total.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Creating VDI in different folder than default hdfolder

Post by vbox4me2 »

Edit the xml files or when creating the VDI browse to where it should store it.
Marvin0815
Posts: 7
Joined: 17. Mar 2009, 19:21
Contact:

Re: Creating VDI in different folder than default hdfolder

Post by Marvin0815 »

Sorry for misunderstanding. I meant using VBoxManage without X.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Creating VDI in different folder than default hdfolder

Post by vbox4me2 »

How about reading the manual? 8.4 VBoxManage createvm

Code: Select all

VBoxManage createvm         -name <name>
                            [-register]
                            [-basefolder <path> | -settingsfile <path>]
                            [-uuid <uuid>][/list]
Marvin0815
Posts: 7
Joined: 17. Mar 2009, 19:21
Contact:

Re: Creating VDI in different folder than default hdfolder

Post by Marvin0815 »

vbox4me2 wrote:How about reading the manual? 8.4 VBoxManage createvm
I had. Basefolder does not affect the virtual disk path IMHO.

I have an existing VM with an VDI in the standard path and I want to create a 2nd in a different location without changing the default value permanently.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Creating VDI in different folder than default hdfolder

Post by vbox4me2 »

VBoxManage createvdi -filename c:\otherpath\myvdi.vdi -size 60000
?

Code: Select all

VBoxManage createvdi        -filename <filename>
                            -size <megabytes>
                            [-static]
                            [-comment <comment>]
                            [-register]
                            [-type normal|writethrough] (default: normal)
Marvin0815
Posts: 7
Joined: 17. Mar 2009, 19:21
Contact:

Re: Creating VDI in different folder than default hdfolder

Post by Marvin0815 »

:oops:
Obviously it was so easy. I never thought about this before.

Thank You.Thank You.
Post Reply