WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Problem with p2v - device /dev/ida/c0d0p2
From: jim burns <jim_burn@xxxxxxxxxxxxx>
Date: Sat, 16 Feb 2008 22:29:18 -0500
Delivery-date: Sat, 16 Feb 2008 19:30:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1202996766.20359.8.camel@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1202996766.20359.8.camel@xxxxxxxxxxxxxxxxxxx> (sfid-20080214_090615_174142_BCA819AE)
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20071221.751182)
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