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

[Xen-users] WARNING:root:Unknown image directive recordfail


  • To: xen-users@xxxxxxxxxxxxx
  • From: Christian Mayorga <cmayorga@xxxxxxxxx>
  • Date: Wed, 28 Nov 2012 16:58:42 +0100
  • Delivery-date: Wed, 28 Nov 2012 16:00:03 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>


Dear All,

I am running a clean installation of xen 4.1 in ubuntu 12.04. I was able to run Xen Dom 0 succesfully but once I tryed to configure a VM I encounter problems. I am doing a VM installation on LVM. I had been able to install the OS in the VM partition but once I am tryng to start the VM start the problems. I am new in Xen I am not sure how to follow. I think the problem is on the booting of the VM as there were know issues with pygrub and grub which I was able to solve. Once I do @server02:/$ sudo /usr/bin/pygrub /dev/VolGroup00/VM01 I am getting the booting screen from grub but after it crashes and give the following output.


@server02:/$ sudo /usr/bin/pygrub /dev/VolGroup00/VM01
Using <class 'grub.GrubConf.
Grub2ConfigFile'> to parse /grub/grub.cfg
WARNING:root:Unknown directive load_video
WARNING:root:Unknown directive terminal_output
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive export
WARNING:root:Unknown image directive recordfail
WARNING:root:Unknown image directive gfxmode
WARNING:root:Unknown image directive recordfail
WARNING:root:Unknown image directive linux16
WARNING:root:Unknown image directive linux16
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive source
linux (kernel /var/run/xend/boot/boot_kernel.oWMMn4)(ramdisk /var/run/xend/boot/boot_ramdisk.OrM_CD)(args "root=/dev/mapper/nagios01-root ro console=hvc0  quiet splash $vt_handoff ")

Below you will find all the details of the installation. Please feel free to ask any question or data to further troubleshoot and solve this problem.

Thanks,
Christian

----------------------------------------------------------------------------------------------------


@server02:/var/lib/xen/images/ubuntu-netboot$ uname -a
Linux server02 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

server02:/etc/network$ sudo fdisk -l

Disk /dev/sda: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders, total 143374650 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e93e4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1953791      975872   83  Linux
/dev/sda2        60549118   143374335    41412609    5  Extended
/dev/sda3         1953792    60547071    29296640   83  Linux
/dev/sda5       126599168   143374335     8387584   82  Linux swap / Solaris
/dev/sda6        60549120   126599167    33025024   8e  Linux LVM

Partition table entries are not in disk order

Disk /dev/sdb: 73.4 GB, 73407820800 bytes
255 heads, 63 sectors/track, 8924 cylinders, total 143374650 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00061542

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   143374335    71686144   8e  Linux LVM


@server02:/etc/network$ sudo pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda6
  VG Name               VolGroup00
  PV Size               31.50 GiB / not usable 3.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              8062
  Free PE               8062
  Allocated PE          0
  PV UUID               KSHrVG-OEkR-Y8eT-Rcsj-sxSJ-WiDQ-Orp9v9
 
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               VolGroup00
  PV Size               68.37 GiB / not usable 2.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              17501
  Free PE               17501
  Allocated PE          0
  PV UUID               wYhGAU-QT0k-oxS0-yBGx-JVnd-8NXk-GpX7xw
 
server02:/etc/network$ sudo vgdisplay VolGroup00
  --- Volume group ---
  VG Name               VolGroup00
  System ID           
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               99.86 GiB
  PE Size               4.00 MiB
  Total PE              25563
  Alloc PE / Size       0 / 0 
  Free  PE / Size       25563 / 99.86 GiB
  VG UUID               wtznZA-CuAW-eE6n-ZLcG-5Sn5-m2Gy-1NVENF

@server02:~$ sudo xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7455     2     r-----    244.4

@server02:/var/lib/xen/images/ubuntu-netboot$ ls
initrd.gz  vmlinuz

Set up the initial guest configuration: /etc/xen/ubuntu.cfg

me = "VM01"

memory = 512

disk = ['phy:/dev/VolGroup00/VM01,xvda,w']
vif = [' ']

kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz"
ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- console=hvc0"


Start the VM and connect to console (-c):

@server02:/$sudo xm create /etc/xen/VM01.cfg -c

In the installation process I choose to create Full LVM partition plus grub installation

Install the Ubuntu as VM

Set up the initial guest configuration and update it: /etc/xen/ubuntu.cfg

me = "VM01"

memory = 512

disk = ['phy:/dev/VolGroup00/VM01,xvda,w']
vif = [' ']
bootloader = "/usr/bin/pygrub"
kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz"
ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- console=hvc0"

@server02:/etc/xen$ sudo xm create /etc/xen/VM01.cfg -c
Using config file "/etc/xen/VM01.cfg".
Error: Boot loader didn't return any data!

christian@server02:/etc/xen$ sudo fdisk -l /dev/VolGroup00/VM01

Disk /dev/VolGroup00/VM01: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00033568

                Device Boot      Start         End      Blocks   Id  System
/dev/VolGroup00/VM01p1            2048      499711      248832   83  Linux
/dev/VolGroup00/VM01p2          501758    20969471    10233857    5  Extended
/dev/VolGroup00/VM01p5          501760    20969471    10233856   8e  Linux LVM


The important things are:
- Sector size   ->  512
- Start of the partition slice   ->  2048

Now fire up an calculator and multiply these number to get the correct offset:
512 * 2048 = 1048576

With this value you can already mount the partition.

christian@server02:/etc/xen$ sudo mount -o offset=1048576 /dev/VolGroup00/VM01 /xen

- Open the grub.cfg file (/grub/grub.cfg) in your favorite editor.
- Change msdos infos to a normal grub entry
- replace hd0,msdos1 -> hd0,0

Trying to create VM

@server02:/var/log/xen$ sudo xm create /etc/xen/VM01.cfg
Using config file "/etc/xen/VM01.cfg".
Error: Boot loader didn't return any data!



log

[2012-11-28 11:28:28 1272] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy: domid=5
[2012-11-28 11:28:28 1272] DEBUG (XendDomainInfo:2406) No device model
[2012-11-28 11:28:28 1272] DEBUG (XendDomainInfo:2408) Releasing devices
[2012-11-28 11:28:28 1272] ERROR (XendDomainInfo:108) Domain construction failed
Traceback (most recent call last):
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 106, in create
    vm.start()
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 474, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendTask.py", line 209, in log_progress
    retval = func(*args, **kwds)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2838, in _initDomain
    self._configureBootloader()
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 3285, in _configureBootloader
    bootloader_args, kernel, ramdisk, args)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendBootloader.py", line 215, in bootloader
    raise VmError, msg
VmError: Boot loader didn't return any data!

@server02:/$ sudo /usr/bin/pygrub /dev/VolGroup00/VM01
Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /grub/grub.cfg
WARNING:root:Unknown directive load_video
WARNING:root:Unknown directive terminal_output
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive export
WARNING:root:Unknown image directive recordfail
WARNING:root:Unknown image directive gfxmode
WARNING:root:Unknown image directive recordfail
WARNING:root:Unknown image directive linux16
WARNING:root:Unknown image directive linux16
WARNING:root:Unknown directive else
WARNING:root:Unknown directive else
WARNING:root:Unknown directive source
linux (kernel /var/run/xend/boot/boot_kernel.oWMMn4)(ramdisk /var/run/xend/boot/boot_ramdisk.OrM_CD)(args "root=/dev/mapper/nagios01-root ro console=hvc0  quiet splash $vt_handoff ")


_______________________________________________
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®.