本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
如何修改Xenserver网卡的offload 最近有看到客户的一个修改网卡的offload的脚本文件:echo Setting checksum off on VIFsVIFLIST=`xe vif-list | grep "uuid ( RO) " | awk '{print $5}'`for VIF in $VIFLISTdoecho Setting ethtool-tx=off and ethtool-rx=off on $VIFxe vif-param-set uuid=$VIF other-config:ethtool-tx="off"xe vif-param-set uuid=$VIF other-config:ethtool-rx="off"doneecho Setting checksum off on PIFsPIFLIST=`xe pif-list | grep "uuid ( RO) " | awk '{print $5}'`for PIF in $PIFLISTdoecho Setting ethtool-tx=off and ethtool-rx=off on $PIFxe pif-param-set uuid=$PIF other-config:ethtool-tx="off"xe pif-param-set uuid=$PIF other-config:ethtool-rx="off"done-----------------------------------------------------------上面修改PIF的offload并没问题,但是修改vif的offload并不生效,这种方式是不对滴,网卡的offload依赖于操作系统,xenserver上虚拟机的网卡的offload需要进入系统修改1.windows修改网卡offload配置访问本地连接-选择网卡右边的“配置”按钮-选择高...
最近工作中碰到一个客户的生产环境挂了,Pool中的3台机器的xapi都无法启动,所有的xe命令都无法执行,唯一能访问的方式只有SSH,问题是还有一台机器上有许多虚拟机在运行,尝试了很多方法都没有效果,客户的pool中的db损坏且无法恢复,唯一的解决方法就是重建环境且不影响客户的生产。思路:考虑到用户使用的是HBA存储,存储的LUN是和Host上HBA卡的WWN绑定,所以重装后host应该能识别到原来的存储,然后再把存储挂到新装的机器上。最后在新建虚拟机,把对应的VDI再挂载上去。Note:我们之前有导出过pool的server state report,所有虚拟机对应的vdi可以查到。处理方法:1.先重新安装一台xensever并作为新建Pool的master,打上所有的hotfix登陆xenserver的命令行 #pvscan   PV /dev/sdc    VG VG_XenStorage-e47a1cfd-893c-4666-08c8-f37fedd43da3   lvm2 [1.69 TB / 18.01 GB free]  PV /dev/sda3   VG VG_XenStorage-b67d732d-be5c-2255-b07b-4c97c90cf460   lvm2 [270.45 GB / 270.45 GB free]  Total: 2 [1.95 TB] / in use: 2 [1.95 TB] / in no VG: 0 [0   ] 上面看出原来的HBA存储的UUI...
Xenserver网卡丢失进入emergency mode的处理方法在环境中因为停电导致xenserver出现故障,问题如下:[root@xs01 ~]# xe pool-listThe server failed to handle your request, due to an internal error.  The given message may give details useful for debugging the problem.message: INTERNAL_ERROR: [ Connection failed: connection refused. ][root@xs01 ~]# xe host-listThe server failed to handle your request, due to an internal error.  The given message may give details useful for debugging the problem.message: INTERNAL_ERROR: [ Connection failed: connection refused. ]另一台报[root@xs01 ~]# xe host-listError: Connection refused (calling connect )经过研究发现并不是很严重的问题:这个问题可能有多种原因导致,但是此问题通常发生在pool中只有2台XenServer,pool master suddenly fails,本质上发生问题的实际是slave找不到它的master主机,所以就认为系统出现了意外而进入紧急模式(emergency mode )以保护运行着的虚拟机    这个时候因为master已经是down的状态导致无法ping通master主机,如果你直接...
xenserver5.6升级6.0后存储报错:Error in Metadata volume operation for SR Error in Metadata volume operation for SR    用户在升级xenserver5.6至6.0后发现存储出现异常,原来运行在共享存储上虚拟机工作正常,但是任何对磁盘的操作(新建VM,添加磁盘,snapshot)都会报错:Error in Metadata volume operation for SR,如以下错误截图: 检查了xenserver系统日志发现以下错误:Error: SR_BACKEND_FAILURE_181 Error In metadata Volume Operation For SR仔细研究了下Xenserver5.6和xenserver6的MGT metadata有些稍微改变,M GT LV是一个小的逻辑卷包含了存储上的一些元数据信息。所以升级到6.0后对磁盘操作的时候会报metadata的错误。找到问题后我们思考下解决问题的思路,能够重新构建MGT LV,重新更新metadata,当然可以,解决方法如下:首先确保存储上的虚拟机都处于关闭状态。1.       找到存储对应的UUIDEg.storage01 Uuid=26abe672-f292-e308-dd4e-a099504047982.       通过xencenter右键Deattach此SR3.       运行LVS找到此SR对应的...
XenServer中一台vm关闭后,然后启动报错:内部错误: Failure("Storage_access failed with Failure: Illegal VDI transition: activated RO -> activated RW")解决:SSH登录 XenServer服务器[root@D203 xensource]# xe vm-list  //显示所有虚拟机   uuid ( RO)           : 765bf384-e4ec-3b6d-e33d-c54b5814e84c      name-label ( RW): CentOS 5 (64-bit)      power-state ( RO): halted     uuid ( RO)           : 64c9311d-0871-8d3a-2539-42dbae68257f      name-label ( RW): Transfer VM for VDI 6c74ca3b-7a40-40b8-a261-205f0323657f      power-state ( RO): running     uuid ( RO)   ...
xenserver启动VM报错:The VDI is not available  Xenserver 服务器里面的VM,只要出现 报错:The VDI is not available  首先检查系统日志文件是不是占满空间了。然后删除日志文件。再试几次xe-toolstack-restart一直不能正常对VM进行操作。那就慢慢试,多执行几次命令,就会正常了。今天测试xenserver 5.6sp2时,发现有个VM,启动不了,VM名称 :vip03-226此VM,添加2个虚拟硬盘,一个命令:vip03-sys-266,一个命令:vip03-data-266启动VM时报错:The VDI is not available解决方法: 连接到xenserver console 控制台执行以下命令: xe-toolstack-restart 然后重启VM 。正常 了xenserver启动VM报错:The VDI is not available  Xenserver 服务器里面的VM,只要出现 报错:The VDI is not available  首先检查系统日志文件是不是占满空间了。此时对存储进行查看命令都会死掉。比如: vgdisplay,vgscan,lvscan ,lvdisplay,xe sr-scan 都会没法正常执行然后删除日志文件。再试几次xe-toolstack-restart一直不能正常对VM进行操作。那就慢慢试,多执行几次命令,就会正常了。
解决HyperV R2网络掉线问题  原帖地址:http://www.cnblogs.com/GSonOVB/archive/2009/11/12/1601435.html最近把家里的硬件更新了,换用了2008R2。凑巧今天需要在公司里远程连过来,感觉非常的卡,频繁掉线,而网络状康是很好的,不至于如此。回到家里,用另一台机器连接远程桌面同样存在问题,基本上只要一有动作就掉包。关掉关联的虚拟网卡则一切正常,怀疑是HyperV的虚拟网卡造成,上Google搜了一下,就有了下文,不过我和原作者不同,我必须修改虚拟网卡的配置禁用IPV4检查才见效虽然升级到WIn2008R2有一段时间了, 但没有感觉到什么网络问题。直到最近,我在局域网的另一个机器,通过FTP从主机上下载一些程序等等。因为平常都是在虚机里面,没有注意这个。结果今天一用,发现 从内网下载的速度,居然只有700KB/S左右, 最高没有超过1M/S (IE下载的,用其他工具稍微快点,大概2~3M/S 左右)。 唉。这速度怎么说呢? 我的内网好赖也是100M的,这么慢的话,下载什么都不爽了。(唉,要是要部署30G VHD文件,我给下载到什么时候去呢)最初实际上以为是网络问题,但后来,我直接把 两个机器直接用网线连接到 一起(没有交换机OR路由)...
CentOS minimal on Hyper-VI’ll quickly take you through the steps required to get the CentOS 6.3 minimal Linux distribution up and running on a Hyper-V host, along with networking and the Linux integration components all enabled.Geoff Kendal is a Windows/Linux systems administrator, scripter and problem solver, with over 12 years experience, based in Leeds, UK.The minimal release of CentOS only appeared with release 6.2 –You get literally the core OS, and nothing else (not even network access, but we’ll fix that!) – You just install what you require afterwards. I think this is a great idea, as it will keep your attack surface area to a minimum, you’re not wasting resources on the Hyper-V node with components you’re not going to use, and it’s much quicker to download (~=330MB) than the full DVD ISOs (~=5.4GB)!First, download the CentOS 6.3 minimal ISO. While we’re at it, grab a copy of the Linux integration components. While they are downloading, head over to your Hyper-V hos...
hyper-v配置centos6.3 不能配置网卡或是不能解析DNS本人在Hyper-v 中配置Centos6.3 时,不是找不到网卡,就是系统只能ping ,不能打开网页。如果配置虚拟机时,选网卡类型全都是:网络适配器。那么安装centos6.3后,系统没有安装网卡的管理程序。导致网卡没法配置,也找不到DNS配置文件。所以安装centos系统时,至少一个网卡类型为: 旧版网络适配器这样安装好Linux 集成安装包3.4后,会有一个网卡配置文件。其它的配置文件,照此复制修改就OK了。网卡都可以正常使用。但是不能打开网页。原因是因为: Run ‘vi /etc/sysconfig/network-scripts/ifcfg-eth0’ at the command prompt, then in vi, press i to go into insert mode, then enter the following:DEVICE=eth0 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.1.16 NETMASK=255.255.255.0 GATEWAY=192.168.1.123Obviously you have to replace the settings with the correct details for your network! To save the file, press Esc, Shift + : , wp, <Enter> We now need to do the same as above for /etc/resolv.conf – add the IP’s of your DNS servers to this file:nameserver 8.8...
Hyper-V安装Centos 6.0网卡无法识别解决用Centos 6.0后,这个方法不再可行了。解决如下: 1. 下载微软虚拟机Linux集成服务 Linux Integration Services v3.1 2. 加载光盘镜像 3. 挂载光盘镜像并安装# mount /dev/cdrom /mnt# cd /mnt/X86# rpm -ivh kmod-microsoft-hyper-v-rhel6-60.1.i686.rpm# rpm -ivm microsoft-hyper-v-rhel6-60.1.i686.rpm 4. 网卡配置# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="00:15:5D:01:FA:1B" NM_CONTROLLED="yes" ONBOOT="yes" BOOTPROTO="static" IPADDR="192.168.1.10" NETMASK="255.255.255.0" GATEWAY="192.168.1.1"
    总共58页,当前第42页 | 页数:
  1. 32
  2. 33
  3. 34
  4. 35
  5. 36
  6. 37
  7. 38
  8. 39
  9. 40
  10. 41
  11. 42
  12. 43
  13. 44
  14. 45
  15. 46
  16. 47
  17. 48
  18. 49
  19. 50
  20. 51
  21. 52