1 選擇模板,進行克隆
2 進入歡迎頁面,“下一步“
3 選擇克隆源
4 克隆類型“完整克隆”
5 輸入虛擬機名稱以及保存的路徑
6 點擊“完成”,完成克隆操作
克隆完后,網絡,機器名會有很多問題,真正使用需要如下解決
7 使網絡可用
7.1 查看網卡的mac地址
7.2 查看設備名
[root@centos65-template ~]# vi /etc/udev/rules.d/70-persistent-net.rules
7.3 修改網卡配置
[root@centos65-template ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
注意hwaddr地址和1,2步驟處對應,device和2步驟處對應,ip地址設置網絡唯一地址
8 增加業務用戶(假設hadoop用戶)
[root@centos65-template ~]# groupadd hadoop [root@centos65-template ~]# useradd hadoop -g hadoop [root@centos65-template ~]# passwd hadoop
9 設置用戶為sudo
出現如下問題
Linux下is not in the sudoers file解決方法
我們使用sudo命令切換用戶的時候可能會遇到提示以下錯誤:xxx is not in the sudoers file. This incident will be reported,xxx是你當前的用戶名,究其原因是用戶沒有加入到sudo的配置文件里
9.1 切換到root用戶,運行visudo命令
9.2 在打開的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行
xxx ALL=(ALL) ALL 其中xxx是你要加入的用戶名稱
9.3 輸入:wq保存並退出配置文件,再次使用sudo命令就不會有上面的提示了。

[hadoop@centos65-template ~]$ cd [hadoop@centos65-template ~]$ mkdir .ssh [hadoop@centos65-template ~]$ ssh-keygen -t rsa
10.2 拷貝秘鑰文件到authorized_keys.設置ssh目錄的權限
[hadoop@centos65-template ~]$ cat .ssh/id_rsa.pub >> .ssh/authorized_keys [hadoop@centos65-template ~]$ chmod 700 .ssh [hadoop@centos65-template ~]$ chmod 600 .ssh/*
10.3 ssh嚴格模式設置為no



