Hyper-V-Lab
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验1:安装Hyper-V并进行初始配置
练习1:安装Hyper-V
任务1:在Windows Server 2008 R2 中启用Hyper-V角色
1.作为实验中的一部分,实验环境的计算机需要硬件支持虚拟化,并启用No-Execute Bit.
2.以管理员身份登录到物理机。
3.点击Start,点击Administrative Tools | Server Manager。
4.Server Manager打开后,最大化窗口。
5.在details面板向下滚动,并点击Add Roles。
6. Add Roles Wizard出现后,点击Next。
7.在Select Server Roles页面,选择Hyper-V,并点击Next。
8.在Hyper-V页面,点击Next。
9.在Create Virtual Network页面,直接点击Next。
10.在Confirm Installation Selections页面,点击Install。
11.在Installation Results页面,点击Close。
12.当Add Roles Wizard对话框出现,点击Yes。
13.服务器重启后,以管理员身份登录。
14.当Resume Configuration Wizard出现时,回顾上面的信息,并点击Close。
任务2:浏览Hyper-V Manager
1. 点击开始菜单,点击Administrative Tools | Hyper-V Manager。
2. Hyper-V Manager窗口打开后,最大化窗口。
3. 在控制台树中,点击Hyper-V Manager。
4. 在details面板中,回顾在Introduction and Resources部分中的信息。
5. 在Actions面板中,点击Connect to Server。
6. 出现Select Computer对话框后,点击Cancel。
7. 在控制台树中,点击计算机名。
回顾details面板部分中的信息。
结果:在这个练习后,您将成功的安装Hyper-V角色并熟悉Hyper-V Manager。
实验2:配置Hyper-V和虚拟网络
练习1:配置Hyper-V服务器设置
任务1:配置Hyper-V服务器设置
1. 在G盘根目录下新建文件夹Hyper-V。
2. 打开Hyper-V Manager。
3. 在Actions面板,点击Hyper-V Settings。
4. 出现Hyper-V Settings对话框后,在Specify the default folder to store virtual hard disk files区域中,输入G:\Hyper-V。
5. 在左侧面板中,点击Virtual Machines。
6. 在Specify the default folder to store virtual machine configuration files区域中,输入G:\Hyper-V,点击OK。
结果:在这个练习之后,您将可以成功的配置Hyper-V服务器设置。
练习2:配置Hyper-V虚拟网络
任务1:配置Hyper-V和虚拟网络设置
1.在Actions面板,点击Virtual Network Manager。
2.在左侧面板中,点击已经存在的Virtual Network。
3.在Name区域,输入Enterprise。
4.在Connection type下面,点击External。
点击物理网络适配器,然后点击Apply。
5.如果Apply Networking Changes对话框出现,点击Yes。
6.在左侧面板中,点击New virtual network。
7.在右侧面板中,点击Internal,然后点击Add。
8.在Name区域,输入Test Environment。
9.在Connection type下面,点击Internal only,点击Apply。
10. 如果Apply Networking Changes对话框出现,点击Yes。
11. 在左侧面板中,点击New virtual network。
12. 在右侧面板中,点击Private,然后点击Add。
13. 在Name区域,输入Isolated。
14. 在Connection type下面,点击Private虚拟机网络,点击OK。
15. 如果Apply Networking Changes对话框出现,点击Yes。
结果:在这个练习之后,您将可以配置Hyper-V虚拟网络设置。
实验3:建立虚拟硬盘和虚拟机
练习1:建立新的虚拟硬盘
任务1:建立一个新的虚拟硬盘
1.打开Hyper-V Manager。
2.在Actions面板,点击New | Hard Disk。
3.出现New Virtual Hard Disk Wizard窗口,通过More about virtual hard disks链接回顾可用信息,点击Next。
4.在Choose Disk Type页面,在每一个虚拟硬盘类型之下回顾描述。
5.点击Dynamically expanding,点击Next。
6.在Specify Name and Location页面,在Name区域,输入SEA-WEB-01。
7.在Location区域旁边,点击Browse。
8.出现Select Folder对话框后,浏览到G:\Hyper-V\,点击OK,点击Next。
9.在Configure Disk页面,点击Create a new blank virtual hard disk。
10.在Size区域,输入250,点击Next。
11.在Completing the New Virtual Hard Disk Wizard页面,回顾设置,点击Finish。
12.点击Start,点击Computer。
13.浏览G:\Hyper-V,检查文件SEA-WEB-01.vhd已存在并注意文件的大小。
任务2:复制已经存在的虚拟硬盘
1.右键点击SEA-WEB-01.vhd,点击Copy。
2.点击Edit,点击Paste。
3.右键点击SEA-WEB-01 – Copy.vhd,点击Rename。
4.输入SEA-WEB-02,按回车。
5.最小化Windows浏览器。
练习2:建立新的虚拟机
任务1:建立虚拟机SEA-WEB-01
1.打开Hyper-V Manager。
2.在Actions面板中,点击New | Virtual Machine。
3.出现New Virtual Machine Wizard,回顾Before You Begin information中的信息,点击Next。
4.在Specify Name and Location页面,在Name区域,输入SEA-WEB-01,点击Next。
5.在Assign Memory页面,在Memory区域,输入512,点击Next。
6.在Configure Networking页面,在Connection列表中,点击Test Environment。
点击Next。
7.在Connect Virtual Hard Disk页面,点击Use an existing virtual hard disk。
8.点击Browse。
9.出现Open对话框窗口,点击SEA-WEB-01.vhd,点击Open。
10.点击Next。
11.在Completing the New Virtual Machine Wizard页面,回顾设置。
12.点击Finish。
任务2:向SEA-WEB-01添加第二个VHD文件
1.在Virtual Machines面板中,点击SEA-WEB-01。
2.在Actions面板中,在SEA-WEB-01,点击Settings。
3.出现Settings for SEA-WEB-01对话框,在左侧面板中,点击IDE Controller 0。
4.在右侧面板中,点击Hard Drive,点击Add。
5.在Media下面,点击Browse。
6.出现Open对话框,点击SEA-WEB-02.vhd,点击Open。
7.点击Apply。
任务3:挂接操作系统安装媒介
1.在左侧面板中,在IDE Controller 1下面,点击DVD Drive。
2.在右侧面板中,在Media下面,点击Image file。
3.点击Browse。
4.出现Open对话框,浏览到WSR2008R2.iso。
5.点击WSR2008R2.iso,点击Open。
6.在Settings for SEA-WEB-01对话框中,点击OK。
任务4:连接到虚拟机并安装Windows Server®2008
1.在Virtual Machines面板中,点击SEA-WEB-01。
2.在Actions面板中,点击Start。
3.在Actions面板中,点击Connect。
4.出现SEA-WEB-01 Hyper-V – Virtual Machine Connection窗口,当Install Windows向导出现,按两次回车。
5.在Type your product key for activation页面,点击Next。
6.出现Install Windows对话框,回顾信息,点击No。
7.在Select the edition of Windows that you purchased页面,点击Windows Server 2008 Enterprise (Server Core Installation)。
8.选择I have selected the edition of Windows that I purchased,点击Next。
9.在Please read the license terms页面,选择I accept the license terms,点击Next。
10.在Which type of installation do you want页面,点击Custom(advanced)。
11.在Where do you want to install Windows页面,点击Next。
现在会开始安装过程。
12.在Hyper-V主机上关闭SEA-WEB-01。
结果:在这个练习后,您将拥有一个基于上一个练习中的VHD建立的虚拟机,并正在安装Windows Server 2008。