Service computing cloud environment configuration lab report 1--

experiment procedure

  1. Install VirtualBox

 

 

 

 

 

 

    • Configure VirtualBox virtual machine storage location, to avoid virtual machine storage location can not be found, especially the consumption of valuable disk space launch
      • VirtualBox menu: Management -> Global Settings, General page

  • Personal default virtual machine storage location: C: \ Users \ Administrator \ VirtualBox VMs

Since the larger capacity tray computer C skip this step

    • Creating a virtual network inside a virtual machine, so that Vbox inside a virtual machine can use it to achieve between virtual machines, virtual machine and the host communication
      • VirtualBox menu: Administration -> Network Host Manager, create a virtual network card assigned URL: 192.168.100.1/24

 

 

 

      • Enter ipconfig you can see the VirtualBox Host-Only Network # ?: card in the host windows command line window

  • You can use the command line, or view the properties of the network link directly: You can see VirtualBox Host-Only Network # 3 properties are as follows

 

 

 Then delete the # 2 also feel little effect, directly below the # 3 to # 2 is deleted changed the 192.168.100.1

 

 

 

 

  1. Create a Linux virtual machine (with CentoOS as a case)

    • Download Linux distribution mirror.
      • If Centos , need only Minimal ISO ; if it is, please download Ubuntu desktop and server

      • Ali cloud OPSX download

    • Create a virtual machine VBox. Virtual machine name recommendations for centos-xxx or ub-xxx name, if the wizard can not create a 64 bit virtual machine, replace the computer !!!
      • Recommend virtual machine CPU, memory default. If the desktop version, CPU recommended that the number of 1-2, the memory of not less than 2G

      • Display, memory default. If the desktop version, the bigger the better memory

      • Storage, not less than 30G. Avoid future expansion difficult.

      • Network, a first network adapter must be the NAT; second card connection mode: Host-Only, the interface card is previously created virtual

    • Base mounting a virtual machine, e.g. centos-base. The use of virtual machine replication virtualization software, to avoid the pain every time you install OS system
      • Follow the prompts to install, until completion

  • Here I chose ubuntu, before learning more familiar with one hand are more Ubuntu, on the other hand try to dress CENTOS, yum install wget command has been a problem, the problem is traced in the past yum command, and look for a long time do not know the reason Why not simply have even the Internet, ping Baidu can not recognize, we do chose Ubuntu, I turned around and asked the students CENTOS the details.

  • The Internet to find more detailed installation steps, so enhancing tools installed, and this is after the successful installation interface

 

 

 

      • Upgrade the OS kernel
  • Here is some problem when I configured source 163, so look for the source blog configure the USTC, speed is also good, download the Google browser did not spend much time, if future experiments influential do replacement

      • Check the network card configuration

        • Configuration of the network interface UI nmtui, a second NIC address configuration

        • ping a host, for example: ping 192.168.100.1

 

 

 

      • Exit and close the virtual machine

    • Install Virtual Machine
      • Click centos-base select Copy, enter the name of the new virtual machine, you must pay attention to choose to re-initialize the MAC addresses of all network cards

      • Then choose Copy Link

      • Configuring the host name and a second NIC

        • Use nmtui modify the host name and IP address of the second network card

        • Restart

        • On the host, you should be able to ping this address, and can access the virtual machine via ssh (windows need to start git bash)

      • If you use vim or emacs

        • Install vim or emacs

        • Install C ++ development tools

      • If you use a desktop centos

        • Reconfigure the virtual machine CPU, memory, video memory

        • Start the virtual machine

        • Desktop install yum groupinstall "GNOME Desktop"

        • Start the target set for the desktop ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

        • Restart

  • Previous similar steps described above is not elaborated supra

        • Install VirtualBox Enhancements
        • Install Chrome browser
  1. Configured with the remote desktop access to your virtual machine

  • Here I have a total of four virtual machine configuration, port numbers are 5000,5001,5002,5003, ub-zlb port is currently running 5001, IP host is 172.19.1.199, and then turned on to maintain the virtual machine, IP remote access by host

 

 

 

 

 

 

 

 

Select Yes to enter:

 

 

Some of the above operation applies only host (Hosted) environment as window 10, the installation operation CentOS 7.

Some connections available for reference:

to sum up:

The above is my Ubuntu cloud environment configuration process in the VirtualBox environment, and finally the successful completion of each step, but a little disappointed that the configuration centos repeated failures, so I will try to do as much as possible, for both of which are configured successfully, then also the way compare the performance difference between the two systems. The reason for the failure in centos yum and networking environment is primarily a problem, since not even the beginning of networking, there is no way to update and download repolist = 0, find a blog tone for the whole day, there is no graphical interface is not very good operation turned to Ubuntu was quickly done, but remind students of this course could be better used centos, so the next time I have free plans to try several times.

Guess you like

Origin www.cnblogs.com/AilsaEvans/p/11484702.html