




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
本文分为两个部分,第一部分为使用vmwareconverter工具迁移虚拟机,第二部分为将迁移的xenserver虚拟机更新内核,更改系统配置文件等等,否则vmwareesxi下将无法启动!第一部分使用converter迁移xenserver上的虚拟机到wmwareesxi,步骤如下1此次将要迁移的数据,xenserver下硬盘为/dev/xvda[rootgbz-cllT#df-ThFilesystemTypeSizeUsedAvailUse%Mountedon^dev/xvda3ext318G2.3G15G14%/^dev/xvdalextJ99M13M8LM14%/boottmpf^tmpfs25WI0256M/dev/shm1:/data■ ■ ■ nfs ■ a_9.花2.9G6.1G32%/mnt/nfs2编辑/etc/rc.local文件,注释某些启动脚本3登录vmwareconverter服务器4选择convertmachine,添加源系统信息,比如ip地址用户名密码SourceSystemSelectthesources/stemyouwanttoconvertSourceSystemDestinationSystemOptionsSummarySource:none Destination:noneSourceSystemDestinationSystemOptionsSummarySelectsourcetype:|Powered-onmachineConvertanypowered-onphysicalorvirtualmachine.Specifythepowered-onmachineLThisbcalmachinef*AremotemachineIPaddressornanne!12 三|Username: [rootPa55word: [i*7****OSFamily: |Linux 二|
5填入目标系统信息(vmwareesxi)DestinationSystemSelectahostforthenewvirtualmachinegciur•匚日 坨mDestinationSystemDestinationVirtualMachinsDestinationLocationOptionsSummarySource:LjJ2 gciur•匚日 坨mDestinationSystemDestinationVirtualMachinsDestinationLocationOptionsSummaryDestinationtype:VMwareInfrastructurevirtualmachineCreatesanewvirtualmachineForuseonaVMwareInfrastructureproduct.VMwareInfrastructureserverdetailsServer: 10 三|Username:|roatPassword:|6给目标虚拟机填入名称,此处converter-twoDestinationVirtualMachineSelectthedestinationVMnameandfolderSuur匚eEvwt日m Source:LjJ192.L&8.6.52 D%tirHti□门Svstam DestinationVirtualMack Name:|converter-twoDestinationLocationOptions Inventoryfor:0 SearcbSummary VMname Powerstate7选择虚拟机版本与存储Source:盛192.168,6,52Inventoryftr:0Qlocalhost.Destination;整converter-twoon192,168.57,90Totalsourcediskssize:20GBDatastore|函t茁tcirBlp|Capacity: 1,857GBFree: 536.98GBType: VMFSVirtualmachineversiontersion78配置虚拟机信息,比如硬盘等等Source:刻2Destination:舒Source:刻2Clickonanoptionbelowtoeditit.Clickonanoptionbelowtoeditit.Currentsettings:4Datatoc...EditCopytype:Volume-...:17.94GB
</boot>:101.94MBDevicesEditCurrentsettings:4Datatoc...EditCopytype:Volume-...:17.94GB
</boot>:101.94MBDevicesEditvCPUs:2(2sockets...Diskcontroller:SCSI...Memory:800MBNetworksEditMIC1:INT_NetworkNIC2:INT_NetworkAdvancedop...EditPowerondestinati...Poweroffsource:NoInstallVMwareTool...CustomizeGuestO...R.econfigure;YesHelperVMn...EditNetworkconfigurati...MemoryOtherCPUSettingsNumberofvirtual叫匚kets:Numberofcoresperseeket:口Totalnumberofcores;pChangingthenumberofvirtualproc巳努口巧afterth巳gu巳stOS—installedmaycauseyourvirtualmachinebecomeunstable.IThevirtualCPUconfigurationspecifiedonthispagemayviolate—thelicenseoftheguest05.Diskcontroller;CSILSILogicSourcevolumes|DestinationlayoutSourcevolumes|DestinationlayoutSelectthesourcevolumestocopytathedestinationmachine.Selectasystemandanactivevolume,orasystem/activevolumetarunthedestinationmachine.Sour匚巳volumesUsedspaceTotalspaceTypeHe?/2,28GB17,94GBext30云/boot12.86MB101,94MBext30膏swap□B1,95GBlinux-swap10配置虚拟机信息,虚拟网卡Currentsettings:▼Currentsettings:▼♦Datatoc...EditCopytype:Volunne-...</>;17,94GB</boot>!101.94MB▼令DevicesEditvCPUs:2(2sockets...Diskcontroller:SCSI...NetworkadapterNetworkConnectatpower-onNIC![|BCTNetwork0NIC2|lNT_Network 二|0Networkadapterstoconnect\2. 三|11迁移前完整信息,确认无误可以单击下一步,将开始迁移!SummaryReviewtheconversionparametersSciuriz日Svst日e□日stinatimSvst日eSource:□J192.16B.6.52 Destination:呻converter-twoonlocalhost.DestinationVirtualMachineDestinationLocationSourcesysteminformation□口timsSummarySourcetype: Powered-on machineName/IPaddress: 2Connectedas: rootOSfamily: LinuxNothrottlinginformationDestinationsysteminformationVirtualmachinename: converter-twoHardwareversion: Version1Host/Server: 0Connectedas: rootVMfolder: NoneHostsystem: localhost.Resourcepool: DefaultPoweronafterconversion: NoNumberofvCPUs: 2(2sockets*1 cores)Physicalmemory: SOOMBNetwork: PreserveNICcountNIC1 ConnectedEKT_NetworkNIC2 ConnectedINT_NetworkDiskcontrollertype: SCSILSILogicStnranR' VnliimR-hssRrirlnninnId 1H12converter任务条显示相关信息TaskID30:RunrinaSource2TaskID30:RunrinaSource2Destination:192.16B.57.90^cmverter-two^PXl^^sion.status-Loghighliqhtslype: corwripn/Ec^im^cnnera^nuaimaznine 土Created: H:<25/20114:02:11PMbyAdrrirlstrdtorStatus: Running-啊]CompleteStarted: 10^25/2011402:11PMEstrnatedtimeremairing: 24minutesEstmatBidEompletion time: 10^25/20114:2B:-=11PMTransferrate; 11.8MB/s 二|14:■15i siiij - h iiiijin14: ■151 I'-r-r^tFdrrnngTi=unij-fr-ru-t14:■-■nFl 十十十口tri「「11=—r■.niirrftrrnj'tft4;:-0451roma::ra-\i=二的paiti:cn;10/25/aail4:03:52PMPr:to-in:thedestinationd』:.LU.^b'!!.LlI:.J5J-nli.znnzctcdz3:-ct_o-\etc-hepc-;(-jl| ! SummaryTaskizrcjgrEss13迁移完成Wewb/:▼面虹 神:▼Altasksn▼RecenttaskskskIDOctoID |SourceDffitinattinStatusStarttime^2031 2192.1665?^converter-two/Completrcl1O/E5;2D11.402:11PM第二部分
更改迁移后的虚拟机内核,否则无法运行因为经过xenserver修改过的xen内核不能在vmkernel上运行!1xen内核不能在vmkernel上运行!!!2设置虚拟机添加iso镜像文件国Hardware"|Options]Resources]converter-two-VirtualMachineProperties2设置虚拟机添加iso镜像文件国Hardware"|Options]Resources]converter-two-VirtualMachineProperties|n|xVirtualMachineVersion:7ShowAllDevicesAdd...RemoveHardwareSumrridKyDeviceStatusV^ConnectedPConnedatpoweronMemoryCPUsVideocardVMCIdevice5C5Icontroller0Harddisk1CD/DVDDrive1(edited)Networkadapter1瞩Networkadapter2800MBVideocardRestrictedLSILogicParallelVirtualDisk[nFs]mFs/linuH/Cen...EXT_NetworkINTNetworkDeviceType「ClientDeviceNote:Toconnectthisdevic&jyoumustpoweronthevirtualmachineandthendicktheConnectCD/DVDbuttoninthetoolbar.converter-twoGettingStartedSummaryResourceAllocationPerformanceT*kq尚Fu却怆1Alamq曜Permi浴issMapq「StorageVieRJsBnn+inrj!RpntnSrootChd3,3)Files^stentypekerne1zum!inuz-2f2.fi.13-194.siSvpnl'isext2fs,partitiontype0x83.&.IB-134.el5xenroroot=^dev^s(la2console=xuc0Error13:In^alidPressan^pke^to□runsupportedexecutableforMatcantinue..._3设置虚拟机强制进入biosOptions|Resources|VirtualMachineVersion:7Summarypri^ArOnBool-DAlayptionsQHSoolsconverter-twoDibbledShutDown'A'heneverthevirtualmachineispoweredonorresets rrj~ridelaythebootforthefollowinanumberofrnillise匚cmck: 卫nsgementStandby■laskg1ExposeNxflagto...rOFLHDlUi--HtUp7ThenexttimethevirtualmachineboctSjForceentryintptheBIOSsetupscreen./CPUHotplugDis^bled/DisableditionsDelay0msf~WhenthevirtualmachineFailetofindbootdevice,lannelNPIVNone1UVirtualizationAutorriatiizautomatical/Letrybootafter|10 日secondsjLocationUsedefaultsettingscer-two-VirtualMacliineProperties4设置虚拟第一启动设备为cdrom5输入linuxrescue进入救援模式Toinsta11orupgradeingraphicalmode,pressthe<ENTEN>key.Toinstallorupgradeinte«tmode,type:linuxtewt<ENTEB>.-Usethefunctionkepslistedbelowformoreinformation.[Fl-Main][FZ-Optionsl[F3-Generall[F4-Kernell[F5-Kescue]boot:linuxrescue6进入救援模式
7按照提示输入chroot/mnt/sysimage/8挂在cdrom,强制更新非xen内核sh-3.Z#mountzdeuzhda/mnt/cd.romzmount:blockdevice/deu/hdaiswrite-protected,moumtinqread-onlysh-3.Z#rpm-Uvh--force/mntzcdrom/CentOS/kerne1-kerne1-2.6.18-194.e15.x86_64.rpmkernel-debug-2.6.18-194.e!5.x86_64.rpmkerne1-debug-deue1-Z.6.18-194.e15.x86_64.rpmkernel-deuel-Z.6.18-194.e!5.x86_64.rpmkernel-doc-2.6.18-194.el5.noarch.rpmkerne1-headers-2.6.18-194.e15.x86_64.rpmkerne1-xen-Z.6.18-194.e15.x86_64.rpmkerne1-xen-deue1-Z.6.18-I34.el5.x86_64.rpmsh-3.2#rpm-Uvh--force/mntzcdrom/CentOS/kerne1-2.6.18-194.e15.x86_64.rpmPreparing... [IBB/]1:kernel [100z]U^RNING:NomodulexenbIkfoundforkerne12.6.18-194.e15,continuingamyuaysh-3.sh-3.Z#xe-guest-uti]itiesled)xc-yucul-uLi1-5.6.180-64xe-guest-uti]itiesled)xc-yucul-uLi1-5.6.180-64iLiet:-5.6.11Z345678901234-56789011111111111Z29卸载xenserver工具sh-3.Z#rpm-qaIgrepxekernel-xen-Z.6.1G-194.e15kernel-xen-dcuel-Z.b, .e15xe-juest-uti1ities-xenstore-5.6.188-64?libXfixei-^1.6.1-2.1kcxcctoo1s1.102prc96.c15xe-juest-uti1ities-5.6.160-6471-2.1sh-3.2#rpm-exe-(iuest-uti1ities-xenstoreerror:FaileddeperdEncies:/usr/bin/xenstoreisneededby(instalied)7.xBb_b4Zuarzbiii/xtut:Lurt-rectdisneededby(iu^LalS3G4?.xOG_Gdsh-3.2ttrpm-exe-guest-uti1ities-3.?itrpm-eXF-{jiiF5ft-u+i1i+ie^-Yen^+nr'esh-3.2#10停止一些影响系统的服务sh-3.Z#chkconfigzabbix-seruerofferrorreadinginformationonservicezabbix-seruer:Nosuchfileordirectorysh-3.Zitchkconfigzabbix_serueroffsh-3.Zitchkconfigsendmai1offsh-3.Ztt11编辑/boot/grub/grub.conf配置文件,default=0非xen内核Itgrub.confgeneratedbyanacondaItItMotethatyoudonothauetorerungrubaftermakingchangestotlItNOTICE:Youhavea/bootpartition.ThismeansthatIt allkernelandinitrdpathsarerelativeto/boot/jeg.It root JIt kerne1/umlirniz-uersionroroot=/deu7xvda3It initrd/initrd-version.imgitboot=/dev/xvdadefault=3timeout=splashimage=(hd0j0)/grub/splash.xpm.gz}iiddenmenutitleCentOSC2.6.18-194.el5)root【lid叽kerne1/umlinuz-.6.16-13^.e15roroot=LABEL=/console=xuc0initrd/initrd-?.6.IE-134.e!5.imqtitleCentOSCZ.6.18-194.e15xen)root(IidBJ8)kerne1/umlinuz-.6.18-19^.eISxenroroot=/deu/sda2console=xuc0initrd/initrd-.G.IE-194.e15xen.img12编辑/etc/inittab文件,注意下面这几行45&?8901«_44444455^.ttRungettijsincoZ345respawnttl45&?8901«_44444455^.ttRungettijsincoZ345respawnttl:Z345:respawnttZ:Z345:respawntt3:Z345:respauntt4:2345:respauntt5:2345:respauntt6:2345:respaunstandardrun1eveIs/sbin/agettyxuc03600:/sbin/mingettyttyl:/sbin/mingettyttyZ:/sbin/mingettytty3:/sbin/mingettytty4:/sbin/mingettytty5:/sbin/mingettyttytutiee-nav注意注释ttRuti instandardrun1ttco:2345:respawnttRuti instandardrun1ttco:2345:respawn;/51)in/agett
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 菊花种苗购销合同
- 特许经营合同
- 电商运营合作合同协议书
- 车辆过户协议合同
- 建筑施工分包合同书
- 职场装修合同规定
- Unit 6 A Day in the Life Section A 1a-Pronunciation教学设计2024-2025学年人教版英语七年级上册
- 2《丁香结》教学设计2024-2025学年统编版语文六年级上册
- 陕西电子信息职业技术学院《寒区水力计算》2023-2024学年第二学期期末试卷
- 山东司法警官职业学院《纪录片创作与欣赏》2023-2024学年第二学期期末试卷
- 中美欧规范桩基承载力计算设计对比
- 钢筋工程隐蔽检查验收记录表
- 区块链技术应用开发项目可行性分析报告
- 加强师德师风建设学校师德师风警示教育讲座培训课件
- 猪饲料购销合同书
- 常用小学生词语成语积累归类大全
- 七种不同样式的标书密封条
- 全国水利工程监理工程师培训教材质量控制
- 中国传统成语故事(英文版)
- 铸造厂总降压变电所及厂区配电系统设计
- 航拍中国优秀课件
评论
0/150
提交评论