Migration from Xen to Proxmox

E

eg1l

Guest
Hi. I' trying to migrate virtual machines from Xen to proxmox.
So far I have exported a vm from Xen Center, converted it to .raw image, dd'ed the .raw image to a lvm volume
and created a config for the newly converted vm. The vm will start, show grub, but then go black and show "SeaBIOS.." again.
It will then stop here. Any ideas on what I'm missing?
 
if you created the vm from scratch, pve created a brand new virtual disk, and that disk is completely empty
you could:
move your raw disk on the same storage used for vm creation,
then "delete" the vm disk from gui (it's not deleted, will stay there but "unused"),
- caution - if you "delete" an "unused" disk, it's gone forever.
then "edit" the unused disk, and select you xen raw image, channel, order, etc and confirm
now your raw xen disk is attached to the vm: check the boot order, too

Marco
 
Last edited:
I did the following:

Code:
Created a new LVM image: 
[COLOR=#000000][FONT=monospace]lvcreate -L 21474836480b -n vm-105-disk-1 vm_vg0

Copied the exported image to the newly created LVM image.
dd if=vm.raw of=/dev/vm_vg0/[/FONT][/COLOR][COLOR=#000000][FONT=monospace]vm-105-disk-1

Created a 105.conf file.
[/FONT][/COLOR]


The VM starts, runs GRUB, but then falls back to the start up screen with SeaBIOS.

Edit: Running the raw image from local storage on host, has the same result.
 
Last edited by a moderator:
try to boot a livecd image, mount your disk and check if it's usable
check that the partition is bootable (livecd > gparted perhaps)
if this works, the disk is ok and grub is not finding what/where it expects...

you could try to use different bus type. windows vm may need a mergeide.reg fix prior to backup/restore the image (for different bus as scsi> ide)

other: try from pve cli
#qm start vmid
if any useful message appears there..

if nothing works: backup/restore (i suggest fsarchiver) from the xen worikng machine, via live cd.

Marco
 
Quite strange, I tried booting a live cd.
The disk looks good, no errors with fsck.
Tried mounting the partition and running update-grub, no errors.
Tried grub-install, no errors.
Tried changing from ide0 to scsi0 and sata0.

Still won't boot.
 
Quite strange, I tried booting a live cd.
The disk looks good, no errors with fsck.
Tried mounting the partition and running update-grub, no errors.
Tried grub-install, no errors.
Tried changing from ide0 to scsi0 and sata0.

Still won't boot.

do you see the grub menu ?
maybe your grub use /dev/xvda1 as root device ?
 
Yeah, I can see the grub menu.
It tries booting off the correct disk-uuid it seems, however, I do not see the usual "Loading Linux 3.2.. something..".

Update: Running memtest86+ on the converted vm results in alot of memory errors. Something is probably messed up.
 
Last edited by a moderator:
I found the culprit!

Removing "console=hvc0" from grub solves the problem, and the vm starts fine :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!