feisky

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

2011年11月12日

摘要: python pdb调试python -m pdb myscript.py #注意这会重启myscript.py可以在程序中这么设置断点:import pdb; pdb.set_trace()可以修改变量的值,但是要注意,前面加上!比如要修改final的值,应该这样!final="newvalue"支持的命令: p 打印变量 n next step 细点运行 c continue l list a args 打印当前函数的参数 condition bpnumber [condition] clear/disable/enable 清除/禁用/使能断点 q quitpytho 阅读全文

posted @ 2011-11-12 20:36 feisky 阅读(5268) 评论(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 阅读(559) 评论(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) 编辑

摘要: The Xen StoreThe Xen Store Daemon provides a simple tree-like database to which we can read and write values. The Xen Store code is mainly under tools\xenstore.It replaces the XCS, which was a daemon handling control messages.The physical xenstore resides in one file:/var/lib/xenstored/tdb. Both use 阅读全文

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

摘要: xen虚拟windows xp,使用vnc图形桌面,鼠标位置偏移。在xen的bug报告页上有这个问题的解决方法:http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=585 解决方法有两个:一,在windows xp中进入控制面板,禁止鼠标加速。二,在xen配置文件中使用usb tablet,如下: #----------------------------------------------------------------------------- # Enable USB support (specific devices spe 阅读全文

posted @ 2011-11-12 20:19 feisky 阅读(1072) 评论(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 阅读(1506) 评论(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 阅读(893) 评论(2) 推荐(0) 编辑

摘要: 公司新上了一个8核的cpu,上面用xen虚拟了2个Windows。但是通过各种配置,还是无法平衡cpu的压力。大多都压在第一个cpu上。下面是top的数据Cpu0: 20.6%us, 65.7%sy,0.0%ni, 13.7%id,0.0%wa,0.0%hi,0.0%si,0.0%stCpu1:0.0%us,0.0%sy,0.0%ni, 96.2%id,0.0%wa,0.0%hi,0.0%si,3.8%stCpu2:1.0%us,0.0%sy,0.0%ni, 99.0%id,0.0%wa,0.0%hi,0.0%si,0.0%stCpu3:0.0%us,0.0%sy,0.0%ni, 99.0%i 阅读全文

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

摘要: 替换默认源为163源:wget http://mirrors.163.com/.help/CentOS5-Base-163.repomv CentOS5-Base-163.repo /etc/yum.repos.d/mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bakyum makecacheyum源改回去:mv /etc/yum.repos.d/CentOS-Base.repo.bak /etc/yum.repos.d/CentOS-Base.reporm -f /etc/yum.repos.d/ 阅读全文

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

摘要: 不完整的内核源码:安装: * kernel-devel (both 32- & 64-bit architectures) * kernel-xen-devel (both 32- & 64-bit architectures) * kernel-PAE-devel (32-bit architecture only)执行:ln -s /usr/src/kernels/2.6.18-238.19.1.el5xen-x86_64 /lib/modules/$(uname -r)/build完整的内核源码:yum install rpm-build redhat-rpm-confi 阅读全文

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

摘要: rpm2cpio xxxx.rpm | cpio -id 阅读全文

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

摘要: 原因:默认DES加密,最多只支持8位解决方法:使用md5+pam加密vim /etc/pam.d/common-password注销掉:password optional pam_smbpass.so nullok use_authtok use_first_pass missingok添加:password required pam_unix.so nullok obscure min=8 max=20 md5/etc/login.defs添加:MD5_CRYPT_ENAB yes 阅读全文

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

摘要: IO:1. Virtual disk I/O management mechanism in Xenhttp://lists.xensource.com/archives/html/xen-devel/2007-07/msg00863.html2. Token-based-QoS-resource-limiting-for-VBD-I-Ohttp://markmail.org/thread/3hmn7fwfzd5b56oh#query:+page:1+mid:yql4s2c2dvnj6xiu+state:results3. dm-iobandhttp://sourceforge.net/app 阅读全文

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

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