LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-19-2010, 03:10 AM   #1
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Help with converting a physical server to a virtual


Hi all.

I am using vmware vcentre converter standalone to convert a physical server to a virtual server.
Physical server uses ide drives and runs centos 3.4

Over on the virtual server we are using the native vmware scsi.


Upon booting the new virtual server, i am seeing:

Code:
VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 00:00
contents of grub.conf on virtual server

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title CentOS (2.4.21-27.0.2.EL)
		 root (hd0,0)
		 kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/
		 initrd /initrd-2.4.21-27.0.2.EL.img
#		 initrd /initrd-2.4.21-27.0.3.EL-row.img
title CentOS-3 (2.4.21-27.0.1.EL)
		 root (hd0,0)
		 kernel /vmlinuz-2.4.21-27.0.1.EL ro root=LABEL=/ 
		 initrd /initrd-2.4.21-27.0.1.EL.img

fstab on virtual server
Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/backup           /backup                 ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
fdisk on virtual server

Code:
Disk /dev/sda: 81.9 GB, 81989591040 bytes
255 heads, 63 sectors/track, 9968 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1        13    104391   83  Linux
/dev/sda2            14      9899  79409295   83  Linux
/dev/sda3          9900      9964    522112+  82  Linux swap

Disk /dev/sdb: 40.0 GB, 40040663040 bytes
255 heads, 63 sectors/track, 4868 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1   *         1      4865  39078081   83  Linux



Things i have tried so far:

Boot into rescue mode.
grub-install /dev/sda1

assign root=/dev/sda1 as boot device

Nothing has worked so far.
Does anyone have any ideas or can anyone spot from looking at the configs what i need to change?
 
Old 08-19-2010, 03:18 PM   #2
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
Normally we do a driver change in VM . We need to right click the VM node(which should be down) and to choose the proper driver for the SCSI.
 
Old 08-20-2010, 02:33 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ZAMO View Post
Normally we do a driver change in VM . We need to right click the VM node(which should be down) and to choose the proper driver for the SCSI.
Im not sure how this helps me.
During the p2v conversion, LSI logic drivers are used/installed.
Could you expand a bit??
 
Old 08-20-2010, 03:15 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Just as a quick one...

perhaps trying interrupting grub when booting and changing the following line...

kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/

to

kernel /vmlinuz-2.4.21-27.0.2.EL ro root=/dev/sda1

if that changes things, it might be during the conversion of the drives, the partitions lost their labels (usually set with e2label). I would advise not changing anything on the written images right now (unless you have reasonable back-ups that is) until we can establish the exact cause.

Last edited by r3sistance; 08-20-2010 at 05:26 PM. Reason: back-ups
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
physical and virtual adress differences cvr Linux - Software 1 07-15-2010 07:41 AM
Converting virtual address to physical address in the kernel DBQ Programming 0 02-07-2010 06:30 PM
Is This Machine Physical or Virtual? unixanalyst Linux - Hardware 5 10-11-2009 04:24 AM
from virtual to physical kidswipe Linux - General 5 06-11-2007 08:08 AM
Physical to Virtual procedure for Linux emperor_black Linux - Software 1 11-29-2006 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration