LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2017, 07:36 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Rep: Reputation: Disabled
virtualbox on slackware - I need more space!


I have installed Windows 7 in a Virtualbox on my Slackware system. I used mostly default options, including the space-dynamic hard drive. I interpret that option to mean that my vbox hard drive will grow as more space is required. Only, it doesn't. I just tried to install Sims 3 on it, and the game complained that I didn't have enough space. Should I just attach a second drive and hope for the best? I've got the space on my physical hard drive. I guess I'm looking for a little guidance on how to make my vbox dynamic-space drive do it's job...
 
Old 02-16-2017, 07:45 PM   #2
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
I installed a second fixed-size (25GB) onto my Windows 7 VM, but when I loaded Windows, I don't see the drive. Where is it? Windows said that it finished installing necessary drivers for my new device, but not what it is or where it is. The message went away too quickly for me to investigate further...
 
Old 02-16-2017, 07:48 PM   #3
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
You want a pass through disk, not a dynamic disk.
The dynamic disk only allocates what is used so it starts small and grows only as needed, up to its maximum size.
Passthrough disk isn't a specialized format, in certain use cases it can be slower however your entire hard drive is available to it so it will grow right up until disaster strikes...
Be advised

RE: The second disk, when you look a the virtualbox gui you're seeing it as an installed device and when you're looking at the windows device manager you're not seeing it as a mounted device?

Last edited by dijetlo; 02-16-2017 at 07:52 PM.
 
Old 02-16-2017, 07:50 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
The Virtual Box dynamic virtual hard drive will expand until it reaches the maximum size set when the settings for a particular VM were configured. VB's default settings for drive size tend to be rather small if you wish actually to use the VM to do actual computing.

A web search for "increase virtualbox dynamic hard drive size" will turn up a number of articles about how to resize the drive, but be warned that it's a tricky process and any crucial data you might have in that VM should be backed up outside of the VM.

It might be easier simply to recreate the VM with a large maximum HDD size. I normally
 
Old 02-16-2017, 07:53 PM   #5
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
It'll be awhile before it gets too big.
Code:
michael@caitlyn ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       811G   78G  692G  11% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G  984K  1.9G   1% /run
tmpfs           1.9G  972K  1.9G   1% /dev/shm
cgroup_root     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda5        98G  6.8G   87G   8% /home
cgmfs           100K     0  100K   0% /run/cgmanager/fs
I'm using the michael account for virtualbox access, but the actual files are outside of /home/michael. There are symbolic links inside /home/michael that point to the main filesystem (michael owns the directories where the actual VM files are as well,) as there is more room out there and I don't want to have to work with huge files in my daily backups.

Last edited by maschelsea; 02-16-2017 at 07:55 PM.
 
Old 02-17-2017, 05:27 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
It might be easier simply to recreate the VM with a large maximum HDD size. I normally
Simply, to me is:
Identify:
Code:
VBoxManage showhdinfo /path/to/hd.vdi
Implement:
Code:
VBoxManage modifyhd /path/to/hd.vdi --resize nnnnn
in the Windows guest, I believe you'll have to run Manage Disks or some such or look for a "Found new hardware" OSD, I'd expect
and proceed from there. It is not "auto-magic" and it won't just show up as "new space", if it's Dynamic.
but the new drive/volume should fire a notification on screen ("OSD").
Can't do squat 'til Windows "sees it".

Good Luck.
 
Old 02-17-2017, 12:03 PM   #7
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
I did this,and got an error:
Code:
michael@caitlyn ~ $ VBoxManage modifyhd VirtualBox\ VMs/Windows\ 7/Windows\ 7.vdi --resize 5000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize medium operation for this format is not implemented yet!
 
Old 02-17-2017, 03:06 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
VBoxManage modifyhd "VirtualBox VMs/Windows 7/Windows 7.vdi"...
 
Old 02-17-2017, 04:15 PM   #9
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Code:
michael@caitlyn ~ $ VBoxManage modifyhd "VirtualBox\ VMs/Windows\ 7/Windows\ 7.vdi" --resize 5000
VBoxManage: error: Could not find file for the medium '/home/michael/VirtualBox\ VMs/Windows\ 7/Windows\ 7.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 178 of file VBoxManageDisk.cpp
 
Old 02-17-2017, 04:46 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What do you think is causing that?
 
Old 02-17-2017, 05:13 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I always run vboxmanage list hdds first to see what I have, and then refer to HDDs by their UUID. You might find that easier.

So, for example,

vboxmanage modifyhd UUID --resize size_in_MB

Afterwards, boot up into the VM from a partition manager and resize the partition to the whole drive size.
 
Old 02-18-2017, 11:04 AM   #12
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Code:
michael@caitlyn ~ $ vboxmanage list hdds
UUID:           eac1f473-3b15-43fb-8527-8dfe4c4453d1
Parent UUID:    base
State:          locked write
Type:           normal (base)
Location:       /home/michael/VirtualBox VMs/Windows 7/Windows 7.vdi
Storage format: VDI
Capacity:       25600 MBytes
Encryption:     disabled
michael@caitlyn ~ $ vboxmanage modifyhd eac1f473-3b15-43fb-8527-8dfe4c4453d1 --resize 5000
VBoxManage: error: Failed to lock media when compacting '/home/michael/VirtualBox VMs/Windows 7/Windows 7.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "Resize(cbResize, pProgress.asOutParam())" at line 691 of file VBoxManageDisk.cpp
VBoxManage: error: Failed to resize medium!
 
Old 02-18-2017, 11:34 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
The status "locked write" should really read "created". You'll need to look at that, although I see from some examples on the web that sometimes no action is required.

But, more important than that, "Failed to lock media when compacting": why are you trying to reduce the size of the VDI from 25600MB to 5000MB? I thought that you wanted to expand it?

Last edited by hydrurga; 02-18-2017 at 11:35 AM.
 
Old 02-18-2017, 11:41 AM   #14
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
The status "locked write" should really read "created"
I think that could be because his vdi has maxed out, throw it a couple of bits and let's see if it flips back over.
 
1 members found this post helpful.
Old 02-18-2017, 11:51 AM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by dijetlo View Post
I think that could be because his vdi has maxed out, throw it a couple of bits and let's see if it flips back over.
That makes sense. Thanks, dijetlo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to allocate more space to installed slackware in virtualbox xiongnu Linux - Virtualization and Cloud 1 01-06-2016 12:41 PM
[SOLVED] VirtualBox requires 4.3GB drive space but 414GB is available ruthie84 Linux - Virtualization and Cloud 7 02-24-2013 12:00 PM
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-07-2012 11:28 PM
Virtualbox 50GB space partitioning scheme CrazyGuy158 Fedora 3 04-08-2012 03:26 AM
Disk Space for VirtualBox Clients bogzab Slackware 8 02-07-2012 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration