feisky

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

随笔分类 -  Xen

摘要:xm list源码分析XenAPI.py:442 parseServer():从/etc/xen/xm-config.xml读取配置,得到serverType: Xen-APIserverURI: http://localhost:9363/username: mepassword: mypasswordpython\xen\xm\main.py:2979 2979: main() 判断是否打印help 2956: xm_lookup_cmd() 查找命令对应的函数-->xm_list() 3003:_run_cmd 根据serverType: 如果Xen-API:server = Xe 阅读全文

posted @ 2011-11-27 15:16 feisky 阅读(1037) 评论(0) 推荐(0) 编辑

摘要:when executing "xm list" command, u may see this output below: [root@spark ~]# xm li Name ID Mem VCPUs State Time(s) 1-pv 1 256 1 ------ 1.5 2-pv 2 256 1 ------ 0.7 state line shows nothing, why? "I don't know why it's not progressing, but it's perfectly possible to have a 阅读全文

posted @ 2011-11-27 15:16 feisky 阅读(492) 评论(0) 推荐(0) 编辑

摘要:一、迁移的准备工作在进行迁移之前,有一些准备工作要做,主要是目的主机和源主机及其网络方面。下面分别加以介绍。首先,在源主机和目的主机方面,两者必须都运行有Xen和xend守护进程。必须确保目的主机具有足够的磁盘空间、内存容量和资源,以供迁移后的domain运行之用。此外,源主机和目的主机还必须具有相同的体系结构和虚拟化扩展,例如,如果源主机使用的是具有虚拟化扩展的x86-64体系结构的话,目的主机也必须如此。之所以这样做,是为了防止由于内核和用户库使用的指令集不匹配而导致domain迁移之后无法正常工作的情况。其次,在网络方面,要求源主机和目的主机还必须位于同一子网上。迁移domain时,如果 阅读全文

posted @ 2011-11-27 15:15 feisky 阅读(839) 评论(0) 推荐(0) 编辑

摘要:Domian 0 上运行配置相关的配置文件,运行下面命令: xm create example。进入Domain U 的创建过程;代码级别分析开始:首先对xm命令进行分析,找到xen/tools/python/xen/xm/main.py函数:def main(argv=sys.argv): 首先导入所有命令对应的处理函数:for c in IMPORTED_COMMANDS: commands[c] = eval_r('lambda args: xm_importcommand("%s", args)' % c)def xm_importcommand(c 阅读全文

posted @ 2011-11-27 15:09 feisky 阅读(644) 评论(0) 推荐(0) 编辑

摘要:本文对Xen平台上的软硬件攻击进行了分类,每类攻击给出了简单的攻击方法,实际上黑客、病毒等的攻击方法和攻击手段远不止于此,这里只是对一些常见的攻击手段进行了分类总结。首先是对Xen平台上的硬件安全威胁进行总结。lCPU方面的威胁:1)攻击者通过CPU microcode更新修改microcode,导致CPU执行指令是以为当前处于特权级(ring 0),从而攻击者能够非法访问Hypervisor的物理内存。2)恶意VM控制CPU cache内容,致使CPU无意中执行cache中修改了的Hypervisor代码。3)攻击者修改BIOS中的SMI handler,拥有足够权限执行SMM下的代码修改H 阅读全文

posted @ 2011-11-26 15:09 feisky 阅读(525) 评论(0) 推荐(0) 编辑

摘要:1.DELL R710 CPU: e5504 官方称支持INTER的VT技术,但我装32位和64位的系统都不认cpu都不支持vmxBIOS中需要打开VT支持 processor settings --> virtualization technology --> enable2.Centos5.5(x64) 不支持 DELL R710 集成的声卡,造成客户端没有声音戴尔服务器PowerEdge售后服务电话800-858-0960 官方告知:DELL 全系列服务器(除工作站都是不支持声卡的,显卡是集成的)安装USB声卡解决问题3.用什么来集中管理和监控Xen、KVM虚拟机?convi 阅读全文

posted @ 2011-11-26 15:07 feisky 阅读(900) 评论(0) 推荐(0) 编辑

