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. Effective C++:条款38:通过一个复杂的模具has-a要么“基于一些实现”

    (一) public继承是"is-a"关联,"has-a"或"依据某物实现出(is-implemented-in-terms-of)"的意思 ...

  2. JS兼容的方式来获取浏览器的宽度

    <script type="text/javascript"> //need to wait until onload so body is available win ...

  3. SWT入门-常用组件的使用(转)

    转自:http://www.cnblogs.com/kentyshang/archive/2007/08/16/858367.html swt的常用组件button ,text ,combo,list ...

  4. Objective-C NSObject 的实现分析(2014-10-23更新)

    NSObject 的实现分析 转载请注名出处 http://blog.csdn.net/uxyheaven iOS 的 NSObject 类没有开源, 可是呢 runtime开源了,里面有个类 Obj ...

  5. pygame系列_游戏中的事件

    先看一下我做的demo: 当玩家按下键盘上的:上,下,左,右键的时候,后台会打印出玩家所按键的数字值,而图形会随之移动 这是客观上面存在的现象. 那么啥是事件呢? 你叫我做出定义,我不知道,我只能举个 ...

  6. OSGI学习总结

    最近的一项研究了解了一下OSGI技术,感觉OSGI尽管有一定的学习难度.可是终于掌握和推广之后将是一项对系统开发比較实用的技术.在此和大家分享一下自己的感悟. 1.什么是OSGI OSGI直译为&qu ...

  7. 怎样从Hadoop安全模式中进入正常模式

    问题: 在Hadoop中,新建一个文件夹,报错了,提示mkdir: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot c ...

  8. mysql多实例的配置(转)

    1.创建多实例的目录: mkdir -p /data/mysql/mysql_3307/{data,tmp,logs} mkdir -p /data/mysql/mysql_3308/{data,tm ...

  9. LeetCode 53 Spiral Matrix

    Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral or ...

  10. 将本地文件上传到指定的服务器(HttpWebRequest方法)

    将本地文件上传到指定的服务器(HttpWebRequest方法),通过文件流,带文件名,同文件一同上传的表单文本域及值. ///<summary> /// 将本地文件上传到指定的服务器(H ...