Can Boot RH 5 after P2V
Hi
I have P2V a physical Linux to a Virtual machine, but i cannot put this VM to boot
I have 2 partitions with 240Gb
In the VM they are LVMs
If I use a RecoverCD i can see both LVMs in the VolGroup00
But my problem is I cannot put the first to boot, since advanced Linux is not my skills I need I little help
Is what I see in my shell booting with KNOPPIX
>pvs
>/dev/sda2 VolGroup00 lvm2 -a 232Gb
>/dev/sdb1 VolGroup00 lvm2 -a 233Gb
Here I think the sda2 is the boot volume, since KNOPPIX is using sda1
I can mount the VolGroup00/LogVol00 into the /mnt/sda1 and check the files etc, but I need to put this as the boot when the Linux boots
In the sda1 that I mounted I can look the fstab and is like this
/dev/sda2 VolGroup00/LogVol00 / - ext3
LABEL=boot /boot - ext3
devpts /dev/pts - devpts
tmpfs /dev/shm - tmpfs
proc /proc - proc
sysfs /sys - sysfs
/dev/sda2 VolGroup00/LogVol01 swap - swap
I can mount /dev/sda2/VolGroup00/LogVol00 to sda1
and i can enable swap with /dev/sda2/VolGroup00/LogVol01
But how can i put this enable on boot
UPDATE:
I have done this
# pvscan
# vgchange -ay
# mount /dev/VolGroup00/LogVol00 /mnt/sda2
# mount -t proc none /mnt/sda2/proc
# mount -t sysfs none /mnt/sda2/sys
# mount -o bind /dev /mnt/sda2/dev
but i still get this on boot
Volume group "VolGroup00" not found
unable to access (/dev/VolGroup00/LogVol01)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: no such file or directory
setuproot: error mounting /proc: no such file or directory
setuproot: error mounting /sys: no such file or directory
switchroot: mount failed: no such file or directory
kernel panic - not syncing: attempted to kill init!
Thank You
Jail
Last edited by JailBreak; 08-10-2010 at 10:02 AM.
|