feisky

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

随笔分类 -  Xen

摘要:How to identify DomU's ip without login to it1. Find domU's mac:localhost:~# xm network-list 5 | grep -v MAC | awk '{print $3}'00:16:3e:03:47:362. Find domU's bridgelocalhost:~# brctl showbridge name bridge id STP enabled interfaceseth0 8000.1c6f650addfe no vif5.0 peth0virbr0 800 阅读全文

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

摘要:Table of Contents1. General FAQs2. Further HOWTOs1.General FAQsCommon Xen problems.1.1.How to limit dom0 cpu number?1.2.How to prevent xen from rebooting when panic?1.3.How to escape from an vm console?1.4.What is the domain builder in the guest configure file?1.5.How to access virtual console tty0 阅读全文

posted @ 2012-03-12 20:42 feisky 阅读(549) 评论(0) 推荐(0) 编辑

摘要:One really great feature of Xen is that there are several choices of toolstacks that can be used to manage it. Before the introdcution of libxenlight, there was a complicated and inefficient toolstack situation. The issue was that xend, xapi, libvirt, etc. all needed to manage many common low-level 阅读全文

posted @ 2012-02-18 13:43 feisky 阅读(598) 评论(0) 推荐(0) 编辑

摘要:We're happy to announce XenMaster, which has the ambitious goalto become the de facto frontend for Xen with XCP.We've had the opportunity to present our project to some of the Xen/XCP developers and now it's time to announce the project to a larger public.XenMaster, in short, is a HTML5 阅读全文

posted @ 2012-02-12 14:09 feisky 阅读(353) 评论(0) 推荐(0) 编辑

摘要:IntroductionToMiniosApplicationsMini-OS现有应用介绍Mini-OS是跟随Xen hypervisor发布的一款小内核操作系统,目前有一些基于Mini-OS的应用:HP实验室在2007年发布了基于Mini-OS的Xen Library OS;2008年剑桥大学进一步完善了HP的工作,完成了HVM stubdom并置于Xen源码树中;伊利诺伊大学芝加哥分校(UIC)正致力于开发一款基于Mini-OS的小内核系统—Ethos。Mini-OS 启动简介arch_init()trap_init()init_mm()Xen Library OSXen Library 阅读全文

posted @ 2012-02-04 16:11 feisky 阅读(1630) 评论(0) 推荐(0) 编辑

摘要:xen支持的块设备1. 物理块设备(Dom0中的物理块设备,如逻辑卷) phy:/dev/cdrom phy:/dev/xenvg/vm12. 磁盘镜像 file:/root/tst.iso(使用loopback) nbd: ip_port (网络块设备) tap:cdrom:/dev/sr0(CD设备) tap:aio:/path/file (blktap) tap:qcow:/mnt/disks/sles10sp1.iso.qcow(QEMU磁盘镜像) tap:vmdk:/mnt/disks/sles10sp1.iso.vmdk(Vmware磁盘镜像)3. ISCSI设备:... 阅读全文

posted @ 2012-01-31 11:53 feisky 阅读(1101) 评论(0) 推荐(0) 编辑

摘要:换过一个版本的xen之后,重新编译源代码重新启动出现Kernel panic - not syncing: Attempted to kill init!解决办法:initrd镜像没有更新,重新生成下initrd的镜像(针对2.6.18.8的到boot目录下执行如下命令:mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18.8-xen.img 2.6.18.8-xen),再次启动就可以了参考:http://hi.baidu.com/%B0%B5%D4%C2%C1%F7%B9%E2/blog/item/ 阅读全文

posted @ 2012-01-18 21:29 feisky 阅读(452) 评论(0) 推荐(0) 编辑

