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

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



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


 


Rackspace

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