WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Xen+drbd VmError: Block device must have "phy", "file" or "t

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen+drbd VmError: Block device must have "phy", "file" or "tap" specified to type
From: "ml@xxxxxxxxx" <ml@xxxxxxxxx>
Date: Mon, 26 Jan 2009 17:40:31 +0100
Delivery-date: Mon, 26 Jan 2009 08:41:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
Hello List,

i am trying to get xen 3.3.1+ linux kernel 2.6.18 +drbd 8.3.0 working.

Here is my config:
----------------------------------------------
kernel      = '/boot/vmlinuz-2.6.18.8-xenU'
memory      = '128'
root        = '/dev/sda2 ro'
disk        = [
                 'drbd:pgone-disk,sda2,w'
             ]
name        = 'pgone-disk'
dhcp        = 'dhcp'
vif         = [ '' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'


And here comes the log:
--------------------------------------------

[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) XendDomainInfo.create(['vm', ['name', 'pgone-disk'], ['memory', '128'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], ['on_xend_start', 'igno re'], ['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18.8-xenU'], ['ip', ':127.0.255.255::::eth0:dhcp'], ['root', '/dev/sda2 ro']]], ['device', ['vbd', ['uname', 'drbd:pgone-disk'], ['dev', 'sda2'], ['mode'
, 'w']]], ['device', ['vif']]])
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) XendDomainInfo.constructDomain [2009-01-26 17:39:20 4225] DEBUG (__init__:1072) Balloon: 132588 KiB free; need 2048; done.
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) Adding Domain: 8
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) XendDomainInfo.initDomain: 8 256 [2009-01-26 17:39:20 4225] DEBUG (__init__:1072) _initDomain:shadow_memory=0x0, memory_static_max=0x8000000, memory_static_min=0x0. [2009-01-26 17:39:20 4225] DEBUG (__init__:1072) Balloon: 132580 KiB free; need 132096; done. [2009-01-26 17:39:20 4225] INFO (__init__:1072) buildDomain os=linux dom=8 vcpus=1
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) domid          = 8
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) memsize        = 128
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) image = /boot/vmlinuz-2.6.18.8-xenU
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) store_evtchn   = 1
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) console_evtchn = 2
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) cmdline = root=/dev/sda2 ro ip=:127.0.255.255::::eth0:dhcp
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) ramdisk        =
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) vcpus          = 1
[2009-01-26 17:39:20 4225] DEBUG (__init__:1072) features       =
[2009-01-26 17:39:21 4225] INFO (__init__:1072) createDevice: vbd : {'uuid': 'af6b0002-e1b0-ca8d-9995-225e79165611', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'sda2', 'uname': 'drbd:pgone-disk', 'mode': 'w'} [2009-01-26 17:39:21 4225] ERROR (__init__:1072) XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2268, in _initDomain
   self._createDevices()
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1902, in _createDevices
   devid = self._createDevice(devclass, config)
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1869, in _createDevice
   return self.getDeviceController(deviceClass).createDevice(devConfig)
File "//usr/lib64/python/xen/xend/server/DevController.py", line 90, in createDevice
   (devid, back, front) = self.getDeviceDetails(config)
File "//usr/lib64/python/xen/xend/server/blkif.py", line 60, in getDeviceDetails
   raise VmError(
VmError: Block device must have "phy", "file" or "tap" specified to type
[2009-01-26 17:39:21 4225] ERROR (__init__:1072) VM start failed
Traceback (most recent call last):
 File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 447, in start
   XendTask.log_progress(31, 60, self._initDomain)
 File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress
   retval = func(*args, **kwds)
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2279, in _initDomain
   raise exn
VmError: Block device must have "phy", "file" or "tap" specified to type
[2009-01-26 17:39:21 4225] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=8
[2009-01-26 17:39:21 4225] DEBUG (__init__:1072) Destroying device model
[2009-01-26 17:39:21 4225] DEBUG (__init__:1072) Releasing devices
[2009-01-26 17:39:21 4225] ERROR (__init__:1072) Domain construction failed
Traceback (most recent call last):
 File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 92, in create
   vm.start()
 File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 447, in start
   XendTask.log_progress(31, 60, self._initDomain)
 File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress
   retval = func(*args, **kwds)
File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2279, in _initDomain
   raise exn
VmError: Block device must have "phy", "file" or "tap" specified to type


Any ides whats going wrong here?

Cheers,
Mario

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>