LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2014, 09:37 AM   #16
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled

273, I have 122 GB free on my hard disk and still I got in trouble. Will try to unravel it all now. Thanks, - Alex
 
Old 09-01-2014, 10:22 AM   #17
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
273 hello. I finally found time to do what you suggested. So, I used the command from that page and this is the result:

Code:
alex@alex-VirtualBox:~$ VBoxManage modifyhd C:\users\Alex ********\VirtualBox VMs\Ubuntu-32-VM\Ubuntu-32-VM.vdi 16,000
Oracle VM VirtualBox Command Line Management Interface Version 4.1.12_Ubuntu
(C) 2005-2014 Oracle Corporation
All rights reserved.

Usage:

VBoxManage createhd         --filename <filename>
                            --size <megabytes>|--sizebyte <bytes>
                            [--format VDI|VMDK|VHD] (default: VDI)
                            [--variant Standard,Fixed,Split2G,Stream,ESX]


Syntax error: Invalid parameter '*******VirtualBox'
alex@alex-VirtualBox:~$
As you can see, I tried to double the size of the "disk." It is now set for 8,000 MB. The asterisks ****** stand for my last name. Nowhere I put in *******VirtualBox. They were separated by a backslash in the command. What did I do wrong? Thanks.
 
Old 09-01-2014, 11:06 AM   #18
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The command is
Quote:
VBoxManage modifyhd --resize
Also you have to be in directory where the vhd is stored.
 
Old 09-01-2014, 11:10 AM   #19
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Ah, sorry, the C:\ path is windows you will need to use the Linux path that will start with something like /home/Alex/Virtualbox.
I would also reccomend making the disk a little bigger. If it's a dynamic volume I would give it 20GB just to be sure but at least 10GB ought to be fine.
 
Old 09-01-2014, 11:40 AM   #20
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
273, thank you. How can I find the path to this file in the VM directory? I tried to search for Ubuntu-32-VM.vdi in VM and nothing matched it.
 
Old 09-01-2014, 11:58 AM   #21
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
The documebtation for VirtualBox is fairly good so search for the location of virtual machines. Also note anywhere it mentiones virtual hard disks and working with virtual media you find along the way.
Apologies but I'm not home with my own machine at the moment and don't have a standard setup to just be ablw to SSH in and check it out.
 
Old 09-01-2014, 12:36 PM   #22
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
VM's are hidden in /home
Quote:
ls -al
Or open FM & select show hidden.
 
Old 09-01-2014, 12:55 PM   #23
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
EDDI1 hi, This is what I got after using your command: ls -al

Quote:
-rw------- 1 alex alex 2124 Aug 24 15:59 .ICEauthority
drwxr-xr-x 3 alex alex 4096 Apr 30 18:36 .local
drwx------ 3 alex alex 4096 Apr 30 18:36 .mission-control
drwx------ 4 alex alex 4096 May 1 21:42 .mozilla
drwxr-xr-x 2 alex alex 4096 Apr 30 18:36 Music
drwxr-xr-x 2 alex alex 4096 Apr 30 18:36 Pictures
-rw-r--r-- 1 alex alex 675 Apr 30 18:10 .profile
drwxr-xr-x 2 alex alex 4096 Apr 30 18:36 Public
drwx------ 2 alex alex 4096 Aug 24 15:59 .pulse
-rw------- 1 alex alex 256 Apr 30 18:36 .pulse-cookie
-rw------- 1 alex alex 24576 Jun 29 12:49 .swp
drwxr-xr-x 2 alex alex 4096 Apr 30 18:36 Templates
drwx------ 3 alex alex 4096 Apr 30 18:37 .thunderbird
-rw-r----- 1 alex alex 5 Aug 24 15:59 .vboxclient-clipboard.pid
-rw-r----- 1 alex alex 5 Aug 24 15:59 .vboxclient-display.pid
-rw-r----- 1 alex alex 5 Aug 24 15:59 .vboxclient-draganddrop.pid
-rw-r----- 1 alex alex 5 Aug 24 15:59 .vboxclient-seamless.pid
drwxr-xr-x 2 alex alex 4096 Apr 30 18:36 Videos
-rw------- 1 alex alex 0 Aug 23 18:48 .viminfo
drwxrwxr-x 2 alex alex 4096 Sep 1 09:03 .VirtualBox
-rw------- 1 alex alex 60 Aug 24 15:59 .Xauthority
-rw------- 1 alex alex 6420 Sep 1 11:20 .xsession-errors
-rw------- 1 alex alex 73728 Aug 23 18:48 .xsession-errors.old
alex@alex-VirtualBox:~$
What shall I do next? Thanks, - Alex
 
