查看完整版本: [轉貼]【VMware】RHEL p2v

chun 2012-8-28 14:48

[轉貼]【VMware】RHEL p2v

<a href="http://masterman.pixnet.net/blog/post/29027704-%E3%80%90vmware%E3%80%91rhel-p2v">http://masterman.pixnet.net/blog/post/29027704-%E3%80%90vmware%E3%80%91rhel-p2v</a>
<div><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">converter設定一下,就轉上去了,不過開機卻會出現error loading operating system.</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">問題大約就是在 ide disk to scsi disk的轉換上。</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">&nbsp;</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">Sol:</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">1. Download RH9 iso file,第一片即可,upload to esxi server.</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">2. config iso file as a cdrom device in vsphere client.</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">3. press F2 to change boot seq, boot cdrom first.</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">4. type "linux rescue", fdisk -l to show disk status.</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">5. chroot to root file system, we rebuild grub first.</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><em style="margin: 0px; padding: 0px; font-style: normal; "><span style="margin: 0px; padding: 0px; font-size: x-small; "># chroot /mnt/sysimage</span></em></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><em style="margin: 0px; padding: 0px; font-style: normal; "><span style="margin: 0px; padding: 0px; font-size: x-small; "># grub</span></em></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><em style="margin: 0px; padding: 0px; font-style: normal; "><span style="margin: 0px; padding: 0px; font-size: x-small; ">grub&gt; root (hd0,0) &nbsp; # check /boot/menu.lst to know (hdx,x)</span></em></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><em style="margin: 0px; padding: 0px; font-style: normal; "><span style="margin: 0px; padding: 0px; font-size: x-small; ">grub&gt; setup (hd0)&nbsp;</span></em></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><em style="margin: 0px; padding: 0px; font-style: normal; "><span style="margin: 0px; padding: 0px; font-size: x-small; ">grub&gt; quit&nbsp;</span></em></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">&nbsp;</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">6. config scsi support</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "># vi /etc/modprobe.conf&nbsp;</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">alias scsi_hostadapter mptscsih</span>&nbsp;</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">alias scsi_hostadapter mptbase</span></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">7. config kernel</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">#cd /boot<br style="margin: 0px; padding: 0px; letter-spacing: normal; "></span></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">#mv&nbsp;</span><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">initrd-2.4.8-20-vm.img&nbsp;</span><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">initrd-2.4.8-20-vm.img.old</span></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">#&gt;mkinitrd initrd-2.4.8-20-vm.img&nbsp;</span><span style="margin: 0px; padding: 0px; line-height: 21px; font-style: italic; font-family: 'trebuchet MS', Arial, Verdana; font-size: 14px; ">2.4.8-20</span>&nbsp;</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">8. quit&nbsp;</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; ">reference:</p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><a href="http://blog.hfu.edu.tw/blog/FOOL/archives/1929" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(68, 95, 127); ">http://blog.hfu.edu.tw/blog/FOOL/archives/1929</a></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><a href="http://blog.smps.tp.edu.tw/f2blog/index.php?load=read&amp;id=152" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(68, 95, 127); ">http://blog.smps.tp.edu.tw/f2blog/index.php?load=read&amp;id=152</a></p><p style="margin-bottom: 1em; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><a href="http://www.1a-centosserver.com/centos_redhat_vmware_virtualization/centos_linux_redhat_software_raid_vmware_vmconvertor_kernel_panic.php" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(68, 95, 127); ">http://www.1a-centosserver.com/centos_redhat_vmware_virtualization/centos_linux_redhat_software_raid_vmware_vmconvertor_kernel_panic.php</a></p><div class="pix-related-post pix-related-post-showed" style="margin: 0px; padding: 0px; color: rgb(68, 68, 68); font-family: Simsun, arial; font-size: 13px; letter-spacing: 1px; line-height: 22px; "><div class="recommended-posts recommended-posts1 nobg" style="margin: 15px 0px; padding: 0px; position: relative; font-size: 12px; line-height: 22px; height: 130px; overflow: hidden; border: none; background-image: none; opacity: 1; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; zoom: 1; clear: both; "><h5 style="font-size: 12px; font-weight: normal; border: none; outline: 0px; vertical-align: baseline; background-color: transparent; zoom: 1; opacity: 1; color: inherit !important; "><span style="margin: 7px 10px 10px 130px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background-color: transparent; zoom: 1; display: block; position: relative; font-weight: bold; color: black; opacity: 0.6; ">您可能會有興趣的文章</span></h5></div></div></div>
頁: [1]
查看完整版本: [轉貼]【VMware】RHEL p2v