feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Xen

摘要:首先创建虚拟机的数据卷和swap卷:#lvcreate -L 128m -n newvm-swap xenvg#lvcreate -L 4g -n newvm xenvg使用virt-clone复制:#virt-clone -o testvm -n newvm -f /dev/xenvg/newvm -f /dev/xenvg/newvm-swapCloning testvm-disk | 4.0 GB 01:39 Cloning testvm-swap | 128 MB 00:01 Clone 'newvm' created successfull... 阅读全文

posted @ 2013-02-04 16:21 feisky 阅读(382) 评论(0) 推荐(0) 编辑

摘要:1. Install xen-toolsaptitude install xen-tools工具包中包含以下工具: /usr/bin/xen-create-image /usr/bin/xen-create-nfs /usr/bin/xen-delete-image /usr/bin/xen-list-images /usr/bin/xen-update-image 在自动化管理xen虚拟机时都会用到以上几个命令,在创建虚拟机时主要使用xen-create-image命令,它主要调用以下几个命令: /usr/bin/xt-customize-image 创建镜像安装虚拟机 /usr/bin/x 阅读全文

posted @ 2013-02-04 16:18 feisky 阅读(1084) 评论(0) 推荐(0) 编辑

摘要:Many people know that Amazon Web Services are one of the big players in the cloud computing business, and especially their Infrastructure as a Service offering EC2 is becoming increasingly popular. Few people know that EC2 is probably one of the biggestXeninstallations deployed. But how many know ho 阅读全文

posted @ 2013-02-03 17:39 feisky 阅读(360) 评论(0) 推荐(0) 编辑

摘要:xm new出来的虚机会在/var/lib/xend/domains目录下建立一个以虚机UUID为名称的目录,内部放着虚机的配置文件;而xm create出来的虚机则不会。​ls /var/lib/xend/domains | wc -lxm li | grep -v Domain | grep -v Name | wc -l 阅读全文

posted @ 2013-01-24 13:05 feisky 阅读(533) 评论(0) 推荐(0) 编辑

摘要:xend报错:[2012-02-06 13:43:39 15439] INFO (XMLRPCServer:134) Opening TCP XML-RPCserver on localhost:9363; authentication has been disabled for this server.[2012-02-06 13:43:39 15439] INFO (XMLRPCServer:156) Opening Unix domainsocket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been 阅读全文

posted @ 2013-01-24 12:32 feisky 阅读(620) 评论(0) 推荐(0) 编辑

摘要:#!/bin/bash# Generate vm configuration file for already running vms## Execute 'xm new -F test.cfg' to create vm using generated config## By feiskyvms=`xm li | grep -v Name | grep -v Domain-0 | awk '{print $1}'`for vm in $vmsdo xm li -l $vm > $vm.cfgdone 阅读全文

posted @ 2013-01-23 23:17 feisky 阅读(581) 评论(0) 推荐(0) 编辑

摘要:虚机配置文件中增加:extra="single" 阅读全文

posted @ 2012-06-11 14:07 feisky 阅读(488) 评论(0) 推荐(0) 编辑

摘要:xm list和xl list显示内存不一致的问题 在xen4.1.2上一台windows虚机碰到这个问题: # xm list test6 Name ID Mem VCPUs State Time(s) test6 16 512 2 -b---- 158.0 # xl list test6 Name ID Mem VCPUs State Time(s) test6 16 2048 2 -b---- 158.6 同一台虚机,用两个不同的工具查看,内存居然差了将近2GB。 由于xm和xl的实现机制不同,所以从源码分析开始,分别查看xm list和xl list的源码 xm list: 前文(h. 阅读全文

posted @ 2012-04-13 17:16 feisky 阅读(1387) 评论(0) 推荐(0) 编辑

摘要:Xen 4.2 will contain two new scheduling parameters for the credit1 scheduler which significantly increase its confurability and performance for cloud-based workloads:timeslice_msandratelimit_us. This blog post describes what they do, and how to configure them for best performance.TimesliceThe timesl 阅读全文

posted @ 2012-04-11 13:01 feisky 阅读(1011) 评论(0) 推荐(0) 编辑

摘要:xen-4.1.2+Linux-3.1.2源码编译安装以下所有命令均在CentOS6.2系统上操作。下载xen源码wget http://bits.xensource.com/oss-xen/release/4.1.2/xen-4.1.2.tar.gz安装必备软件包yum groupinstall "Development Libraries"yum groupinstall "Development Tools"yum install transfig wget texi2html libaio-devel dev86 glibc-devel e2fs 阅读全文

posted @ 2012-04-10 21:10 feisky 阅读(3034) 评论(0) 推荐(0) 编辑

