<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>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.<br>
<br></div>I'm using Debian i386 image and performs the following modifications;<br></div>i. rename /boot/grub/device.map from (hda) /dev/sda to (hda) /dev/vda<br></div>ii. change /etc/fstab file, to /dev/vda1 and dev/vda2 to my swap and root partitions, respectively;<br>
</div>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]).<br>
<br></div>VM Template:<br>CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]"]<br>CPU="1"<br>DISK=[BUS="virtio",CACHE="none",DEV_PREFIX="vd",DRIVER="raw",FORMAT="raw",IMAGE_ID="2",IO="native",SCSI="off",TARGET="vda"]<br>
GRAPHICS=[LISTEN="0.0.0.0",TYPE="VNC"]<br>MEMORY="256"<br>NIC=[NETWORK_ID="0"]<br>OS=[ARCH="i686",BOOT="hd",ROOT="vda2"]<br>RAW=[DATA="<qemu:commandline><br>
<qemu:arg value='-set'/><br> <qemu:arg value='device.virtio-disk0.scsi=off'/><br> </qemu:commandline><br> <qemu:commandline><br> <qemu:arg value='-set'/><br>
<qemu:arg value='device.virtio-disk0.config-wce=off'/><br> </qemu:commandline><br> <qemu:commandline><br> <qemu:arg value='-set'/><br> <qemu:arg value='device.virtio-disk0.x-data-plane=on'/><br>
</qemu:commandline>",TYPE="kvm"]<br><br></div>Image template:<br>NAME = "ImageD71Raw"<br>PATH = /images/debian71d2v5.raw<br>TYPE = OS<br><br>/srv/cloud/one/etc/vmm_exec/vmm_exec_kvm.conf file:<br>
OS = [ boot = "hd", arch = "i686" ]<br>FEATURES = [ PAE = "no", ACPI = "yes" ]<br>DISK = [ driver = "raw" , cache = "none" , bus = "virtio" ]<br>
NIC = [ filter = "clean-traffic", model="virtio" ]<br><br></div>oned.conf:<br>DEFAULT_DEVICE_PREFIX = "vd"<br><br></div>fdisk -l of running VM outside opennebula:<br>Disk /dev/sda: 6442 MB, 6442450944 bytes<br>
255 heads, 63 sectors/track, 783 cylinders, total 12582912 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
Disk identifier: 0x000bd48e<br><br> Device Boot Start End Blocks Id System<br>/dev/sda1 2048 1466367 732160 82 Linux swap / Solaris<br>/dev/sda2 * 1466368 12582911 5558272 83 Linux<br>
<br></div>(note that partitions names are not /dev/vda. It should be, running outside?)<br><br></div>Thanks a lot,<br><br></div>Erico.<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div>