VirtualBox important configuration files and configuration programs

Source: Internet
Author: User
Previously, I installed VirtualBox to run the Linux Virtual Machine and set up 4 GB memory at the beginning. The result cannot be changed later. the result is that when the machine is started, the memory is increased to 40%, and VirtualBox is opened, it is directly increased to 95%. then open a database and open an EBS service, so you don't need to do anything else. how to modify the memory allocation of VirtualBox virtual machines

Previously, I installed VirtualBox to run the Linux Virtual Machine. When I started to set it, I set it to 4 GB memory. Later, I couldn't change it. the result is that when the machine is started, the memory is increased to 40%, and VirtualBox is opened, it is directly increased to 95%. then open a database and open an EBS service, so you don't need to do anything else. how to modify the memory allocation of VirtualBox virtual machines

Previously, I installed VirtualBox to run the Linux Virtual Machine. When I started to set it, I set it to 4 GB memory. Later, I couldn't change it. the result is that when the machine is started, the memory is increased to 40%, and VirtualBox is opened, it is directly increased to 95%. then open a database and open an EBS service, so you don't need to do anything else.

How can I modify the memory allocation of a VirtualBox VM? There is a utility that can be directly modified:

cd C:\Program Files\VirtualBoxVBoxManage.exe modifyvm "EBS R12 RUP8" --memory "2048"

You can directly adjust the memory allocation to 2 GB, so that the memory overhead on Linux will not be so large. Even if the database EBS is fully open, the physical memory will only reach more than 70%;

So what has this program modified? Let's take a look at the two configuration files below;

1. there is an invisible directory under the User directory. virtualBox, which has two important files: VirtualBox. xml and VirtualBox. xml-prev. the other one is a backup file, so you don't need to worry about it. Let's look at the content in the previous one:

 
 
   
      
         
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
        
       
         
          
        
       
         
          
          
        
       
         
            
           
        
       
       
     
  
 

Two virtual machines, EBS R12 RUP8 and ubuntu_server, are defined ". it also specifies the configuration file location, vdi file location, ip address, and so on for the two virtual machines. This is the VirtualBox configuration file. The following shows the specific virtual machine configuration file, taking "EBS R12 RUP8" as an example, the configuration file of this virtual machine is
G:/VMs/EBS R12 RUP8/EBS R12 RUP8.vbox
We can find two files under this directory. One is the. vbox file, and the other is the. vbox-prev file. The backup file is not needed;

In this configuration file

    
       
          
           
           
           
           
           
           
         
        
        
        
        
        
          
           
           
           
   ...
  
 

You can see the words Memory RAMSize = "2048" in this place. This is where the VBoxManage.exe program was modified.

You can also directly modify this file, but the file comment tells us not to manually modify it. So let's change it through the honest utility or interface;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.