RH133读书笔记(10)-Lab 10 Exploring Virtualization
Lab 10 Exploring Virtualization
Goal: To explore the Xen virtualization environment and the creation of a Domain-U virtual machine.
Sequence 1: Installing the Xen Virtualization Environment
Deliverable: A Red Hat Enterprise Linux system running the Xen virtualization environment.
Instructions:
1. Using yum, install the packages needed to set up the Xen virtualization environment:
kernel-xen, xen, and virt-manager. Do not forget to configure yum since we just re-installed our system.
cd /etc/yum.repos.d/
wget http://server1/pub/gls/server1.repo
yum -y install kernel-xen xen virt-manager
2. Edit the grub.conf file to make the xen kernel boot by default.
a. If the Xen kernel is the first kernel listed in /boot/grub/grub.conf, then edit that file to set default=0.
3. Reboot to the xen kernel.Verify that the kernel name has "xen" in it using the uname command.
a. [root@stationX]# reboot
Note that several item mays fail including kdump and Intel microcode.
b. [root@stationX]# uname -r
2.6.18-8.el5xen
Sequence 2: Creating a Domain-U Virtual Machine
Deliverable: A Domain-U virtual machine running Red Hat Enterprise Linux
Instructions:
1. Using virt-manager create a new virtual machine using the following configuration information:
a. System Name: vm1
b. Install Media URL: ftp://server1/pub
c. Kickstart URL: ftp://server1/pub/gls/vm1.cfg
d. VM Max Memory: 256 MB
e. VCPUS: 1
f. Simple File with File Location: /var/lib/xen/images/vm1.img
To create the new virtual machine, do the following:
a. Run the Virtual Machine Manager.
[root@stationX]# virt-manager
b. When the Open Connection dialog appears, select Local Xen host and click Connect.
c. The Virtual Machine Manager window will open. Start the new virtual system
wizard by selecting New Machine... from the File menu. Click Forward.
d. For System Name enter vm1 and click Forward.
e. Select Paravirtualized and click Forward.
f. For Install Media URL enter ftp://server1/pub. For Kickstart URL enter
ftp://server1/pub/gls/vm1.cfg. Click Forward.
g. Select Simple File, enter /var/lib/xen/images/vm1.img as the File Location, and set the File Size to 2000 MB. Click Forward.
h. Set . Click Forward.
i. Review the summary screen and click Finish to boot and kickstart the new virtual machine.
j. A new New Keyring Password dialog will open. Enter redhat as the password. Click OK.
k. A window will open and a text kickstart install will run. When the installation finishes, select Reboot in the virtual machine's window.
Sequence 3: Starting and Managing Domain-Us
Scenario: It is now time to boot up the newly created virtual system by using the xm create command.
Deliverable: The new virtual system it up and running.
Instructions:
1. Use the xm create command to boot up the newly-created virtual system.
a. [root@stationX]# xm create vm1
2. Once vm1 is up, login and find your IP address.
a. [root@stationX]# xm console vm1
b. Login as root.
c. [root@vm1]# ip a
inet 192.168.0.Y
3. In another terminal window ping vm1 domain and leave the ping running.
In your original terminal window pause and unpause the vm1 domain. Note that it stops responding to pings when it is paused and starts as soon as it is unpaused.
a. In a separate terminal:
[root@stationX]# ping 192.168.0.Y
b. [root@stationX]# xm pause vm1
c. [root@stationX]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 736 1 r----- 353.6
vm1 4 256 1 --p--- 13.6
d. [root@stationX]# xm unpause vm1
4. Close the Virtual Machine Manager.
RH133读书笔记(10)-Lab 10 Exploring Virtualization的更多相关文章
- RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools
Lab 10 Understanding the Configuration Tools Sequence 1: Configuring the Network with system-config- ...
- RH033读书笔记(5)-Lab 6 Exploring the Bash Shell
Lab 6 Exploring the Bash Shell Sequence 1: Directory and file organization 1. Log in as user student ...
- RH133读书笔记(2)-Lab 2 Working with packages
Lab 2 Working with packages Goal: To gain working experience with package management System Setup: A ...
- RH133读书 笔记(4) - Lab 4 System Services
Lab 4 System Services Goal: Develop skills using system administration tools and setting up and admi ...
- RH133读书笔记(8)-Lab 8 Manage Network Settings
Lab 8 Manage Network Settings Goal: To build skills needed to manually configure networking Estimate ...
- RH133读书 笔记(3) - Lab 3 Configuring the kernel
Lab 3 Configuring the kernel Goal: Develop skills tuning the /proc filesystem. Gain some experience ...
- RH133读书笔记(1)-Lab 1 Managing Startup
Lab 1 Managing Startup Goal: To familiarize yourself with the startup process System Setup: A system ...
- RH133读书 笔记(5) - Lab 5 User and Group Administration
Lab 5 User and Group Administration Goal: To build skills for user and group administration. Estimat ...
- RH133读书笔记(6) - Lab 6 Adding New Filesystems to the Filesystem Tree
Lab 6 Adding New Filesystems to the Filesystem Tree Goal: Develop skills and knowlege related to par ...
- RH133读书笔记(9)-Lab 9 Installation and System-Initialization
Lab 9 Installation and System-Initialization Goal: Successfully install Red Hat Enterprise Linux. Sy ...
随机推荐
- tomcat开始批量——setclasspath.bat
除了上述两批,另一个重要的脚本,那是,setclasspath.bat.它主要负责查找.检查JAVA_HOME和JRE_HOME两个变量. ****************************** ...
- Maven + Jetty + Jersey搭建RESTful服务
IntelliJ IDEA + Maven + Jetty + Jersey搭建RESTful服务 本文参考以下内容: 使用Jersey实现RESTful风格的webservice(一) Starti ...
- 在ubuntu安装Phabricator(转)
前言: Phabricator是facebook团队进行codereview的一个工具,是基于php进行开发的.界面简洁优雅,是团队做代码评审的好帮手.个人认为,是当前最好的code review平台 ...
- 寻找失踪的整数数组(Find the missing integer)
排列a包含N分子,其元素属于[0,N]之间,且不存在反复的元素.请你找出数组中缺失的元素(由于[0,N]之间有N+1个元素.而数组仅仅能存储N个元素.所以必定缺少一个元素).当中对数组的操作满足下列的 ...
- html 跳转页面,同时跳转到一个指定的位置
比如我现在 a.html 的时候,我想跳转到 b.html ,并且是 b.html 的某一个位置,用 <a href=>, a.html里: <a href="b.html ...
- 强大的PropertyGrid
PropertyGrid, 做工具一定要用这东西..... 把要编辑的对象看成类的话, 全部要编辑的属性就是成员 嗯嗯, 近期看了几眼Ogitor, 它对于PropertyGrid的使用就非常不错 全 ...
- Android数据库高手秘籍(五)——LitePal的存储操作
转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/39345833 经过前面几篇文章的学习,我们已经把LitePal的表管理模块的功能都 ...
- Windows Phone开发(37):动画之ColorAnimation
原文:Windows Phone开发(37):动画之ColorAnimation 上一节中我们讨论了用double值进行动画处理,我们知道动画是有很多种的,今天,我向大家继续介绍一个动画类--Colo ...
- 多线程——达到Runnable介面
部分博客(多线程--继承Thread类)介绍了java多线程的第一种实现方法--继承Thread类.这篇博客介绍另外一种方法--实现Runnable接口,并实现run方法. 还用上篇博客的样例.如今用 ...
- Windows Phone开发(3):棋子未动,先观全局
原文:Windows Phone开发(3):棋子未动,先观全局 在进行WP开发之前,与其它开发技术一样,我们需要简单了解一个WP应用序的生命周期,我们不一定要深入了解,但至少要知道在应用程序生命周期内 ...