本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
How to Change NTP Source on XenServerSummaryThis article describes how to change the time source accessed by the Network Time Protocol (NTP) on XenServer 5.RequirementsXenServer command line interface. Basic Linux CLI knowledge. XenServer 5 console or access to the XenServer CLI via SSHBackgroundXenServer 5 ships with a list of Internet NTP servers by default:0.xenserver.pool.ntp.org1.xenserver.pool.ntp.org2.xenserver.pool.ntp.org3.xenserver.pool.ntp.org127.127.1.0Note: The listed servers are for internal testing NTP servers, these time servers are not accessible from the Internet.Entering an NTP server during installation has been identified as an issue in XenServer 5.0 (Hotfix 1, 2, 3). The issue will be resolved in the next version of XenServer.Procedure1. At the XenServer console, select Network and Management Interface. If using SSH to connect to your XenServer or using XenCenter Console (tab), type xsconsole to access the following configuration:2. Select Network Time (NTP).3. ...
操作系统虚拟化之KVMKVM(Kernel-based Virtual Machine)是一个全虚拟化的解决方案,它自2.6.20以后正式成为Linux内核的一部分,也就是说,它是Linux内核官方支持的一个虚拟化方案。KVM的硬件需求是CPU必须支持虚拟化,对于Intel CPU来说是Intel VT,AMD CPU则是 AMD-V。如何确定你的CPU支持硬件虚拟化呢?egrep '(vmx|svm)' /proc/cpuinfovmx是Intel CPU的,svm则是AMD CPU的。我的CPU返回如下:flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs
bts rep_good pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1
xsave lahf_lm ida tpr_shadow vnmi flexpriority
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs
bts rep_good pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1
xsave lahf_lm ida tpr_shadow vnmi flexpriority在Ubuntu下面...
CentOS安装ConVirt 2.0 ConVirt是开源的虚拟环境监控管理工具,支持对KVM环境的监控。网站:http://www.convirture.com以下内容翻译自ConVirt的Wiki,是CentOS下安装ConVirt的步骤,原文地址:http://www.convirture.com/wiki/index.php?title=C2_fedora_installation (1)以root用户登录 (2)安装wgetyum install wget (3)配置ConVirt仓库cd /etc/yum.repos.dwget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repoPS:我的CentOS版本是6.2,如果是5.x版本,把上一句中的6.x替换为5.x即可 (4)安装socatPS:socat作用是在两个流之间建立双向的通道yum install socatPS:我socat安装不成功,提示依赖libssl.so、libcrypto.so软件包,后来下载了socat的离线安装文件得以解决PS:在后面的安装过程中同样遇到libssl.so的依赖,于是在文件系统查找libssl.so文件,发现在别的路径下有该文件,使用以下代码制作链接到/lib目录下,问题解决ln -s /路径/libssl.so.6 /lib (5)以普通用户登录,安装ConVirt management server,简称CMS。建议不要用root用户安装CMS (6)设置代理:如果你的公司...
vnc for Proxmox 2.0 this page is a quick writeup on how to use vnc in 2.0 AFAIK , Proxmox 2.0 seems to be a lot more secure in its use of vnc, and requires clients to use tls . Secure connections are a very good thing , trying to disable them so non secure clients work is not smart. However there are not many tls enabled clients. My guess is that there will be . I suggest helping out by filing bug reports for non tls clients you use, and help the developer by testing their changes. With changes in Java due to security fixes, web based vnc access is hit or miss. Vnc client access to a kvm used by multiple people can help keep the Proxmox host more secure as fewer people will have access to Proxmox-VE . Note to Ubuntu users I came to this page since web console wasn't working for me under ubuntu 11.10 and firefox. Problem was OpenJDK. I've installed Sun's JRE and sun-java6-plugin (as appointed by tom in the Proxmox VE 2.0 Forums) and now everything is working fine WITHOUT the set...
Enable Vnc 2.0 for use with old vnc clients (Including iOS and Android) It currently is possible to enable the VNC 2.0 for use with old vnc clients however it is not recommend, and just in this guide as a reference 1. create your KVM machine, once created get the KVM ID (e.g: 100, 120)2. SSH into your proxmox host 3. nano /etc/pve/local/qemu-server/(THE ID).conf - (nano /etc/pve/local/qemu-server/100.conf)4. at the end of config enter the following... args: -vnc 0.0.0.0:100 this basically tells the KVM to run a vnc from the IP 0.0.0.0 (all) on port 6000 (5900 + what port you set)5. run your container, and connect via external VNC Enable VNC Password Authorisation 1. create your KVM machine, once created get the KVM ID (e.g: 100, 120)2. SSH into your proxmox host3.nano /etc/pve/local/qemu-server/(THE ID).conf - (nano /etc/pve/local/qemu-server/100.conf)4. at the end of config enter the following...args: -vnc 0.0.0.0:100,passwordthis basically tells the KVM to run a vnc from the I...
Proxmox 使用 Q & A Q: 控制台出现 TASK ERROR: VM is locked (backup) ,VM无法启动A: SSH到proxmox ,然后执行 qm unlock <vmid> 命令即可解决Q:管理界面上显示以下错误“TASK ERROR: command '/bin/nc -l -p 5900 -w 10 -c /usr/sbin/qm vncproxy 100 2 >/dev/null' failed: exit code 1” A:SSH到proxmox,执行一下以下命令/bin/nc -l -p 5900 -w 10 -c '/usr/sbin/qm vncproxy 100 2'/usr/sbin/qm vncproxy 100Q:在Proxmox windows虛擬機上安裝 virtio fow windows驅動A: 按以下步骤做,思路是让WINDOWS 自己认 virtio 总线的驱动1) 先从 http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers下载 virtio 的ISO文件2) 下载ISO文件后作为一个“镜像”上传到 PROXMOX3) 新建虚拟机安装WIN2K3或者已经安装好的windows都没有问题(IDE或者SCSI总线都可以),安装完WINDOWS后,先关闭虚拟机,然后增加一个1GB的virtio总线格式的“硬盘”,同时增加一个以上面下载好的ISO文...
PhpVirtualBox: VirtualBox 的 Web 控制台PhpVirtualBox 是一个用 PHP 语言编写,AJAX 实现的开源程序,它为虚拟机软件 VirtualBox 提供了一个功能完善的 Web 控制台,便于用户远程操控 VirtualBox,主要功能有:向导方式创建新的虚拟机。启动/关闭虚拟机。创建、删除、恢复 Snapshot 。虚拟机配置。查看虚拟机日志。管理CD/DVD ISO 镜像等媒体文件。全局网络配置。导入/导出虚拟机等等。系统要求:PHP >= 5.1.0 ,VirtualBox >= 3.2.x 。项目主页: http://code.google.com/p/phpvirtualbox/截图:
XenServer5.6 断电后网卡丢失及数据恢复过程机器位于美国. 32G内存+1T硬盘*4(硬RAID10阵列)+xenserver5.6系统 服务器支持kvm远程管理.机房断电,致使xenserver网卡丢失.在恢复网络连接后,其所有虚拟机(VPS)丢失。控制面板使用我的是我破解过的xensystem2.0版本.(维护和操作起来比较方便)开始:起初我在网上找了很多方法,都不成,有说是因为xenserver有自我保护模式,有说是pool主从模式的,都试过了,不成功。一般没见过的命令也不敢操作,毕竟不太熟悉。万一数据搞丢了可不好。1.恢复网卡访问连接上KVM,需要安装java环境,这个就不介绍了.因为断电的原因,网卡丢失了。这时候我们通过 xe pif-scan 查找一下网卡,如果没有找到可能你就需要联系下机房人员了找到网卡后,你还需要配置你的母机的IP等信息,测试可以ping通或者是非KVM可以SSH连接上后,就可以通过SSH操作了。2.网卡已经成功激活并能远程SSH连接,这时候我们可以退出KVM,操作太卡了。使用XenCenter连接后.发现SR及VPS全部不能正常显示.先在SSH端检查下数据是否还在.先列出卷pvscan PV /dev/sda3 VG VG_XenStorage-c9aa6b53-8d71-6fc0-8148-2b28cf9bf57b lvm2 [1.81 TB / 1.26 TB free] Total: 1 [1.8...
Server 2008 R2 SP1的RemoteFX功能实验手记这些天测试了Windows Server 2008 R2 SP1 的另外一项功能——RemoteFX。RemoteFX能够让用户从远程获得GPU的加速。通过调用服务器的显卡使Hyper-V中的虚拟机同样能够拥有自己的显卡,从而让用户获得更好的体验。使用户能够获得和本地桌面一样的体验效果,例如2D和3D的应用,或者进行3D的创作和渲染。功能的描述在网络上有很多,这里就不详细说了。要做RemoteFX的实验,对硬件的要求较高,首先CPU要支持Second-Level Address Translation (SLAT) ,另外服务器上需要一块较为强大的显卡,当然内存也要足够的多。我测试的配置是:CPU:AMD 速龙II X4 630,内存:8G,显卡:迪兰恒进(Dataland)HD5770 恒金 1GB,磁盘:2块1T RAID 0.接下来开始整个实验的过程:1. 安装英文版Windows Server 2008R2操作系统,因为目前Windows Server 2008R2 SP1 Beta版本仅支持部分的语言,因此使用英文版作为测试2. 下载Windows Server 2008R2 SP1补丁,下载地址如下http://www.microsoft.com/windowsserver2008/en/us/default.aspx3. 在安装好的英文版Windows Server 2008R2操作系统上安装英文版Windows Server 2008R2 SP1补丁安装过程中不要任何的互动,...
最新评论