Old 09-01-2014, 12:56 PM   #24
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
BTW, what does it mean: "Open FM and select show hidden?"
 
Old 09-01-2014, 01:13 PM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by AlexBB View Post
BTW, what does it mean: "Open FM and select show hidden?"
File Manager
Under View tab
My apologies
 
Old 09-01-2014, 01:18 PM   #26
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is the Host windows or linux?
Under Windows
http://serverfault.com/questions/365...vboxmanage-exe

Last edited by EDDY1; 09-01-2014 at 01:22 PM.
 
Old 09-02-2014, 07:33 PM   #27
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
The host is Windows 7. Many thanks for helping me. - Alex
 
Old 09-02-2014, 07:56 PM   #28
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Then VBox VM's are on windows system I wull check my wins machine for location when I get home.
 
Old 11-23-2014, 06:34 PM   #29
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Hi there, I am sorry to revisit this but back then I could not finish the task and other issues took my attention away from it. Now it is urgent for me to resize my Ubuntu. I want to give it at least 24 GB. I have tried various version of the commands and all keep giving me errors.

1. Command "VBoxManage modifyhd --resize" gives me an error that it needs an argument. I guessed that it is the size of the resize, so I added "VBoxManage modifyhd --resize 24576" It is still unhappy. It asks for UUID or the file name. As the file name I tried just about anything. Look:

[QUOTE][alex@alex-VirtualBox:~$ cd ..
alex@alex-VirtualBox:/home$ ls -al
total 12
drwxr-xr-x 3 root root 4096 Apr 30 2014 .
drwxr-xr-x 23 root root 4096 Aug 23 18:41 ..
drwxr-xr-x 32 alex alex 4096 Nov 16 09:29 alex
alex@alex-VirtualBox:/home$
..............................
VBoxManage modifyhd --resize
Syntax error: --resize: RTGetOpt: Command line option needs argument.
..............................
alex@alex-VirtualBox:/home$ VBoxManage modifyhd --resize 24576 drwxr-xr-x
<Every time I get errors here>
............................../QUOTE]

Those lines with the dots are just for better reading.

So, I am back to the square one.

I want to add that in the .pdf file for Oracle VirtualBox there is no clarity whatsoever. Look:

Quote:
modifyhd <uuid|filename>
[--type normal|writethrough|immutable|shareable|
readonly|multiattach]
[--autoreset on|off]
[--property <name=[value]>]
[--compact]
[--resize <megabytes>|--resizebyte <bytes>]
I have a question. What if I set up another virtual machine and transform all software from this one to the new one with a bigger memory?

Last edited by AlexBB; 11-23-2014 at 06:37 PM.
 
  


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
Deepin Update is Dead Slow. Can I use Ubuntu Update? yurmuki Linux Deepin 7 07-15-2014 11:41 AM
ubuntu software center in ubuntu 11.10 not running and update manager error quazisaad Linux - Newbie 2 11-30-2011 11:43 AM
LXer: Ubuntu Software Center Receives Major User Interface Update, More [Ubuntu 10.10 LXer Syndicated Linux News 0 06-29-2010 06:50 PM
why after every major update in Ubuntu new entries of Ubuntu are created at startup?? salfuser Linux - Newbie 4 01-12-2009 06:08 PM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 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