feisky

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

2011年11月26日

摘要: 获取Google/Twitter hosts的方法Chrome插件:https://chrome.google.com/webstore/detail/bcomihljbnefaobillhnajpgompoelme?hc=search&hcp=mainPython脚本:https://github.com/davidsun/HostsFile 阅读全文

posted @ 2011-11-26 15:15 feisky 阅读(595) 评论(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 阅读(526) 评论(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 阅读(901) 评论(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 阅读(687) 评论(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) 编辑

摘要: 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 阅读(995) 评论(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 阅读(1095) 评论(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 阅读(22425) 评论(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 阅读(871) 评论(1) 推荐(0) 编辑

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