本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
安装XenServer系统盘默认大小为4G,安装前我们可以调整大小。注:此教程只适用于在全新安装XenServer的时候使用,已经安装过XenServer的无法修改系统盘(4G)大小。注:如果带数据重装,安装的时候一定要保证XenServer系统盘的大小一定要和以前一样大,否则数据就会丢失。1、进入XenServer系统安装界面。2、进入高级安装菜单界面,按F2键。3、进入命令模式进入命令行,输入“shell”,按回车键。4、编辑系统安装管理配置文件编辑“constants.py”文件,在bash-3.2#后面输入如下命令:vi /opt/xensource/installer/constants.py复制代码5、修改安装系统盘大小修改默认的系统盘大小,在92行,找到root_size=4096,修改为需要安装的系统盘大小 (备注:单位为MB)6、保存并退出“ESC”退出编辑—>输入“:wq”冒号+wq保存退出。7、退出命令模式退出命令模式,输入“exit” 。8、开始安装XenServer系统9、查看结果安装完毕后,通过以下命令查看系统分区大小:df -hal
由于没有加密狗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_...
最新评论