[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Problem with p2v - device /dev/ida/c0d0p2



On Thursday 14 February 2008 08:46:06 am Tiago Cruz wrote:
> I'm doing one emergencial migrate for one very old machine, because we
> will have one IMPLOSION (!!!) very close from here, and I'm thinking
> that this old IDE disk will not survive... :-/
>
> [root@registro-2 /root]# df -h
> Filesystem      ÂSize ÂUsed Avail Use% Mounted on
> /dev/ida/c0d0p2 Â Â Â 3.8G Â2.3G Â1.4G Â62% /
> /dev/ida/c0d0p8 Â Â Â Â26G Â 20G Â4.4G Â82% /data
> /dev/ida/c0d0p6 Â Â Â 984M Â128k Â934M Â 0% /tmp
> /dev/ida/c0d0p7 Â Â Â 984M Â166M Â768M Â18% /var
>
> Red Hat Linux release 6.2 (Zoot)
> Kernel 2.4.16 on a 4-processor i686

Very old, probably doesn't have a xenified version of the kernel.

> I did one copy with 'dd' of device /dev/ida/c0d0 and imported inside one

I assume that means you copied the whole disk, not just a partition.

> LVM device, called "/dev/Vol_LVM/registro-2", but I'm getting problems
> to boot this VM:
>
> Booting from Hard Disk
> Boot from Hard Disk Failed: Could not read the boot disk
> FATAL: no bootable device
>
> I don't know how can I configure the /etc/fstab of this VM... using
> "/dev/ida/c0d0px" or the good and old "/dev/hdax". I've tried a lot of
> combinations, but I really can't boot this:
>
> name = "registro-2"
> builder = "hvm"
> memory = "500"
> disk = [
> "phy:/dev/Vol_LVM/registro-2,hda2,w","phy:/dev/Vol_LVM/registro-2,hda5,w" ]
> root = "/dev/ida/hda2 ro"
> extra = "3"
> vif = [ "type=ioemu, mac=00:16:3e:60:92:5d, bridge=xenbr0", ]
>
> I've tried too:
> root = "/dev/ida/c0d0p2 ro"
> disk = [
> "phy:/dev/Vol_LVM/registro-2,c0d0p2,w","phy:/dev/Vol_LVM/registro-2,c0d0p5,
>w" ]

Since there is probably not a xen version of the kernel, you want hvm, so you 
are missing the lines:

kernel = "/usr/lib/xen/boot/hvmloader"
device_model = "/usr/lib/xen/bin/qemu-dm"

and the disk line should be as in your followup post:

disk = [ "phy:/dev/Vol_LVM/registro-2,hda,w",]

You probably don't need the root= line, then. The 'dd' got the MBR.
Good luck.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.