I have a Ubuntu 14.04 migrated from Virtual Box
Have 3 partitions. I've updated the /etc/fstab for recognize the new partitions and chrooted for update the grub
I'm using the following ubuntu.cfg
bootloader = '/usr/bin/pygrub'
vcpus = '1'
memory = '1024'
root = '/dev/xvda1 ro'
disk = [
'phy:/dev/vms_xen/ubuntu_swp,xvda3,w',
'phy:/dev/vms_xen/ubuntu_root,xvda1,w',
'phy:/dev/vms_xen/ubuntu_data,xvda2,w'
]
name = 'Ubuntu_1404'
vif = [ 'ip=192.168.2.1,mac=08:00:27:ea:81:23' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
extra="console=hvc0"
The fstab file is
/dev/xvda1 / ext4 rw,user_xattr,acl,barrier=1,noatime 0 1
/dev/xvda3 none swap sw 0 0
/dev/xvda2 /data ext4 rw,user_xattr,acl,barrier=1,noatime 0 0
when I try the command
# xl create -d /etc/xen/ubuntu.cfg
Parsing config file /etc/xen/ubuntu.cfg
(domain
(domid -1)
(create_info)
(hvm 0)
(hap 1)
(oos 1)
(ssidref 0)
(name Ubuntu_1404)
(uuid <unknown>)
(cpupool Pool-0)
(xsdata (null))
(platformdata (null))
(build_info)
(max_vcpus 1)
(tsc_mode 0)
(max_memkb 1048576)
(target_memkb 1048576)
(nomigrate 0)
(bootloader /usr/bin/pygrub)
(image
(linux 0)
(kernel (null))
(cmdline root=/dev/xvda1 ro console=hvc0)
(ramdisk (null))
)
)
(device
(tap
(backend_domid 0)
(frontend_domid 0)
(physpath /dev/vms_xen/ubuntu_swp)
(phystype 1)
(virtpath xvda3)
(unpluggable 0)
(readwrite 1)
(is_cdrom 0)
)
)
(device
(tap
(backend_domid 0)
(frontend_domid 0)
(physpath /dev/vms_xen/ubuntu_root)
(phystype 1)
(virtpath xvda1)
(unpluggable 0)
(readwrite 1)
(is_cdrom 0)
)
)
(device
(tap
(backend_domid 0)
(frontend_domid 0)
(physpath /dev/vms_xen/ubuntu_data)
(phystype 1)
(virtpath xvda2)
(unpluggable 0)
(readwrite 1)
(is_cdrom 0)
)
)
(device
(vif
(backend_domid 0)
(frontend_domid 0)
(devid 0)
(mtu 1492)
(model rtl8139)
(mac 080027ea8123)
)
)
)
failed to run bootloader: -3
The VM works fine on Virtual Box on my laptop, the VM was migrated using https://superuser.com/questions/892311/convert-vmdk-to-lvm