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 ...
随机推荐
- OpenStack镜像管理3
第三部分 OpenStack镜像管理 一.简介 很多源都有为OpenStack已经编译好的各种镜像了,您可以直接下载并通过使用这些镜像来熟悉OpenStack. 不过如果是为生产环境进行部署的话,您一 ...
- linux进程解析--进程的退出及销毁
一进程的退出: 当一个进程运行完毕或者因为触发系统异常而退出时,最终会调用到内核中的函数do_exit(),在do_exit()函数中会清理一些进程使用的文件描述符,会释放掉进程用户态使用的相关的物理 ...
- hdu 4472 Count (2012 ACM-ICPC 成都现场赛)
递推,考虑到一n可以由i * j + 1组合出来,即第二层有j个含有i个元素的子树...然后就可以了.. #include<algorithm> #include<iostream& ...
- http://fonts.googleapis.com/css?打开很慢解决方案
最近, 在写一个demo的时候突然发现加载超级慢, 寻找之下发现了"罪魁祸首", 系引用了http://fonts.googleapis.com/css. 接着在网上看到有网友反映 ...
- SQL Server 字段类型 decimal(18,6)小数点前是几位?记一次数据库SP的BUG处理
原文:SQL Server 字段类型 decimal(18,6)小数点前是几位?记一次数据库SP的BUG处理 SQL Server 字段类型 decimal(18,6)小数点前是几位? 不可否认,这是 ...
- 整理QTP知识之1
以下说明由网络其他文章整合而成. 一.关于QTP的说明 QTP是目前市场上占有率最高的一款自动化测试工具,也是每一位测试工作者最想掌握的工具之一,也是目前流行的基于GUI的功能自动化测试工具之一. Q ...
- 一些Android框架
从网上收集一些框架,敲代码偷懒这些框架非常实用,必须记下来,为了以后少写代码,用别人好的框架 ThinkAndroid ThinkAndroid(一个ThinkAndroid教程地址:http://m ...
- Python3.2官方文件翻译--课堂笔记和异常是阶级
6.7备注 有时喜欢Pasca在"录"和C中"数据体"的数据类型很实用.集合一些数据项. 一个空类定义能够清楚地显示: class Employee: pass ...
- 代写java程序qq:928900200
学校为全面提升学校教学质量,提高管理水平,决定开发一套小型成绩管理系统,实现以下功能.1) 系统用户分为管理员.教师和学生三种角色,每种角色都可以包含若干个用户.其中管理员登录后可以进行教师.学生 ...
- [Django](1093, "You can't specify target table 'fee_details_invoices' for update in FROM clause") 错误
dele_id = Fee_details_invoices.objects.filter(fee_detail_id__in=fee_id_list, return_type='2').values ...