查看完整版本: [轉貼]Linux P2V using VMware Converter

chun 2009-12-5 22:57

[轉貼]Linux P2V using VMware Converter

http://sysdigg.blogspot.com/2009/02/linux-p2v-using-vmware-converter.html<br><br><h1 id="post-921">How to P2V SUSE Linux Enterprise Server</h1>
                                                <ul class="info"><li class="author">Posted by <a href="http://www.sysdigg.com/author/admin/" title="Posts by saif">saif</a> in <a href="http://www.sysdigg.com/category/vmware-esx" title="View all posts in VMware ESX" rel="category tag">VMware ESX</a></li><li class="comment">0 Comments</li></ul>
                                               
                                                        <!-- spost -->

<div style="float: right;"><script type="text/javascript"><!--
google_ad_client = "pub-1280353905211600";
google_ad_slot = "0844981269";
google_ad_width = 300;
google_ad_height = 250;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);</script><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 250px; position: relative; visibility: visible; width: 300px;"><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 250px; position: relative; visibility: visible; width: 300px;"><iframe allowtransparency="true" hspace="0" id="google_ads_frame2" marginheight="0" marginwidth="0" name="google_ads_frame" src="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-1280353905211600&amp;output=html&amp;h=250&amp;slotname=0844981269&amp;w=300&amp;lmt=1260025876&amp;flash=10.0.32&amp;url=http%3A%2F%2Fwww.sysdigg.com%2Fhow-to-p2v-suse-linux-enterprise-server&amp;dt=1260025881421&amp;prev_slotnames=4374921981&amp;correlator=1260025881353&amp;frm=0&amp;ga_vid=2099428847.1260025881&amp;ga_sid=1260025881&amp;ga_hid=1703657497&amp;ga_fc=0&amp;u_tz=480&amp;u_his=2&amp;u_java=1&amp;u_h=768&amp;u_w=1024&amp;u_ah=738&amp;u_aw=1024&amp;u_cd=32&amp;u_nplug=16&amp;u_nmime=60&amp;biw=1011&amp;bih=569&amp;ref=http%3A%2F%2Fsysdigg.blogspot.com%2F2009%2F02%2Flinux-p2v-using-vmware-converter.html&amp;fu=0&amp;ifi=2&amp;dtd=4&amp;xpc=busplom3bg&amp;p=http%3A//www.sysdigg.com" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" scrolling="no" width="300" frameborder="0" height="250"></iframe></ins></ins>
</div>
<p>Running <strong>p2v </strong>on Suse Enterprise server is not
straightforward especially for windows folks. I read vmetc article on
P2v SLES but that didn’t provide me enough details on how to do P2V on
Suse Linux Enterprise server (SLES). In my lab i had to convert a
physical server running Suse Linux Enterprise server 10 (SLES) on HP
Proliant DL580 so i started searching online and stumbled onto vmetc
article for doing P2V Suse Linux. According to Suse Linux P2V some
customer used VMware Live Converter CD that was unusable so they had to
use Ghost imaging on the physical server, and restored that image to
“bare metal” VM , but they encountered some error like volume not
mounted or something like that . In my attempt to complete a P2V on
Suse Linux Enterprise error i didn’t noticed any Kernel panic or volume
not found error but error was exactly like this</p>
<blockquote><p>“resume device /dev/sda1 not found (ignoring) ”</p>
<p>“waiting for device /dev/sda2 to appear”</p></blockquote>
<p>I am not sure how old that P2V SLES article is but VMware Converter
now called VMware vCenter Converter has fixed lot of bugs and resolved
various P2V related issues. If you want to convert Physical machine to
Virtual machines you can download VMware vCenter Converter from VMware
site (http://www.vmware.com/download/converter/) . There are two
different version of VMware converter – Started Edition (Free) and
vCenter Converter Standalone Enterprise Edition). In my SLES p2v
conversion i used standalone Enterprise vCenter Converter. The Current
version of VMware P2V standalone converter is based on WinPE. VMware
Converter provides an easy-to-use, scalable solution for migrations of
machines, both physical to virtual and virtual to virtual On my SLES
physical host I have used P2V cold converter, conversion worked fine
make sure you follow I have successfully converted P2V using VMware
Converter using following steps:</p>
<p>Pre-requisites for SUSE Enterprise Linux (SLES 10) P2V using VMware vCenter Converter:</p>
<p>VMware vCenter Converter (Standalone Enterprise ) CD  – Version 3.0.3</p>
<p>Suse Linux Enterprise Server (SLES 10) DVD/CD</p>
<p>1. Boot the Physical SLES 10 Linux host using VMware vCenter Converter for P2V.</p>
<p>2. Let the WinPE load up and watch for the Network adaptor settings
screen. Make necessary network setting changes –use dhcp or static ip
addess and make sure you can access VMware infrastructure server from
P2V converter screen.</p>
<p>3. On VMware Converter screen click on “<strong>Convert machine</strong>” to start the P2V converter process.</p>
<p>4.Make sure you select convert all disk and maintain size option and
not resize to save or add space.This is important step the other option
didn’t worked for me so in my successful P2V conversion i used convert
all disk and maintain size.</p>
<p>5. Enter VMware infrastructure hostname, login information and select appropriate destination template for SLES server.</p>
<p>6. Once P2V conveter step completes Edit settings to make BIOS
changes to boot the SLES using SLES10 installable CD/DVD. Select Power
on the SLES VM and select “Linux rescue” option to boot the Suse Linux
Enterprise server virtual machine into rescue mode. I missed this step
and got into “waiting for device /dev/sda2 to appear” error but didn’t
notice any kernel panic error.</p>
<p>7. Select Rescue login: root and run cat /proc/partitions to find
the SUSE Linux Enterprise Server 10 disk devices. Ignore type 82 which
is Linux swap partition, for finding root partition mount the /dev/sad1
on /mnt and look for file listing /etc , /root. If you can see these
partitions you are good.</p>
<p>8. Mount the SLES /root partition on /mnt directory and run chroot for accessing file with root privileges.</p>
<blockquote><p>#mount /dev/sda1 /mnt</p>
<p>#chroot /mnt</p></blockquote>
<p>9. Edit the /etc/sysconfig kernel file and look for INITRD_MODULES to replace Physical server SCSI driver to Bus Logic :</p>
<blockquote><p>INITRD_MODULES=”mptspi reiserfs dm_mod”</p>
<p>to</p>
<p>INITRD_MODULES=” BusLogic reiserfs dm_mod “</p></blockquote>
<p>Save the changes.</p>
<p>Change ip address in /etc/sysconfig/network folder to ip address you want to assign to SLES P2V host.</p>
<p>10. So far so good, in last step you have to rebuild the initial ram disk to update the driver changes we just did in last step.</p>
<p>Go to /boot directory and save a copy of initrd file not the link file, initrid is the link for initrd file</p>
<blockquote><p>#cp –p initrd-version-default initrd-version-default.preBusLogic</p>
<div style="margin: 3px; text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-";
google_alternate_color = "FFFFFF";
google_ad_width = ;
google_ad_height = ;
google_ad_format = "_as";
google_ad_type = "";
google_ad_channel ="";
google_color_border = "";
google_color_link = "";
google_color_bg = "";
google_color_text = "";
google_color_url = "";
google_ui_features = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);</script></div><p>#mkinitrd</p></blockquote>
Once you are done reboot the VM and your P2V converted SLES Linux will come up without any errors <img src="http://www.sysdigg.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley">
.Red Hat has pretty good documentation on doing P2V on RHEL 4/5 Linux
server in their Knowledge base, i have done several successful P2V
conversion on RHEL5 server running on HP DL servers onto VMware ESX.
Probably i will add RHEL 5 Linux P2V steps in here.<br>
頁: [1]
查看完整版本: [轉貼]Linux P2V using VMware Converter