feisky

云计算、虚拟化与Linux技术笔记
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 66 下一页

2011年11月26日

摘要: 使用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 阅读(1214) 评论(2) 推荐(0)

摘要: Xen PV Bootloader为什么选择bootloader = '/usr/bin/pygrub'Why?PyGrub enables you tostart LinuxDomUswith the kernels that lie in the filesystem of the DomU instead of with a Kernel that lies in the filesystem of the Dom0.This enables easier kernel update from DomU or migration of HVM'ed Linuxes 阅读全文

posted @ 2011-11-26 15:00 feisky 阅读(1024) 评论(0) 推荐(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 阅读(1124) 评论(2) 推荐(0)

摘要: 使用Python可以用很简单的方法得到本机IP地址,不过在Windows和Linux下的方法稍有不一样的,Windows下获得IP地址的方法方法一使用拨号上网的话,一般都有一个本地ip和一个外网ip,使用python可以很容易的得到这两个ip 使用gethostbyname和gethostbyname_ex两个函数可以实现import socketlocalIP = socket.gethostbyname(socket.gethostname())#得到本地ipprint "local ip:%s "%localIPipList = socket.gethostbynam 阅读全文

posted @ 2011-11-26 14:45 feisky 阅读(22484) 评论(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 阅读(885) 评论(1) 推荐(0)

2011年11月23日

摘要: 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 阅读(1895) 评论(0) 推荐(0)

摘要: 安装:首先下载rpmforge-release扩展的rpm包32位操作系统:http://www.sudu.us/Tools/bmon/rpmforge-release-0.3.6-1.el5.rf.i386.rpm64位操作系统:http://www.sudu.us/Tools/bmon/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm去安装rpmforge-release扩展rpm -Uhvrpmforge-release-0.3.6-1.el5.rf.i386.rpm或rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm 阅读全文

posted @ 2011-11-23 22:17 feisky 阅读(2166) 评论(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 阅读(434) 评论(0) 推荐(0)

2011年11月21日

摘要: 安装:Wincap 4.0.2以上版本xcaphttp://download.csdn.net/user/cxxxap使用选择网卡 在 interface 下拉菜单中,选择 Refresh interface,就可以识别 pc 上的网卡。选择使用的接口后,右键选择 Start interface,之后就 可以选择用该接口进行收发报文了。创建一个 packet group在packet group中添加包,双击包名可以打开包设置向导,按向导设置包,支持arp/ipv4/ipv6/icmp/tcp/udp等报文配置发包的时间间隔就可以发包了。 阅读全文

posted @ 2011-11-21 12:37 feisky 阅读(6475) 评论(0) 推荐(0)

2011年11月20日

摘要: #!/bin/bash# ultimate.sh for duron# Based on Wonder Shaper v1.1aecho "/usr/sbin/ultimate.sh: "# Please read the README before filling out these values.# Set the following values to somewhat less than your actual download# and upload speed in kilobits. Also set the device that is to be shap 阅读全文

posted @ 2011-11-20 23:14 feisky 阅读(572) 评论(0) 推荐(0)

摘要: arping:向相邻主机发送ARP请求语 法arping[必要参数][选择参数][目的地址]功 能arping 命令:在指定网卡上发送ARP请求指定地址,源地址 “-s” 参数指定,可用来直接 ping MAC 地址,以及找出那些 ip 地址被哪些电脑所使用了类似命令:arppingping6clockdifftracepathcu相似命令:linux命令执行权限:超级用户 普通用户命令属性:网络通讯参数必要参数-A ARP回复模式,更新邻居-b 保持广播-D 复制地址检测模式-f 得到第一个回复就 退出-q 不显示警告信息-U 主动的ARP模式,更新邻居选择参数-c<数据包的数目> 阅读全文

posted @ 2011-11-20 23:10 feisky 阅读(1069) 评论(0) 推荐(0)

2011年11月19日

摘要: 在使用HTB的时候,有时会碰到htb quantum of class 10001 is big. consider r2q change的警告,而quantum是HTB子类借父类带宽时的计算依据。如果该参数设置不好,可能会碰到意想不到的结果。HTB manual建议quantum取值要尽量小,且要大于mtu。这样,quantum的最佳值就是等于mtu。如果不设置该参数,默认quantum=rate/r2q,而默认r2q=10,默认mtu=1500,也就是说使用默认参数只适合rate=15kbps的情况。当实际带宽不同时,需要手动设置r2q参数:r2q=rate/mtu,实际r2q最好比计算出 阅读全文

posted @ 2011-11-19 17:24 feisky 阅读(5417) 评论(0) 推荐(1)

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

posted @ 2011-11-19 11:32 feisky 阅读(449) 评论(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 阅读(3082) 评论(0) 推荐(0)

2011年11月18日

摘要: HFSC Scheduling with Linux© 2005 Klaus Rechert, Patrick McHardy © 2006 Martin A. Brown (translation)For complex traffic shaping scenarios, hierarchical algorithms are necessary. Current versions of Linux support the algorithms HTB and HFSC. While HTB basically rearranges token bucket filte 阅读全文

posted @ 2011-11-18 22:06 feisky 阅读(681) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 66 下一页
无觅相关文章插件,快速提升流量