Build a CentOS environment in VirtualBox

Source: Internet
Author: User
Tags uuid centos iptables
Create a virtual machine

Open Virtual box, click the "New" button, click "Next", enter the VM name ESHOP-CACHE01, select the operating system for Linux, choose the version of Red Hat, allocate 1024MB of memory, the following options are all used by default, in virtual Disk file location and size, be sure to choose a directory to hold the virtual machine files, and finally click the "Create" button to start creating the virtual machine. set up the virtual machine NIC

Select the created virtual machine, click the "Settings" button, in the Network column, in the connection mode, select "Bridged Adapter". Installing the CentOS 6.5 operating system in a virtual machine

Select the created virtual machine, click the "Start" button, select the installation media (that is, the local CentOS 6.5 image file), you can also copy a person has been installed. Rebooting the system

After installation, CentOS will remind you to restart, that is reboot, you will be reboot. Configure the network

Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Remove Hwaddr, uuid,nm_controlled

Device=eth0
Type=ethernet
Onboot=yes
bootproto=dhcp

Service Network restart
Ifconfig

bootproto=static modified to static IP will not change
ipaddr=192.168.0.x host IP to and host IP on a network segment
netmask=255.255.255.0
gateway=192.168.0.1

Service Network Restart configuration hosts

Vi/etc/hosts
Configure the native hostname-to-IP address mapping configuration SecureCRT

In general, VM management software, virtual box, can be used to create and manage virtual machines, but generally do not directly in the VirtualBox inside to operate, because it is more troublesome, there is no way to copy and paste off the firewall

Service Iptables Stop
Service Ip6tables Stop
Chkconfig iptables off
Chkconfig Ip6tables off

Vi/etc/selinux/config
Selinux=disabled

Shut down the Windows Firewall

(10) Configuring Yum
Yum Clean All
Yum Makecache
Yum install wget resolves a problem with introducing a virtual machine report uuid

Tap the following command:
VBoxManage.exe internalcommands Sethduuid D:\centos02\centos6.4.vdi

Prompt for the following:
UUID changed to:0156199f-6e83-4cd6-97b7-c9e24d9cd26d

Related Article

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.