摘要:hvm tap vs vifPV虚机只有一个vifX.N,而HVM虚机不安装PV Driver的时候会有两个网络接口vifX.N和tapX.N,而且实际上使用的是tapX.N。HVM虚机安装PV Driver并重启后,tapX.N会消失,使用vifX.N(若不重启还是使用tapX.N)tap interfaces -> qemu-emulated NICs (realtek model by default), usedwhen no PV drivers installed (using OS' own driver for that model)vif interfaces 阅读全文

posted @ 2012-01-18 21:15 feisky 阅读(736) 评论(0) 推荐(0) 编辑

摘要:xen3.4.3源码编译1.Xen Hypervisior安装安装必备软件包# yum groupinstall "Development Tools"# yum install hmaccalc ncurses-devel zlib-devel openssl-devel python-devel \bridge-utils libtool-ltdl iasl xorg-x11-drv-evdev xorg-x11-drv-fbdev \xorg-x11-drv-i810-devel xorg-x11-drv-via-devel xorg-x11-proto-devel 阅读全文

posted @ 2012-01-18 21:02 feisky 阅读(1241) 评论(0) 推荐(0) 编辑

摘要:xm create对应的Xen-APIvcpu-list: server.xenapi.VM.get_all() server.xenapi.VM.get_record server.xenapi.VM_metrics.get_record server.xend.domains_with_state(False, 'all', False) server.xend.domain.getVCPUInfo 对power_state过滤,得到最终的b----状态console: console.execConsole(domid) xen.util.auxbin.execute(& 阅读全文

posted @ 2012-01-17 21:33 feisky 阅读(2117) 评论(0) 推荐(0) 编辑

摘要:XendBootLoader.py:判读bootloader是否存在 Linux:/usr/bin/pygrub Windows: /usr/lib/xen/boot/hvmloade判断 启动设备是否存在,不存在返回:Disk isn't accessible打开一个管道,用于两个pty进程间通信:/var/run/xend/boot/xenbl.%s构造命令并在pty子进程中执行:/usr/bin/pygrub [ --kernel=%s --ramdisk=%s --args=%s --output=%s -q ] path-to-disk如果子进程(执行bootloader)执 阅读全文

posted @ 2012-01-17 21:31 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 @ 2012-01-17 21:23 feisky 阅读(1934) 评论(0) 推荐(0) 编辑

摘要:XendDomain.py:10271 _refresh(): Refresh the domain list. Needs to be called wheneither xenstore has changed or when a method requiresup to date information (like uptime, cputime stats). 调用_refreshTxn()刷新运行状态的虚机 调用XendDomainInfo的update方法更新DomainInfo Update with info from xc.domain_ge... 阅读全文

posted @ 2012-01-17 21:22 feisky 阅读(1005) 评论(0) 推荐(0) 编辑

摘要:创建虚机xm create命令的选项--config (-F) 配置文件的路径-n (--dryrun) config_file 显示python配置文件对应的SXP格式(该文件还会在/var/lib/xend/domains/UUID/config.sxp保存一份,而且/var/lib/xend/domains/UUID/config.sxp保存的配置更为全面。-s (--skipdtd) 忽略XML DTD检测,启动后可减少虚机的创建时间-p (--paused) 创建后不自动启动--vncviewer 自动连接vnc display-c (--console_autoconnect)自动 阅读全文

posted @ 2012-01-12 20:33 feisky 阅读(2027) 评论(0) 推荐(0) 编辑

摘要:资源准备windows pv-driver源码:http://xenbits.xensource.com/ext/win-pvdrivers.hgWDK:http://msdn.microsoft.com/en-us/windows/hardware/gg487463.aspxMercurial:(用于下载windows pv-driver源码)http://mercurial.selenic.com/downloads/7-zip:http://sparanoid.com/lab/7z/或者http://www.skycn.com/down.php?uri=http://118.72.254 阅读全文

posted @ 2011-12-29 16:58 feisky 阅读(726) 评论(0) 推荐(0) 编辑

摘要:关于 Xen Virtualization Essentials虽然虚拟化的概念已经很老了,但最近提高硬件利用率、降低硬件成本、降低功耗、简化系统管理以及提高系统安全性的需求导致虚拟化的部署迅速增加,同时也出现了很多相应的虚拟化解决方案。事实上,现有的虚拟化解决方案已足以解决从全球化企业到个人的需求。这本书是关于Xen的虚拟化解决方案。Xen是一个功能丰富、开放源码、基于hypervisor的虚拟化解决方案。尽管诞生时间不长,却已获得了业界的广泛接受。这本书的目的是向读者提供一个使用Xen部署虚拟化的基本方法。许多书籍往往把重点放在虚拟化的理论上,但这本书不是。这本书强调Xen的实际使用方法, 阅读全文

posted @ 2011-12-12 23:06 feisky 阅读(375) 评论(0) 推荐(0) 编辑

摘要:Checking Hardware Support for Xen Hardware Virtual Machines (HVM)In order to support hardware virtualization, the CPU must include Intel-VT or AMD-V support. This can be verified using the following commands:For Intel CPUs:grep vmx /proc/cpuinfoFor AMD CPUSs:grep svm /proc/cpuinfoIf your system does 阅读全文

posted @ 2011-12-01 22:36 feisky 阅读(622) 评论(0) 推荐(0) 编辑

摘要:所有managed domain在创建的时候(xm new)会将其配置信息写入:/var/lib/xend/domains/UUID/config.sxp这样,在dom0重启的时候,xend会将/var/lib/xend/domains下的所有虚机自动创建出来。该文件的示例如下:(domain (domid 49) (vcpus_params ((cap 0) (weight 256))) (PV_args 3) (PV_bootloader /usr/bin/pygrub) (cpus (() () () () () () () ())) (VCPUs_live 1) (actions_af 阅读全文

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

摘要:This document(3466408)is provided subject to thedisclaimerat the end of this document.EnvironmentNovell SUSE Linux Enterprise Server 10 Service Pack 1Novell SUSE Linux Enterprise Server 10 Service Pack 2Novell SUSE Linux Enterprise Server 10 Service Pack 1 XENNovell SUSE Linux Enterprise Server 10 S 阅读全文

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

摘要:Problem 1: UDP, VLANs and Lack of Flow ControlProblem VLAN devices do not support scatter-gather This means the that each skb needs to be linearised and thus cloned if they are trasmitted on a VLAN device Cloning results in the original fragments being released This breaks Xen's netfront/netback 阅读全文

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

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