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的更多相关文章

  1. RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools

    Lab 10 Understanding the Configuration Tools Sequence 1: Configuring the Network with system-config- ...

  2. 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 ...

  3. RH133读书笔记(2)-Lab 2 Working with packages

    Lab 2 Working with packages Goal: To gain working experience with package management System Setup: A ...

  4. RH133读书 笔记(4) - Lab 4 System Services

    Lab 4 System Services Goal: Develop skills using system administration tools and setting up and admi ...

  5. RH133读书笔记(8)-Lab 8 Manage Network Settings

    Lab 8 Manage Network Settings Goal: To build skills needed to manually configure networking Estimate ...

  6. RH133读书 笔记(3) - Lab 3 Configuring the kernel

    Lab 3 Configuring the kernel Goal: Develop skills tuning the /proc filesystem. Gain some experience ...

  7. RH133读书笔记(1)-Lab 1 Managing Startup

    Lab 1 Managing Startup Goal: To familiarize yourself with the startup process System Setup: A system ...

  8. RH133读书 笔记(5) - Lab 5 User and Group Administration

    Lab 5 User and Group Administration Goal: To build skills for user and group administration. Estimat ...

  9. 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 ...

  10. RH133读书笔记(9)-Lab 9 Installation and System-Initialization

    Lab 9 Installation and System-Initialization Goal: Successfully install Red Hat Enterprise Linux. Sy ...

随机推荐

  1. •当对自己的技术足够自信的时候,拼的就是RP和面试技巧了(转)

    前言 三月真是一个忙碌的季节,刚刚开学就需要准备各种面试和笔试(鄙视).幸运的是,在长达一个月的面试内推季之后,终于同时拿到了阿里和腾讯的offer,还是挺开心的.突而想起久未更新的博客,就冒昧学一学 ...

  2. SVN的命令行操作

    最近在进行svn二次开发,使用的是svnkit.看了很多svnkit的api,渐渐发现都是和SVN的命令行操作对应的.顺便研究一下svn的命名行操作. 1.将文件checkout到本地目录: 基本命令 ...

  3. hdu 3790 (最短路径问题dijkstra)

    主题链接:http://acm.hdu.edu.cn/showproblem.php?pid=3790 Problem Description 给你n个点,m条无向边,每条边都有长度d和花费p,给你起 ...

  4. VS解决BEX错误但不能关闭DEP保存

    报道近期计划BEX错误: 问题签名: 问题事件名称: BEX 应用程序名: Auth.exe 应用程序版本号: 0.0.0.0 应用程序时间戳: 546d9e0c 故障模块名称: Auth.exe 故 ...

  5. Activity详细解释(生命周期、以各种方式启动Activity、状态保存,等完全退出)

    一.什么是Activity? 简单的说:Activity或者悬浮于其它窗体上的交互界面. 在一个应用程序中通常由多个Activity构成.都会在Manifest.xml中指定一个主的Activity, ...

  6. hihocoder第42周 3*N骨牌覆盖(状态dp+矩阵快速幂)

    http://hihocoder.com/contest/hiho42/problem/1 给定一个n,问我们3*n的矩阵有多少种覆盖的方法 第41周做的骨牌覆盖是2*n的,状态转移方程是dp[i] ...

  7. ecshop2.7.3怎么自动清除缓存

    1.在ecs_shop_config表中插入一条数据 进入ECSHOP后台-数据库管理-SQL查询 复制下面SQL,粘贴到里面执行.注意这时是默认表前缀ecs_,如果你的修改过要和你的统一了. INS ...

  8. 使用ToggleButton和StackPanel+Border实现圆角开关按钮动画效果

    <ToggleButton Height=" HorizontalAlignment="Left" Margin="138,122,0,0" N ...

  9. WPF DataGrid_SelectChanged获取单元内容

    private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)        {          ...

  10. Cocos2d-x 脚本语言Lua中的面向对象

    Cocos2d-x 脚本语言Lua中的面向对象 面向对象不是针对某一门语言,而是一种思想.在面向过程的语言也能够使用面向对象的思想来进行编程. 在Lua中,并没有面向对象的概念存在,没有类的定义和子类 ...