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

Re: [Xen-users] Problems with p2v / HVM not booting


  • To: xen-users@xxxxxxxxxxxxx
  • From: Jan Hejl <jh@xxxxxxxxxx>
  • Date: Fri, 28 Dec 2012 13:16:33 +0100
  • Delivery-date: Fri, 28 Dec 2012 12:17:38 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=excello.cz; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type; q=dns; s=default; b=dmpXvveyno7ZFkRKQq2CC8dJp89k4 qeJBmnTDGC1SvYO0Vc7i6wkUhGOix+yehL9XlyO7KzmSWuS90kO4iQ2Z4ab7VGdp /MFslBbxG5Q4aJLk2em1J/xk6saJVOxG5rv
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hi Andreas,

did you install bootloader during domU system installation?

Jan

On 12/28/2012 01:00 PM, Andreas Hilboll wrote:
Hi,

I need to do some p2v migration of a very old SuSE server.
Unfortunately, the kernel of that machine doesn't support running as xen
domU, so I need to put the machine into a HVM domU.

Using help from this list, I managed to access the individual HVM guest
disk's partitions from the dom0 using kpartx. What I did:

* create a LV /dev/vg_guest/worker1_disk
* create two partisions on top of /dev/vg_guest/worker1_disk, using
   fdisk, setting the bootable flag on the first partition
* using kpartx to access the individual partitions, I ran mkfs.ext3 on
   the first partition and mkswap on the second partition.
* I rsync'ed the contents of the physical server's filesystem to the
   first partition

When I now try to boot the HVM machine, I can connect via VNC, however
the system doesn't boot properly: On the VNC screen, I can see "Booting
from hard disk ...", and nothing happens. "xm top" on the dom0 shows
100% CPU and 34% RAM usage for the domU. I'm somewhat at a loss here ...

Any help is greatly appreciated =)

Cheers, Andreas.


PS: When I "plug in" a Ubuntu live CDROM into the domU's config, I can
boot the system. However I noticed that the two partitions show up as
/dev/xvda[12], even though I specified "hda" in the domU's config:

    kernel = "/usr/lib/xen-4.0/boot/hvmloader"
    builder='hvm'
    vcpus=3
    memory = 8192
    shadow_memory = 8
    name        = 'hvmtest'
    vif = ['type=ioemu,bridge=xenbr0']
    acpi = 1
    apic = 1
    disk        = [ 'phy:/dev/vg_guest/worker1_disk,hda,w',

'file:/home/hilboll/ubuntu-12.04.1-server-amd64.iso,ioemu:hdc:cdrom,r', ]
    device_model = '/usr/lib64/xen/bin/qemu-dm'
    boot="c"  # boot on floppy (a), hard disk (c) or CD-ROM (d)
    sdl=0
    vnc=1
    vncdisplay=1
    vfb = ['type=vnc']



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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