[one-users] Boot of a raw image with vda name

Erico Augusto Cavalcanti Guedes eacg at cin.ufpe.br
Sat Sep 7 12:03:40 PDT 2013


Hi all,

I'm trying to boot a raw image configured to virtio driver, but It always
results on Boot Error, when initialized on ONE(image attached). This image
runs outside cloud, through qemu-img command.

I'm using Debian i386 image and performs the following modifications;
i. rename /boot/grub/device.map from (hda)  /dev/sda to (hda) /dev/vda
ii. change /etc/fstab file, to /dev/vda1 and dev/vda2 to my swap and root
partitions, respectively;
iii. change /etc/default/grub, uncomment GRUB_DISABLE_LINUX_UUID=true and
execute update-grub(and change /etc/fstab to mount filesystems via
partition label rather than UUID. The opposite was also tried[use UUIDs on
/etc/fstab and comment GRUB_DISABLE_LINUX_UUID]).

VM Template:
CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]
CPU="1"
DISK=[BUS="virtio",CACHE="none",DEV_PREFIX="vd",DRIVER="raw",FORMAT="raw",IMAGE_ID="2",IO="native",SCSI="off",TARGET="vda"]
GRAPHICS=[LISTEN="0.0.0.0",TYPE="VNC"]
MEMORY="256"
NIC=[NETWORK_ID="0"]
OS=[ARCH="i686",BOOT="hd",ROOT="vda2"]
RAW=[DATA="<qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.virtio-disk0.scsi=off'/>
  </qemu:commandline>
  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.virtio-disk0.config-wce=off'/>
  </qemu:commandline>
  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.virtio-disk0.x-data-plane=on'/>
  </qemu:commandline>",TYPE="kvm"]

Image template:
NAME = "ImageD71Raw"
PATH = /images/debian71d2v5.raw
TYPE = OS

/srv/cloud/one/etc/vmm_exec/vmm_exec_kvm.conf file:
OS       = [ boot = "hd", arch = "i686" ]
FEATURES = [ PAE = "no", ACPI = "yes" ]
DISK     = [ driver = "raw" , cache = "none" , bus = "virtio" ]
NIC     = [ filter = "clean-traffic", model="virtio" ]

oned.conf:
DEFAULT_DEVICE_PREFIX = "vd"

fdisk -l of running VM outside opennebula:
Disk /dev/sda: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders, total 12582912 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: 0x000bd48e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     1466367      732160   82  Linux swap / Solaris
/dev/sda2   *     1466368    12582911     5558272   83  Linux

(note that partitions names are not /dev/vda. It should be, running
outside?)

Thanks a lot,

Erico.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130907/ebffd519/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BootFailedError.png
Type: image/png
Size: 25927 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130907/ebffd519/attachment-0001.png>


More information about the Users mailing list