Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of installation CentOS7 instance of VirtualBox virtual machine

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "VirtualBox virtual machine installation CentOS7 instance analysis". The editor shows you the operation process through the actual case, and the operation method is simple, fast and practical. I hope this article "VirtualBox virtual machine installation CentOS7 instance analysis" can help you solve the problem.

Add a virtual machine

1. Create a new virtual machine and select linux,red hat (centos is the open source release of the red hat distribution) with a name of your own.

Ps: click the drop-down box in the name column to specify the save location.

two。 Allocate memory, my computer memory is 8g, here set 4G.

3. Select create Virtual hard disk now.

4. Select vdi as the file type.

5. Dynamic allocation.

6. I set the hard disk size to 50g. The 50g here is the upper limit of the available hard disk size of the virtual machine, and how much you actually use depends on how many programs, files, and so on you put in it, rather than setting 50 to occupy 50, so don't be afraid. On the contrary, if the setting is small, it seems that it cannot be increased in the later stage. So . . Think for yourself.

7. Once all set up, you can see the virtual machine you added in the left column.

8. Then select the system mirror.

Select the virtual machine you just added, [Settings]-"[Storage] -" [Controller]-"assign the CD-ROM drive and click the drop-down icon to select your system image.

Ps: since we didn't have the system installed when we started for the first time, we need to add a system image here, and then monitor it to enter the system installation interface. You can delete it later, whatever you want.

Just start it at last.

Install centos 7

1. This is the interface after entering the system. You can choose either the first or the second, the second is to check the integrity of your system image before installing, one is to install directly.

two。 Choose the language and continue.

3. At this point, roll to the bottom to set up the network.

4. Then go back and turn on Internet time.

5. Then it's time to set the partition. The default is automatic partitioning.

6. We chose to partition manually. Click [I want to configure Partition]

The "automatic creation" here is equivalent to automatic partitioning. You can click to have a look.

Here first briefly talk about linux file format and partition related knowledge. (quote "linux Concise tutorial")

1. Brief introduction of linux file format

Ext2: it is a standard file system in gnu/linux system, which is characterized by excellent performance of accessing files and showing advantages for small and medium-sized files, which is mainly beneficial to the excellent design of its cluster cache layer. This is the most widely used file system in linux and is designed for linux with extremely fast speed and minimal cpu usage. Ext2 can be used not only in standard block devices (such as hard disks), but also in removable storage devices such as floppy disks.

Ext3: file system, which belongs to a journaling file system and is an extension of the ext2 system. It is compatible with ext2, and the conversion from ext2 to ext3 is not complicated, just keeping the format of ext2 plus logging function. Ext3 is a kind of journal file system (journ al file system). The most important feature is that it records the write action of the entire disk in a certain area of the disk completely, so that it can be tracked back if necessary. When a certain process is interrupted, the system can directly backtrack and reorganize the interrupted part according to these records, and the reorganization speed is quite fast. Ext4: an extended journal file system for ext3 systems, the fourth edition of the original extended file system (ext or extfs) developed specifically for linux.

Ext4: the fourth extended file system is the next generation of journaling file systems that are backward compatible with the previous generation file system ext3. Ext4 has made a lot of changes in performance, scalability, and reliability to support a 1 eb file system. Introduced into the 2.6.19 kernel. Ubuntu9.04 began to support the ext4 file system.

Linux swap: it is a swap file system dedicated to swapping partitions in linux, which is equivalent to the virtual memory in windows. Linux uses this entire partition as swap space. Generally speaking, the swap partition in swap format is twice the size of main memory. When there is not enough memory, linux writes some of the data to the swap partition.

Vfat:vfat is called the long file name system, which is a linux file system compatible with the windows system, supports long file names, and can be used as a partition for exchanging files between windows and linux. Reiserfs: there is also a log function, which is fast when dealing with small files. Xfs: stable and efficient, with excellent performance in a mixed system of large and small files jfs: features the least use of cpu resources

2. Recommend zoning method

/ swap is usually twice the amount of memory, and it's no use dividing it up. Allocate it according to the size of your memory.

/ this is the root partition. 10g is enough.

/ boot is divided into 128m

/ home is the storage of your files, which is divided into the maximum remaining space, so make sure the / home partition is at the back or front.

Note: separate / home, if you reinstall the system, you can delete or delete the root partition /, / boot partition, / swap partition, as long as do not move the / home partition, your personal data will not be lost. When installing the system, be sure to choose your original / home partition and suspend it, so that the system knows that you still need to use the original / home partition. About remounting the / home partition: when remounting the system to the hard disk partition step, keep the / home partition and delete the swap,/,/boot partition and re-partition. Find the original / home partition, in the pop-up menu "Edit Partition", "New Partition capacity" remains the same, in "for" select your original partition format, do not check "format Partition", "mount point" select "/ home", personal data will not be lost.

You can start adding partitions.

Finally, post my own settings.

Ps: finally, the / home partition is added. The capacity is not filled at this time, which means that all the remaining space is used by default.

All right, you can [start the installation].

This is the end of the introduction to "CentOS7 instance Analysis of VirtualBox Virtual Machine installation". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report