[one-users] Boot of a raw image with vda name
Javier Fontan
jfontan at opennebula.org
Thu Sep 19 03:43:29 PDT 2013
Can you send us the output of the command:
$ virsh -c qemu:///system dumpxml one-<vmid>
in the host where the VM is running.
The generated deployment file would also be nice. It should be in your
fronted machine at /var/lib/one/vms/<vmid>/deployment.0
On Sat, Sep 7, 2013 at 9:03 PM, Erico Augusto Cavalcanti Guedes
<eacg at cin.ufpe.br> wrote:
> 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.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Join us at OpenNebulaConf2013 in Berlin from the 24th to the 26th of
September 2013!
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
More information about the Users
mailing list