feisky

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

随笔分类 -  虚拟化

摘要:注:以下操作均基于centos7系统。安装ansibleansilbe可以通过yum或者pip安装,由于kubernetes-ansible用到了密码,故而还需要安装sshpass:pip install ansiblewget http://sourceforge.net/projects/ssh... 阅读全文

posted @ 2014-11-19 21:12 feisky 阅读(7274) 评论(0) 推荐(0) 编辑

摘要:docker启动时,会在宿主主机上创建一个名为docker0的虚拟网络接口,默认选择172.17.42.1/16,一个16位的子网掩码给容器提供了65534个IP地址。docker0只是一个在绑定到这上面的其他网卡间自动转发数据包的虚拟以太网桥,它可以使容器和主机相互通信,容器与容器间通信。问题是,... 阅读全文

posted @ 2014-11-18 18:17 feisky 阅读(12827) 评论(0) 推荐(1) 编辑

摘要:weave简介Weave creates a virtual network that connects Docker containers deployed across multiple hosts.Applications use the network just as if the cont... 阅读全文

posted @ 2014-11-12 22:20 feisky 阅读(6282) 评论(0) 推荐(0) 编辑

摘要:docker默认使用bridge模式,通过网桥连接到宿主机,而容器内部的ip则从网桥所在的ip段取未用的ip。这样做一个不方便的地方在于容器内部的ip不是固定的,想要连接容器时只能通过映射到宿主机的端口,因而有很多项目使用overlay来为docker提供网络的配置,比如Pipework、Flann... 阅读全文

posted @ 2014-10-30 16:58 feisky 阅读(15813) 评论(3) 推荐(0) 编辑

摘要:Thedocker registryis bursting at the seams. At the time of this writing, a search for "node" gets just under 1000 hits. How does one choose?What const... 阅读全文

posted @ 2014-10-30 16:15 feisky 阅读(824) 评论(0) 推荐(0) 编辑

摘要:由于以下几个原因,docker的官方centos镜像中没有提供systemd服务:systemd requires theCAP_SYS_ADMINcapability. This means running docker with--privileged. Not good for a base ... 阅读全文

posted @ 2014-10-23 14:46 feisky 阅读(3434) 评论(0) 推荐(0) 编辑

摘要:As part of my work in OpenDaylight, we are looking at creating a router using Open vSwitch... Why? Well OpenStack requires some limited L3 capabilitie... 阅读全文

posted @ 2014-10-21 16:21 feisky 阅读(3982) 评论(0) 推荐(0) 编辑

摘要:指令的一般格式为INSTRUCTION arguments,指令包括FROM、MAINTAINER、RUN等。FROM格式为FROM 或FROM :。第一条指令必须为FROM指令。并且,如果在同一个Dockerfile中创建多个镜像时,可以使用多个FROM指令(每个镜像一次)。MAINTAINER格... 阅读全文

posted @ 2014-10-13 22:14 feisky 阅读(758) 评论(0) 推荐(0) 编辑

摘要:dpdk.orgWhat it isIntel® DPDK is a set of libraries and drivers for fast packet processing on x86 platforms. It runs mostly in Linux userland.This pro... 阅读全文

posted @ 2014-10-11 11:09 feisky 阅读(1612) 评论(0) 推荐(0) 编辑

摘要:Earlier this year, VMware, Microsoft, Red Hat and Intel published an IETF draft on Generic Network Virtualization Encapsulation (Geneve). Thisdraft(fi... 阅读全文

posted @ 2014-10-11 10:39 feisky 阅读(816) 评论(0) 推荐(0) 编辑

摘要:云计算用一个朋友的话来说:”做云计算最苦逼的就是得时时刻刻为一些可能一辈子都碰不到的事做好准备。更苦逼的就是刚以为一个问题不会遇到,立刻就发生了。。。“。这个还真的没有办法,谁让哥我是搞云计算的呢,简单一个虚拟化就搞的你蛋疼,你还能想其它的吗?一直纠结在做虚拟化使用什么镜像格式,刚刚开始用了raw的file,后来发现LVM的很多特性对于虚拟化还是有比较理想的能力,而且性能也很不错就用了LVM。后来被VMware骗了跑去搞Esxi接触了VMDK,最近研究openstack发现了qcow2格式,貌似现在很流行呀。也说不上分析这些镜像格式的能力,就简单说说自己的一些使用心得。目前主要有那些格式来作为 阅读全文

posted @ 2012-07-03 18:01 feisky 阅读(24646) 评论(1) 推荐(1) 编辑

摘要: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) 编辑

摘要: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) 编辑

摘要: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) 编辑

摘要:创建虚机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 阅读(2024) 评论(0) 推荐(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 阅读(1855) 评论(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) 编辑

摘要:安装Xen:# yum install kernel-xen xen重启,启动时选择xen的内核启动后查看Xen的状态:# xm listName ID Mem(MiB) VCPUs State Time(s)Domain-0 0 747 2 r—– 3623.1安装虚拟机:virt-install -n centos -r 256 -f /home/feisky/xen/centos.img -s 4 –nographics -p -lhttp://mirrors.163.com/centos/5.6/os/i386安装完成后,会在/etc/xen下面生成一个配置文件:name = “cen 阅读全文

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

摘要:XenBus and XenStoreXenStore是一个类似于数据库的文件系统, 包含了domain间的共享信息. 有domain配置和状态信息.XenStore 提供了一种发现设备信息的简便方法. 它作为数据库在/var/lib/xenstore/tdb, 在用户空间的 daemon 称为 "xenstored".这个逻辑文件树有三个主要的路径:/vm – /vm/uuid 存储配置信息,例如虚拟CPU数和内存分配数./local/domain – 包含了正在运行的domain信息, 由domid标识./tool – 存储多种工具信息.应用程序向这个数据库的 key 阅读全文

posted @ 2011-11-12 19:41 feisky 阅读(1500) 评论(0) 推荐(0) 编辑

摘要:xen提供的虚机动态迁移需要满足以下条件:1.配置文件中开启迁移# (xend-relocation-hosts-allow '')# (xend-relocation-port 8002)# (xend-relocation-address '')# (xend-relocation-server yes)2.两台dom0能在同样的路径访问到domU相关文件。因为迁移过去的信息是包括绝对路径。使用xm命令进行动态迁移,迁移过去的只是虚机的当前运行状态,而块设备则不进行任何处理。这样,一般都需要搭建共享的存储环境,如iSCSI, DRBD, NFS等。注意:迁移 阅读全文

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

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