How do I install virtual box on harddrive #2?

Archived topics about LMDE 1 and LMDE 2
Locked
Lewish
Level 1
Level 1
Posts: 10
Joined: Tue Nov 01, 2016 8:01 pm

How do I install virtual box on harddrive #2?

Post by Lewish »

OK, I have 3 hard drives:
#1 80 GB installation drive/boot
#2 1.5 TB drive
#3 1.5 TB drive

Drives #2 & #3 are installed as LVM and mount at boot. There is not enough room on the boot drive to install virtualbox with a 100 GB virtual disk.

How do I get VirtualBox to see drive #2 and allow me to install it there?

Thanks to anyone who can show me how to do this. I have tried all the suggestions I can find anywhere on the internet.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: How do I install virtual box on harddrive #2?

Post by Cosmo. »

You cannot define the place, where the application gets installed. But you can define in the global settings of VB, where the virtual machines get installed.
Lewish
Level 1
Level 1
Posts: 10
Joined: Tue Nov 01, 2016 8:01 pm

Re: How do I install virtual box on harddrive #2?

Post by Lewish »

Thanks.

Yes, I know the application gets installed in specific places. I am trying to find out how to install the virtual drive on HD #2.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: How do I install virtual box on harddrive #2?

Post by Cosmo. »

At the place I told you. Open the preferences from the VB Manager, the questioned setting is on the first page (general).
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How do I install virtual box on harddrive #2?

Post by Flemur »

I couldn't find a place in any VB GUI to *move* (or redefine location) the install data (virtual machine) after creating it, so edited

~/.config/VirtualBox/VirtualBox.xml (src=... portion):

Code: Select all

<MachineRegistry>
      <MachineEntry uuid="{63cc52e8-af97-47bc-b85c-cf3218ad512e}" src="/mnt/DATA/vbox/vmwindows/vmwindows.vbox"/>
</MachineRegistry>
(Yes, it says "do not edit this file...", but no problems)

And

Code: Select all

$ pwd
/mnt/DATA/vbox/vmwindows
/$ ls -l
total 10287148
drwx------ 2 user user        4096 Dec 28 14:35 Logs
drwx------ 2 user user         4096 Dec 28 14:36 Snapshots
-rw------- 1 user user        12986 Dec 28 14:36 vmwindows.vbox
-rw------- 1 user user        12929 Dec 28 14:36 vmwindows.vbox-prev
-rwxrwxrwx 1 user user  10533994496 Dec 28 14:36 vmwindows.vdi
$ 
Note size of vmwindows.vdi.

Edit:
There is not enough room on the boot drive to install virtualbox with a 100 GB virtual disk.
That's over 10X the size of a Win7 install without data a bunch of data...and you don't need to keep data in the VB install, it can access the rest of your linux system (the parts you specify).
How do I get VirtualBox to see drive #2 and allow me to install it there?
If you can't create it where you want to, create then move it.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “LMDE Archive”