本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
由于没有加密狗U盘,所以只使用了普通的U盘来演示,步骤都一样的,让VPS加载到这USB设备。1、编辑XenServer启动文件:extlinux.conf备注:一定要熟悉“vi”编辑命令,不然启动文件修改错误,可能会导致服务器无法启动。vi /boot/extlinux.conf复制代码搜索:mode-0x0311,后面插入“iommu=1”(中间有个空格)保存退出编辑,重启服务器(必须操作)2、查看服务器USB接口硬件设备lspci | grep USB复制代码3、查看VPS当前PCI映射(不需要确认PCI映射,可以不用查询)备注:uuid是为VPS的UUID,可通过XenCenter查询xe vm-param-list uuid=577b4b7d-22d7-b228-9776-b6358e85c688 |grep other-config复制代码4、将USB接口映射到VPS备注:(1)uuid是为VPS的UUID,可通过XenCenter查询。(2)pci=0/0000是固定的,冒号后面的是通过:lspci | grep USB查询到的参数。(3)重复执行命令,会替换other-config中的PCI参数。xe vm-param-set other-config:pci=0/0000:00:1a.1 uuid=577b4b7d-22d7-b228-9776-b6358e85c688复制代码5、VPS需要关机,再启动可通过XenCenter对VPS进行关机,和启动或命令关机:xe vm-shutdown uuid=577b4b7d-22d7-b228-9776-b6358e85c688启动:xe vm-start uuid=577b...
请转到此网站阅读自“http://www.4008600011.com/index.php?title=LSI%E7%B3%BB%E5%88%97%E8%8A%AF%E7%89%87Raid%E5%8D%A1%E9%85%8D%E7%BD%AE%E3%80%81%E7%AE%A1%E7%90%86%E6%89%8B%E5%86%8C&oldid=2356”
ESXi5.5主机中将普通硬盘标注为SSD 1.列出主机的storage信息命令:esxcli storage nmp device list mpx.vmhba1:C0:T1:L0 Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T1:L0) Storage Array Type: VMW_SATP_LOCAL Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba1:C0:T1:L0;current=vmhba1:C0:T1:L0} Path Selection Policy Device Custom Config: Working Paths: vmhba1:C0:T1:L0 Is Local SAS Device: false Is USB: false Is Boot USB Device: false 2. 请记下与设备关联的SATP (Storage Array Type: VMW_SATP_LOCAL) 3. 添加PSA声明规则将设备标记为SSD。命令:esxcli storage nmp satp rule add -s VMW_SATP_LOCAL --device mpx.vmhba1:C0:T1:L0 --option="enable_ssd" 4. 回收设备,重新应用规则。命令:esxcli storage core c...
Use Microsoft Virtual Machine Converter Updated: June 8, 2016Applies To: Hyper-V Server 2012, Windows Server 2012 R2, Windows Server 2012, Hyper-V Server 2012 R2, Azure, Windows Server 2008 R2 with SP1Note To download the converter, see Microsoft Virtual Machine Converter 3.0 on the Microsoft Download Center. From this page, you also can download information about the Windows PowerShell cmdlets used by the converter.Availability and support for the converter ends on June 3, 2017. Azure Site Recovery is recommended as the long-term solution. For details about the retirement of Microsoft Virtual Machine Converter, see the blogpost, Important update regarding Microsoft Virtual Machine Converter (MVMC).After installing MVMC, you can use it to:Convert VMware virtual machines and virtual disks to Hyper-V by using Windows PowerShell.Convert and upload disks to Microsoft Azure.Convert VMware virtual machines and virtual disks to Hyper-V by using the GUI.Convert physica...
Recently I had a chance to work with the newly released PCIe AIC based Intel DC P3500 1.2TB NVMe SSD. After the installing Fusion-io on ESXi guide was published, NVMe was the next technology to evaluate. We were using a NVMe SSD to evaluate performance under VMware ESXi 6.0 and found some interesting results. I used the standard IOmeter for read throughput, write throughput, 4K read IOPS and 4K write IOPS. The results were certainly lower than we expected.Setting up the EnvironmentThe test server was a Lenovo TD340, a fairly typical dual Intel Xeon E5-2600 V2 tower server. The P3500 1.2TB NVMe SSD was plugged into the PCIe 3.0 x16 slot. VMware ESXi 6.0 detected the drive without any issues using built-in drivers.Intel DC P3500 1200GB available to ESXi 6After formatting the drive and attaching it to the ESXi host, I created a Windows Server 2012 R2 VM (on a different drive) then assigned the P3500 LUN drive to the VM.Intel DC P3500 1200...
Xenserver单IP通过iptables共享IP上网并映射端口到内网虚拟机相对于xenserver我只有一个外网IP,怎么实现通过内网IP开通VPS了,单IP通过端口映射到内网IP:优点:通过服务器IP端口映射到指定的内网IP端口,从而使得一个公网IP实现开通多台VPS连接到网络。缺点:通过服务器IP映射,VPS通过端口指定到服务器IP实现上网,相对而言,就会存在安全问题,透露服务器的信息。那么接下来,我们说说怎么去实现吧:1. 首先做好服务器的软路由,添加一个外部网络,与物理网卡绑定,然后给网站配置上IP,192.168.128.1/255.255.255.02. 实现端口映射iptables -t nat -A PREROUTING -i xenbr0 -p tcp -d 170.123.23.12 --dport 3389 -j DNAT --to-destination 192.168.128.3:3389 xenbr0————为做软路由网口 tcp -d 170.123.23.12————为服务器公网IP--dport 3389———————为公网连接端口 192.168.128.3:3389——————为内网IP、连接端口 实现xenbr0网口数据出iptables -t nat -A POSTROUTING -s 192.168.128.0/24 -o xenbr0 -j MASQUERADE xenbr0——————为做软路由的网口 把以上配置加入启动文档,实现...
服务器IP是172.16.20.0/24网段内,VM使用网段172.16.1.0/24,那么VM网段的网关172.16.1.1不可能直接和172.16.20.0/24网段通讯的,必须在172.16.1.0/24网段中划分一个二级网关。设置大致分3个步骤1、配置一个或多个IP地址到网络配置2、启用IP接口之间转发3、配置内置的iptables防火墙,让2个段的子网之间转发。1、查看XenServer网络接口,route | grep default复制代码2、在/etc/sysconfig/network-scripts创建一个网络配置文件,命名为:ifcfg-xenbrX:1(注:ifcfg-xenbrX:1中的“X”,需要根据查看到的XenServer网络接口而定,下面操作的配置都一样)DEVICE=xenbrX:1ONBOOT=yesBOOTPROTO=noneNETMASK=<SUBNET MASK>IPADDR=<IP ADDRESS>备注:NETMASK:设置子网掩码IPADDR:网关IP,一般为IP的第一个3、修改网络配置,启用IP接口之间转发vi /etc/sysctl.conf复制代码找到:net.ipv4.ip_forward = 0改为:net.ipv4.ip_forward = 14、修改防火墙,添加2个接口直接转发规则vi /etc/sysconfig/iptables复制代码注:xenbrX根据XenServer网络接口改变添加这段:-A RH-Firewall-1-INPUT -i xenbrX -o xenbrX -j ACCEPTiptables -t nat -APOSTROUTING -o xenbr0 -j MAS...
演示命令:qemu-system-x86_64 -enable-kvm -nodefaults -boot once=dc,menu=on,splash=/data/vmware/bin/bin/logo -pidfile /data/vmware/bin/pid/.00a3b775-f246-468e-93d6-7f8aff7b1de1.pid -name "忧郁之心5201" -smbios type=0,vendor=ASUS,version=8.3.2,date="2016/4/15",release=8.3.2 -smbios type=1,manufacturer=ASUS,product=ADFSDR,version=8.3.2,serial=vMvEKFUenmT7NBj3,sku=vMvEKFU,family=vMv,uuid=00a3b775-f246-468e-93d6-7f8aff7b1de1 -smbios type=2,manufacturer=ASUS,product=ADFSDR,version=8.3.2 -smbios type=3,manufacturer=ASUS,version=8.3.2 -cpu phenom -smp 2 -m 1024 -drive media=disk,cache=writeback,file=/data/vmware/bin/disk/00a3b775-f246-468e-93d6-7f8aff7b1de1.dat,serial="db58-9346-8.3.2" -net nic,model=e1000,macaddr=d4:24:6a:46:3a:93 -net tap,ifname=tap385,downscript=no -usbdevice tablet -vga cirrus -rtc base=localtime -vnc :385 &QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5ubuntu9.4), Copyright (c) 2003-2008 Fabrice Bellardusage: qemu-system-x86_...
VMDK 恢复工具 (ESX 3.5 Update 3) (2087172) Symptoms 免责声明:本文为 VMDK Recovery Tool (ESX 3.5 Update 3) (1007243) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。 目的使用 VMDK 恢复工具工具可以实现以下目的:创建 VMDK 文件的阻止列表。阻止列表文件是纯文本文件,用于记录虚拟机的所有 VMDK。当 VMDK 文件被删除,或 VMFS 数据存储被删除或损坏时,恢复 VMDK 文件。限制VMDK 恢复工具是 VMware 在 ESX 3.5 Update 3 中提供的实用工具,是具有实验性质的软件。实验性意味着该工具不受所有客户环境的支持,并且可能无法按预期方式运行。该工具不可用于 VMware ESXi 产品。无法还原多个阻止列表文件。该工具不可用于 VMware ESX 4.0 及以上版本。有关详细信息,请参见 VMware ESX 4.0 Update 1 Release Notes 中 Known Issues 下的 Storage 部分。 Resolution 要使此工具正常工作,必须保存虚拟机的当前阻止列表。无法恢复没有其阻止列表的 VMDK 文件。要使用 VMDK 恢复工具创建阻止列表,请执行以下操作:启动 VMDK 恢复工具,以 root 身份登录到服务控制台,然后运行以下命令:# vmfs...
最新评论