LinuxQuestions.org
Review your favorite Linux distribution.
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 08-06-2009, 07:04 AM   #1
zeusthegod
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
Size of VM in Linux


I am using ubuntu 9.04(X64) and i want to create a VM using VirtualBox. The problem is finding the maximum size of the VM. I use 2 partitions , one root 36GB, and one /home 36Gb . I want to know what is the maximum size that VM can have, and , from where is taking the VM the allocated space.


My configuration is :
Intel Core 2 Quad 8200 2.33Ghz
Ram 4Gb 1333
HDD 250GB.
4 partition
2 of 37 and 2 of 82.



"God of war hates those who hesitate".
"For those with feellings life is a tragedy , for those without, a comedy".

Last edited by zeusthegod; 08-06-2009 at 07:06 AM.
 
Old 08-06-2009, 07:49 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
I believe VirtualBox will allow a 2TB VM and to some extent that may be a limitation of the filesystem more than virtualbox.
Eitherway, your requirements will easily be met.
When you create a VM, you have the option to have it allocate all the disk space immediatley, or, allocate it as necessary.
If you allocate immediatley, the setup time will be a little longer because it creates a single file of the size of all the partitions you assign. If you allocate as needed, your VM will "think" it has all it's disk presented, but the actual VM will only be as big as the total amount of space the VM is using and will grow as more files are created within the VM.
 
Old 08-06-2009, 08:14 AM   #3
zeusthegod
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
What u told me there i know.

No man , i mean that from where is taking the VM the memory size.
Example :
I want to create a VM with 60gb HDD. How do i know it will work?
Because i create another VM with dynamic size of 200gb and after a while it gave me an error saying that i do not have enough memory and if i want to resume the machine i must free some memory. That's my problem.
And i want to know how u cand configure the sata partitions, i have sata port 0 , port 1...etc. I want to know the utility of that. For the VM of course.

Last edited by zeusthegod; 08-06-2009 at 08:15 AM. Reason: i forgot something
 
Old 08-06-2009, 10:24 AM   #4
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
Using the virtualbox interface, you go into the "Virtual media manager" section. In that screen you add "virtual hdd's". The virtual hdd's are nothing more than files on your HDD - in whatever mount you put them (/home /mnt /root /opt ...wherever). When you create a new VM, you select what virtual HDD to use.

In your configuration you mentioned above, you said your computer has a 250GB HDD.
In your last response, you then said you created a dynamically sized VM of 200GB that eventually ran out of space.
If you created that virtual HDD in your home folder and your /home is only a 50GB partition (for example), then yes, I can see it would run out of space if you continued to add files to that VM or you continued to fill up your /home on the real server.

Also keep in mind, that creating dynamic virtual hdd's will allow you to create a HDD that is larger than available disk on the partition you selected to create it. For example, I often test kickstart scripts for servers on my laptop (<20GB available disk) where I create a 1.5TB dynamic disk so the kickstart script will work, but the OS install only ever actually uses 3GB of space.

If you want to be sure you have the disk, then create a fixed-sized storage virtual disk and not a dynamic disk. That way the disk will be allocated immediately and if you don't have the space, it will error out.

Last edited by zQUEz; 08-06-2009 at 10:26 AM.
 
Old 08-06-2009, 10:55 AM   #5
zeusthegod
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah, i got it.

Thankx , i discover myself after i searched the entire google and test my entire hdd. I realised this is the idea, but after i create 2 VM to see what happents. Thankx again.
 
  


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
Extended a LV size, but df shows orig size, using DEBIAN ETCH, on a AMD64 hector3rd Linux - Newbie 8 04-23-2008 05:36 AM
/proc/kcore size doesn't match with physical ram size cash_05 Linux - Newbie 2 06-01-2005 01:23 PM
making x.org virtual size match up with actual size tommyj27 Linux - Software 0 11-16-2004 06:53 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

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

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