?
Introduction: VMware can run two or more windows, DOS, and Linux systems simultaneously on an individual local laptop machine. VMware uses a completely different concept than a "multi-boot" system. A multi-boot system can only run one system at a time, and the machine needs to be restarted when the system switches. VMware is truly "simultaneous" running, with multiple operating systems on the main system platform, just as the standard Windows application switches. And each operating system you can be virtual partition, configuration without affecting the real hard disk data, you can even use a network card to connect several virtual machines with a network card for a LAN, extremely convenient. Installed on the VMware operating system performance is much lower than the system directly installed on the hard disk, so it is more suitable for learning and testing.
The building environment is prepared as follows:
Because there is no physical machine to do the test, to learn the Hadoop build environment, in the local notebook to do several Linux virtual machine is a good choice.
Linux virtual machine ISO: Centos-6.2-x86_64-bin-dvd1.iso,centos-6.2-x86_64-bin-dvd2.iso.
Virtual Machine Platform Server version: Vmware-workstation-full-10.0.1-1379776.exe
PS: about the software, have the need to leave me a message left contact information, you can share to you , the software description is as follows:
Local Notebooks: T430I,6G memory, 64-bit operating system, configured as follows:
Here are the detailed steps:
1, install Vmware-workstation, go the next step, import CentOS, use ISO method to build Linux virtual machine.
2, select Path
3, select Multi-core
4, select 1G memory
5, choose how to connect the bridge
6. Select disk I/O mode
7, create a new virtual machine
8. Select the disk type
9, how the virtual machine files are stored
10. Set the virtual machine file storage path
11, complete open, error is as follows:
Could not prepare the install disc at E:\software\wmware\CentOS-6.5-x86_64-bin-DVD1.iso. Make sure, that is using a valid Linux install disc. If the error persists,you may need to reinstall VMware Workstation.
The reason is that the notebook does not turn on the Virtual Machine feature option, restart the notebook t430i, and then press and hold the F1 key, enter the BIOS settings, find the virtual option, set it to enable, and then save the exit.
Open Error: Edd:error 8000 Reading Sector 2073976
The reason: VMware Workstation 9, version is too old, upgrade to 10 version, OK.
12. Set the virtual machine network connection
12.1. Verify the virtual machine network connection
[[email protected] ~]# Ping www.baidu.com
Ping:unknown Host Www.baidu.com
[Email protected] ~]#
[[email protected] ~]# Ping 115.239.211.110
Connect:network is unreachable
[[Email protected] ~]
12.2, set the connection mode to NAT Mode
See if you can sisu the net, left click on the lower right corner of the notebook wireless icon, then click Open Network and Sharing Center, close VMnet01, only keep VMnet08, and then use the default IPV4 IP address 192.168.52.1
(1) Set yourself
Now start the virtual machine, go to the virtual machine operating system, set the virtual machine's network connection, set the IP to 192.168.52.11, the subnet mask is 255.255.255.0, the gateway is 192.168.52.1 (the gateway is the VMware Network Adapter VMnet8 the IP address of the virtual network card), DNS is set to the DNS of the Host network connection (the DNS that we connect to the extranet, I am using a wireless network connection, so I find the DNS of the wireless network connection is, if it is a broadband connection, is the local connection DNS), as follows:
[Email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Bootproto=none
Hwaddr=00:0c:29:ae:6b:a7
Ipv6init=yes
Nm_controlled=yes
Onboot=yes
ipaddr=192.168.52.11
netmask=255.255.255.0
Type=ethernet
gateway=192.168.52.1
dns1=192.168.180.254
Userctl=no
[Email protected] ~]#
and then restart Network
[Email protected] ~]# service network restart
Shutting down interface Eth0:device State:3 (disconnected)
[OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0:active connection state:activating
Active Connection path:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/1
state:activated
Connection activated
[OK]
[Email protected] ~]#
(2) DHCP mode to set up network automatically
[Email protected] ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Bootproto=dhcp
Hwaddr=00:0c:29:ae:6b:a7
Onboot=yes
Type=ethernet
[Email protected] ~]#
Restart Network Service
[Email protected] ~]# service network restart
Shutting down interface Eth0:device State:3 (disconnected)
[OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0:active connection state:activating
Active Connection path:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/3
state:activated
Connection activated
[OK]
[Email protected] ~]#
(3) Verify the network and use wget to download the Lib package as follows:
[Email protected] ~]# wget http://ftp.gnu.org/gnu/glibc/glibc-2.12.1.tar.gz
--2014-08-20 03:03:38--http://ftp.gnu.org/gnu/glibc/glibc-2.12.1.tar.gz
Resolving ftp.gnu.org ... 208.118.235.20, 2001:4830:134:3::b
Connecting to ftp.gnu.org|208.118.235.20|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:21119201 (20M) [Application/x-gzip]
Saving to:?. Libc-2.12.1.tar.gz?
100%[========================================================================================================== ===========================================>] 21,119,201 89.1k/s in 7m 23s
2014-08-20 03:11:03 (46.6 kb/s)-?. Libc-2.12.1.tar.gz?. Saved [21119201/21119201]
[Email protected] ~]#
[[email protected] ~]# Ping www.baidu.com
PING www.a.shifen.com (58.217.200.15) bytes of data.
Bytes from 58.217.200.15:icmp_seq=1 ttl=128 time=281 ms
Bytes from 58.217.200.15:icmp_seq=2 ttl=128 time=223 ms
Bytes from 58.217.200.15:icmp_seq=3 ttl=128 time=1925 ms
Bytes from 58.217.200.15:icmp_seq=4 ttl=128 time=1166 ms
Bytes from 58.217.200.15:icmp_seq=6 ttl=128 time=318 ms
^c
---www.a.shifen.com ping statistics---
6 packets transmitted, 5 received, 16% packet loss, time 5646ms
RTT Min/avg/max/mdev = 223.089/782.893/1925.305/668.220 ms, pipe 2
[Email protected] ~]#
OK, the virtual machine extranet connection is set up successfully.
13, clone another completely identical virtual machine
Install all the necessary software on the first virtual machine, such as the JDK, such as the MySQL, such as OpenSSL, such as Yum, Python, and so on. Then, through the VM-specific clone function, the nth virtual machine is copied quickly.
13.1, in the virtual machine NAME02 on the right-click Pop-up menu, tap " Management (M) " , then click on the Right drop-down menu " Cloning (C) " , as shown below:
13.2, continue to the next step
13.3, select Create Complete clone (F)
13.4, set the name and so on, click Finish
13.5, start copying, time is longer, wait patiently, as follows
Click the Close button to complete this Clone .
In using the same method, clone another data02 out as shown:
OK, the last 3 identical virtual machines are all set up to build the Hadoop environment, you can start the Big data learning journey.
From: http://blog.itpub.net/26230597/viewspace-1255651/