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

[Xen-users] FW: Problem with direct pass two (whole) raw disks to vm

  • To: "mailing list xen.org" <xen-users@xxxxxxxxxxxxx>
  • From: Jason Yu <yugn@xxxxxx>
  • Date: Mon, 21 Apr 2014 17:55:30 +0930
  • Delivery-date: Mon, 21 Apr 2014 08:26:21 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-topic: Problem with direct pass two (whole) raw disks to vm

Resent without attachment

From: Guangning YU <yugn@xxxxxx>
Date: Mon, 21 Apr 2014 00:36:38 +0930
To: "mailing list xen.org" <xen-users@xxxxxxxxxxxxx>
Subject: Problem with direct pass two (whole) raw disks to vm


I have been trying to directly pass two whole raw disks to a NAS vm (OpenMediaVault, Debian Wheezy). The problem I have is that vm couldn’t recognise one of the disks if I tried to pass two (raw) disks. If I try passing only one (raw) disk, it seems perfectly fine. 

If I start a vm with configuration of two raw disks, I have the following warming using " xl create NAS-OMV.cfg"

Parsing config from NAS-OMV.cfg
WARNING: ignoring "kernel" directive for HVM guest. Use "firmware_override" instead if you really want a non-default firmware
WARNING: ignoring device_model directive.
WARNING: Use "device_model_override" instead if you really want a non-default device_model

I also saw the following in vm (vncviewer). See below for complete .cfg 

[ 5.768109] XENBUS: Waiting for devices to initialise: 295s…290s…285s…280s…270s…265s…260s…255s…250s…245s…240s… (please see  photo1.jpg for more info)
[ 190.624109] 110s…110s…105s…105s…100s…100s…95s…95s…90s…90s… (please see photo2.jpg for more info)

It seemed like that the vm had problem to recognise one of the hard disks and it took a long time to boot. 

If I set only one disk, like this:

disk = [ "file:/etc/xen/images/NAS-OMV.img,hda,w", "phy:/dev/sda,hdb,w” ]

I won’t have any problems (not even a warming). 

Is there any limitation for the number of raw access disks that can be passed? Or have I done anything wrong ? Thanks in advance!!


NAS-OMV.Cfg (converted from libvirt xml format, NAS-OMV.img was previously created by Xen4.1 in Debian)

name = "NAS-OMV"

uuid = "df709496-d3e8-b420-0266-9b15a151cdb7"

maxmem = 1024

memory = 1024

vcpus = 2

builder = "hvm"

kernel = "hvmloader"

boot = "c"

pae = 1

acpi = 1

apic = 1

hap = 0

viridian = 0

rtc_timeoffset = 0

localtime = 0

device_model = "qemu-dm"

usb = 1

usbdevice = "tablet"

sdl = 0

vnc = 1

vncunused = 1

keymap = "en-us"

disk = [ "file:/etc/xen/images/NAS-OMV.img,hda,w", "phy:/dev/sda,hdb,w", "phy:/dev/sdb,hdd,w" ]

vif = [ "mac=00:16:3e:d5:5b:9a,bridge=xenbr1,script=vif-bridge" ]

parallel = "none"

serial = "pty"

Ubuntu 14.04, Xen 4.4
Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.