Re: Trying to P2V an old linux box

bil Jeschke <[email protected]> Sun, 20 Mar 2011 23:32:39 -0500
Newsgroups gmane.org.user-groups.luni.tech
Message-ID <[email protected]>
Wow, a 2.2 kernel.  How retro of you. ;)
I think you are the right track.  Try a chroot from the recovery disk then
reconfigure lilo to see the new drives.  That may have better success, I
know that works better for me when I have to reinstall on grub.



On Sun, Mar 20, 2011 at 10:49 PM, Jay Strauss <[email protected]> wrote:

> Hi, I'm attempting to P2V (Physical to Virtual) an old Debian box (that I
> don't update or take good care of).  I used Clonezilla, and did the "save
> disk", then built the VM, and restored disks.  (I couldn't use VMWare's
> converter (below)).
>
> I'm getting a kernel panic when I boot the VM.
> Kernel panic: VFS: Unable to mount root fs on 03:04
>
> A possible reason is when it was converted to an image the old hda, hdb
> were changed into sda, sdb of the VM.  I tried booting a systemrescuecd,
> then mounting the partitions, editing lilo.conf to point at sda, ran lilo:
> lilo -C /mnt/old/etc/lilo.conf -m /dev/sda
>
> But its still panicking for same reason.
>
> I"ve been googling but most talk about rebuilding my kernel.  I don't have
> the original install CD.  Maybe I need to do a chroot, to rebuild the
> kernel, but I don't think I have the proper sources.
>
> - Is there an easier way that will just "do the right thing" to p2v the old
> machine?
>
> - Suggestion on how to fix what I have?
>
> Thanks
> Jay
>
> below is some info.
>
> Not sure what to try.
>
> I can't remember the version name, but:
>
> [o901]:~> uname -a
> Linux oldbox 2.2.20-idepci #1 Sat Apr 20 12:45:19 EST 2002 i686 unknown
>
> I'm intending on running it within VMWare Standalone player (recent, 3.1.3
> build-324285).  I can not use VMWare's converter product as the Deb box
> doesn't have the required libraries (I don't want to risk messing with this
> box, installing libraries and such for fear of crippling it).  It gives:
>  /usr/bin# vmware-converter-client
> /usr/lib/vmware-vcenter-converter-standalone/converter-gui: error while
> loading shared libraries: libXrandr.so.2: cannot open shared object file: No
> such file or directory
>
>
>  oldbox:~# fdisk -l
>
> Disk /dev/hda: 255 heads, 63 sectors, 1868 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1         6     48163+  83  Linux
> /dev/hda2             7       130    996030   82  Linux swap
> /dev/hda3           739      1868   9076725    5  Extended
> /dev/hda4           131       738   4883760   83  Linux
> /dev/hda5           739      1370   5076508+  83  Linux
> /dev/hda6          1371      1868   4000153+  83  Linux
>
> Partition table entries are not in disk order
>
> Disk /dev/hdb: 255 heads, 63 sectors, 9732 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hdb1             1      3735  30001356   83  Linux
> /dev/hdb2          3736      4980  10000462+  83  Linux
>
>
> oldbox:~# cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point>   <type>  <options>               <dump>
>  <pass>
>  /dev/hda4       /               ext2    errors=remount-ro       0       1
>  /dev/hda2       none            swap    sw                      0       0
>  proc            /proc           proc    defaults                0       0
>  /dev/fd0        /floppy         auto    user,noauto             0       0
>  /dev/cdrom      /cdrom          iso9660 ro,user,noauto          0       0
>  /dev/hda1       /boot   ext2    defaults                        0       2
>  /dev/hda5       /home   ext2    defaults                        0       2
>  /dev/hda6       /usr    ext2    defaults                        0       2
>  /dev/hdb2       /opt    ext2    defaults                        0       2
>
> sfdisk
> unit: sectors
>
> /dev/hda1 : start=       63, size=   96327, Id=83, bootable
> /dev/hda2 : start=    96390, size= 1992060, Id=82
> /dev/hda3 : start= 11855970, size=18153450, Id= 5
> /dev/hda4 : start=  2088450, size= 9767520, Id=83
> /dev/hda5 : start= 11856033, size=10153017, Id=83
> /dev/hda6 : start= 22009113, size= 8000307, Id=83
>
> unit: sectors
>
> /dev/hdb1 : start=       63, size=60002712, Id=83
> /dev/hdb2 : start= 60002775, size=20000925, Id=83
> /dev/hdb3 : start=        0, size=       0, Id= 0
> /dev/hdb4 : start=        0, size=       0, Id= 0
>
> --
> Linux Users Of Northern Illinois (Chicago) - Technical Discussion
> http://luni.org/mailman/listinfo/luni
>
>


-- 
no .sig found
Please restart your browser

-- 
Linux Users Of Northern Illinois (Chicago) - Technical Discussion 
http://luni.org/mailman/listinfo/luni