摘要:在xen4.1之前,通过设置/etc/xen/xend-config.sxp中的(network-script network-bridge)可以让xend来自动设置网桥。但是xen4.1之后不建议这么做:When using thexltoolstack the host networking configuration is not configured by the toolstack but rather administrators are required to setup an appropriate network configuration using the tools p 阅读全文

posted @ 2012-04-10 21:01 feisky 阅读(1242) 评论(1) 推荐(0) 编辑

摘要:You should always dedicate fixed amount of RAM for Xen dom0.This can be done by specifying "dom0_mem=512M" option for Xen hypervisor (usually xen.gz) in grub.conf/menu.lst. This makes sure the initial size of memory allocated for dom0 is 512 MB (replace with the amount of memory you want), 阅读全文

posted @ 2012-04-10 21:00 feisky 阅读(590) 评论(0) 推荐(0) 编辑

摘要:All low-level memory operations go through Xen.Guest OSes are responsible for allocating and initializing PTs for processes (restricted to read only access)allocates and initialize a page and register it with Xen to serve as the new PTDirect page writes are intercepted, validated and applied by the 阅读全文

posted @ 2012-04-09 15:51 feisky 阅读(1178) 评论(0) 推荐(0) 编辑

摘要:xm migrate源码分析xen动态迁移虚机的命令为:xm migrate --live <domain id> <destination machine>迁移的原理Xen live migration begins by sending a request, orreservation, to the target specifying the resources the migrating domain will need. If the target accepts the request, the source begins theiterative prec 阅读全文

posted @ 2012-04-05 15:34 feisky 阅读(1619) 评论(0) 推荐(0) 编辑

摘要:aws架构的总结http://openfoo.org/blog/amazon_ec2_underlying_architecture.htmlMany people know that Amazon Web Services are one of the big players in the cloud computing business, and especially their Infrastructure as a Service offering EC2 is becoming increasingly popular. Few people know that EC2 is pro 阅读全文

posted @ 2012-03-29 10:09 feisky 阅读(516) 评论(0) 推荐(0) 编辑

摘要:Xen的Live Migration可以使得一个虚拟机在不停止服务的情况下从一台服务器迁移到另一台服务器上,该功能的好处不言而喻。当然Live Migration的执行过程很复杂,这里,我们研究一下内存是如何迁移到另一台服务器上的,实际上这相当于在不同的物理机器之间进行进程上下文的切换,这是该“Migration”被誉为“Live”的核心。那就是内存热拷贝,见下图:(1)源主机中内存的使用情况(2)将源主机的内存拷贝到目标主机,在此过程中源主机的内存发生了改变,但不会所有内存都发生改变。(3)将发生改变的内存拷贝到目标主机,在此过程中源主机继续改变。(4)这样重复的对发生改变的内存进行拷贝,直 阅读全文

posted @ 2012-03-23 15:02 feisky 阅读(700) 评论(0) 推荐(0) 编辑

摘要:Generate vm configuration file for already running vms#!/bin/bash# Generate vm configuration file for already running vms## Execute 'xm new -F test.cfg' to create vm using generated config## By feiskyvms=`xm li | grep -v Name | grep -v Domain-0 | awk '{print $1}'`for vm in $vmsdo xm 阅读全文

posted @ 2012-03-13 18:25 feisky 阅读(802) 评论(0) 推荐(0) 编辑

摘要:Use xm block-list <domid> to find the cdrom be-path for the domain, for example:localhost:~# xm block-list 3Vdev BE handle state evt-ch ring-ref BE-path768 0 0 1 -1 -1 /local/domain/0/backend/vbd/3/768 5632 0 0 1 -1 -1 /local/domain/0/backend/vbd/3/5632Having identified the cdrom d... 阅读全文

posted @ 2012-03-13 18:25 feisky 阅读(464) 评论(0) 推荐(0) 编辑

摘要:How to set up Xen DomU as Windows 2008 Server on a CentOS Dom0 machine?Start using the normal way that you usually do when you install a HVM domU, whether it'svirt-manager/virt-install or using manually-created config file. One additional thing to note is that for64bit HVM domUs you need to make 阅读全文

posted @ 2012-03-13 18:24 feisky 阅读(301) 评论(0) 推荐(0) 编辑

摘要:What is STUBDOM ?Stubdoms are lightweight 'service' or 'driver' domains. The initial purpose was to offload qemu (for hvm guests) out of dom0. So with stubdoms you can run hvm guest qemu in a separate stubdom, which boosts performance and makes it more secure. stubdoms can also run f 阅读全文

posted @ 2012-03-13 18:19 feisky 阅读(734) 评论(0) 推荐(0) 编辑

无觅相关文章插件,快速提升流量