摘要:xm list中几种状态的含义使用xm list命令,得到的结果中,state段能列出6中XenDomain的状态,State为下面的其中一个。r–运行Domain正在CPU里面运行b–阻塞domain阻塞,意味这个domain不处于运行或者可运行的状态。导致这种状态可能是因为domain正在等待IO(atraditionalwaitstate)或者因为闲置而已经处于sleep状态。p–暂停domain处于暂停状态,通常是因为管理员运行了xmpause命令。处于暂停状态的domain依旧会占用系统资源,比如内存。但是不会被Xenhypervisor列出(butwillnotbeeligible 阅读全文

posted @ 2011-11-26 15:06 feisky 阅读(685) 评论(0) 推荐(0) 编辑

摘要:Xen虚拟机的创建和启动半虚拟化获取Sample Image到Jailtime.org下载,并解压(注默认root密码为password)# tar jxvf centos.5-0.20070424.img.tar.bz2centos.5-0.imgcentos.5-0.xen2.cfgcentos.5-0.xen3.cfgcentos.swap当然,也可以到http://www.rpath.com/rbuilder下载创建配置文件参考centos.5-0.xen2.cfg和centos.5-0.xen3.cfg,其内容为:kernel = “/boot/vmlinuz-2.6.18-xen” 阅读全文

posted @ 2011-11-26 15:04 feisky 阅读(1243) 评论(0) 推荐(0) 编辑

摘要:使用virt-install 创建Xen虚拟机[root@gmnode14 vm01-CentOS-5.5]# virt-install -n vm01-CentOS-5.5 -r 1024 --vcpus=4 -f vm01-CentOS-5.5.img -s 20--nographic-l nfs:10.10.113.14:/opt/CentOS/mirrors/5.5-------------------------virt-install 参数解析:-nvm01-CentOS-5.5#虚拟机的名称,这里我们的名称是vm01-CentOS-5.5-r 1024#虚拟机的最大内存,单位MB 阅读全文

posted @ 2011-11-26 15:02 feisky 阅读(1193) 评论(2) 推荐(0) 编辑

摘要:libvirt获取实际内存的实现libvirt可以通过virDomainGetInfo()来得到虚机信息: struct virDomainInfo{ unsigned char state : the running state, one of virDomainState unsigned long maxMem : the maximum memory in KBytes allowed unsigned long memory : the memory in KBytes used by the domain unsigned short nrVirtCpu : the number 阅读全文

posted @ 2011-11-26 14:57 feisky 阅读(1094) 评论(2) 推荐(0) 编辑

摘要:启动虚机报错:Error: Boot loader didn't return any data!Usage: xm start <DomainName>Start a Xend managed domain -p, --paused Do not unpause domain after starting it -c, --console_autoconnect Connect to the console after the domain is created --vncviewer Connect to display via VNC after the domain 阅读全文

posted @ 2011-11-26 14:43 feisky 阅读(870) 评论(1) 推荐(0) 编辑

摘要:XenAPI方式:#!/usr/bin/pythonfromxen.xm.XenAPIimportSessionsession=Session('httpu:///var/run/xend/xen-api.sock')try:session.login_with_password('','')xenapi=session.xenapi#print xenapi.VM.get_all_records()#print xenapi.VM_metrics.get_all_records()printxenapi.VM.get_all()printxen 阅读全文

posted @ 2011-11-23 22:21 feisky 阅读(1856) 评论(0) 推荐(0) 编辑

摘要:xend的安装路径xend的python源码路径:/usr/lib64/python2.4/site-packages/xen/配置文件路径:/etc/xenxenstore生成的数据库文件路径:/var/lib/xenstored/tdb 阅读全文

posted @ 2011-11-23 22:15 feisky 阅读(415) 评论(0) 推荐(0) 编辑

摘要:http://markmail.org/ 阅读全文

posted @ 2011-11-19 11:32 feisky 阅读(440) 评论(0) 推荐(0) 编辑

摘要:Credit调度算法的基本原理Credit调度算法是自Xen3.0版本以来使用的缺省的调度算法,其为一种按比例公平共享的非抢占式调度算法。Credit调度算法为每一个Guest操作系统设置二元组(weight,cap),各个Guest操作系统之间weight的比例决定它们各自占用CPU时间片的比例;而cap决定一个Guest操作系统用CPU时间的上限值,比如cap=50,表示Guest操作系统只能最多只能占用半个物理CPU的所有时间,cap=100,表示Guest操作系统只能最多只能占用一个物理CPU的所有时间。Credit调度算法将各个虚拟CPU分为两个队列,under队列和over队列,它 阅读全文

posted @ 2011-11-19 11:29 feisky 阅读(2978) 评论(0) 推荐(0) 编辑

摘要:Xen Live Migration with iSCSIOverviewThis is a document about how to set up XEN and iSCSI on 3 Debian Stable (3.1 / Sarge) machines so that you can have a virtual host that can be migrated live between 2 of the machines. The third machine will be the common disk for the virtual machine that is seen 阅读全文

posted @ 2011-11-12 20:48 feisky 阅读(483) 评论(0) 推荐(0) 编辑

摘要:If you ever want to get to the grub menu while using pygrub - there is a really simple way of doing that. Just add : bootargs="-i"into the /etc/xen/{domU config file}. And the next time you start the VM, it will bring up the grub menu. Quite handy when you need to recover the root password 阅读全文

posted @ 2011-11-12 20:43 feisky 阅读(334) 评论(0) 推荐(0) 编辑

摘要:* Export necessary system variables:# export XEND_DEBUG=1# export XEND_DAEMONIZE=0* Start xend tracing:# /usr/sbin/xend trace_startThe trace file will be available at /var/log/xen/xend.trace.* Debug xend using the Python Debugger:# python -m pdb /usr/sbin/xend trace_startYou'll drop to a debuggi 阅读全文

posted @ 2011-11-12 20:32 feisky 阅读(558) 评论(0) 推荐(0) 编辑

摘要:udevis the device manager for the Linux 2.6 kernel series. Primarily, it manages device nodes in/dev. It is the successor of devfs and hotplug, which means that it handles the/devdirectory and all user space actions when adding/removing devices, including firmware load. The system is divided into th 阅读全文

posted @ 2011-11-12 20:29 feisky 阅读(577) 评论(0) 推荐(0) 编辑

摘要:I'm looking for some definite info about when it's allowed to restartthe various Xen daemons (xend, xenstored and xenconsoled).Up to now I worked with the assumption that I can restart them whileguest domains are running on the host and there's no harm done.Indeed there wasn't, until 阅读全文

posted @ 2011-11-12 20:25 feisky 阅读(706) 评论(0) 推荐(0) 编辑

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