LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Size of VM in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/size-of-vm-in-linux-745549/)

zeusthegod 08-06-2009 07:04 AM

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".

zQUEz 08-06-2009 07:49 AM

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.

zeusthegod 08-06-2009 08:14 AM

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.

zQUEz 08-06-2009 10:24 AM

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.

zeusthegod 08-06-2009 10:55 AM

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.


All times are GMT -5. The time now is 12:47 PM.