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

[Xen-users] Re: how to get a scsi tape device to work with xen 3.3.1


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Sabuj Pattanayek <sabujp@xxxxxxxxx>
  • Date: Wed, 11 Feb 2009 23:40:15 -0600
  • Delivery-date: Wed, 11 Feb 2009 21:41:32 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hEfOhvWuK/C5gSmkeGWVxSlghO7o6dEhZGYiAndlyjpuHdOkbH5TV5MLZkm0L3mclx fF6vM/99YAxteDKwsjZH4edfLGnlKHeFjvKJwtYzn5jIki3rSRTK/u3MHYIiMBwZBWtW qs8ucUCJh5Rq8jlYJieSyoJOT9yggpfX4oeE4=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

> [root@virt4 ~]# lspci | grep -i scsi
> 01:01.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02)

I tried the pciback method but the domU (seabass) still doesn't show
the SCSI card above under lspci .

####

virt4:/etc/rc.local :

modprobe pciback
SLOT=0000:01:01.0
# Unbind a PCI scsi card from its driver
echo -n $SLOT > /sys/bus/pci/drivers/aic7xxx/unbind
# Add a new slot to the PCI Backend's list
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
# Now that the backend is watching for the slot, bind to it
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind
xm create PCI=${SLOT} /etc/xen/seabass

####

virt4:/etc/modprobe.conf:

options pciback hide=(0000:01:01.0)
#this didn't really work to load pciback
#install aic7xxx /sbin/modprobe pciback ; /sbin/modprobe --first-time
--ignore-install aic7xxx
#
alias eth0 tg3
alias eth1 tg3
alias scsi_hostadapter aic7xxx
alias scsi_hostadapter1 cciss

Here's the log from virt4:/var/log/xen/xend.log :

####

[2009-02-11 23:28:00 5647] DEBUG (XendDomainInfo:89)
XendDomainInfo.create(['vm', ['name', 'seabass'], ['memory', 512],
['maxmem', 512], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'],
['on_crash', 'restart'], ['vcpus', 2], ['on_xend_start', 'ignore'],
['on_xend_stop', 'ignore'], ['uuid',
'f137a596-566e-4a3c-a771-6596dad0c247'], ['bootloader',
'/usr/bin/pygrub'], ['bootloader_args', '-q'], ['image', ['linux']],
['device', ['tap', ['uname',
'tap:aio:/var/lib/xen/images/seabass.img'], ['dev', 'xvda'], ['mode',
'w']]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac',
'00:16:3e:36:15:d7']]], ['device', ['vkbd']], ['device', ['vfb',
['vncunused', '1'], ['keymap', 'en-us'], ['type', 'vnc'],
['xauthority', '/root/.Xauthority']]]])
[2009-02-11 23:28:00 5647] DEBUG (XendDomainInfo:2036)
XendDomainInfo.constructDomain
[2009-02-11 23:28:00 5647] DEBUG (balloon:132) Balloon: 527336 KiB
free; need 2048; done.
[2009-02-11 23:28:00 5647] DEBUG (XendDomain:449) Adding Domain: 2
[2009-02-11 23:28:00 5647] DEBUG (XendDomainInfo:2142)
XendDomainInfo.initDomain: 2 256
[2009-02-11 23:28:00 6660] DEBUG (XendBootloader:99) Launching
bootloader as ['/usr/bin/pygrub',
'--output=/var/run/xend/boot/xenbl.2511', '-q',
'/var/lib/xen/images/seabass.img'].
[2009-02-11 23:28:00 5647] DEBUG (image:302) No VNC passwd configured
for vfb access
[2009-02-11 23:28:00 5647] DEBUG (XendDomainInfo:2223)
_initDomain:shadow_memory=0x0, memory_static_max=0x20000000,
memory_static_min=0x0.
[2009-02-11 23:28:00 5647] DEBUG (balloon:132) Balloon: 527336 KiB
free; need 526336; done.
[2009-02-11 23:28:00 5647] INFO (image:166) buildDomain os=linux dom=2 vcpus=2
[2009-02-11 23:28:00 5647] DEBUG (image:631) domid          = 2
[2009-02-11 23:28:00 5647] DEBUG (image:632) memsize        = 512
[2009-02-11 23:28:00 5647] DEBUG (image:633) image          =
/var/run/xend/boot/boot_kernel.nfqi98
[2009-02-11 23:28:00 5647] DEBUG (image:634) store_evtchn   = 1
[2009-02-11 23:28:00 5647] DEBUG (image:635) console_evtchn = 2
[2009-02-11 23:28:00 5647] DEBUG (image:636) cmdline        = ro
root=LABEL=/ rhgb quiet
[2009-02-11 23:28:00 5647] DEBUG (image:637) ramdisk        =
/var/run/xend/boot/boot_ramdisk.d4Ykl6
[2009-02-11 23:28:00 5647] DEBUG (image:638) vcpus          = 2
[2009-02-11 23:28:00 5647] DEBUG (image:639) features       =
[2009-02-11 23:28:00 5647] INFO (XendDomainInfo:1900) createDevice:
vkbd : {'uuid': '4a327468-6131-8534-b3bd-eb5c997a7de9'}
[2009-02-11 23:28:00 5647] DEBUG (DevController:122) DevController:
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/vkbd/2/0'} to
/local/domain/2/device/vkbd/0.
[2009-02-11 23:28:00 5647] DEBUG (DevController:124) DevController:
writing {'frontend-id': '2', 'domain': 'seabass', 'frontend':
'/local/domain/2/device/vkbd/0', 'state': '1', 'online': '1'} to
/local/domain/0/backend/vkbd/2/0.
[2009-02-11 23:28:00 5647] INFO (XendDomainInfo:1900) createDevice:
vfb : {'vncunused': '1', 'uuid':
'4fff46cb-c529-6970-d398-cf5108aeca7a', 'other_config': {'vncunused':
'1', 'keymap': 'en-us', 'type': 'vnc', 'xauthority':
'/root/.Xauthority'}, 'keymap': 'en-us', 'type': 'vnc', 'xauthority':
'/root/.Xauthority'}
[2009-02-11 23:28:00 5647] DEBUG (DevController:122) DevController:
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/vfb/2/0'} to
/local/domain/2/device/vfb/0.
[2009-02-11 23:28:00 5647] DEBUG (DevController:124) DevController:
writing {'vncunused': '1', 'domain': 'seabass', 'frontend':
'/local/domain/2/device/vfb/0', 'xauthority': '/root/.Xauthority',
'state': '1', 'keymap': 'en-us', 'online': '1', 'frontend-id': '2',
'type': 'vnc', 'uuid': '4fff46cb-c529-6970-d398-cf5108aeca7a'} to
/local/domain/0/backend/vfb/2/0.
[2009-02-11 23:28:00 5647] INFO (XendDomainInfo:1900) createDevice:
tap : {'bootable': 1, 'uname':
'tap:aio:/var/lib/xen/images/seabass.img', 'mode': 'w', 'dev': 'xvda',
'uuid': '5bbd2dfd-0b41-f8bf-5eec-9b778408903b'}
[2009-02-11 23:28:00 5647] DEBUG (DevController:122) DevController:
writing {'virtual-device': '51712', 'device-type': 'disk', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/tap/2/51712'} to
/local/domain/2/device/vbd/51712.
[2009-02-11 23:28:00 5647] DEBUG (DevController:124) DevController:
writing {'domain': 'seabass', 'frontend':
'/local/domain/2/device/vbd/51712', 'uuid':
'5bbd2dfd-0b41-f8bf-5eec-9b778408903b', 'dev': 'xvda', 'state': '1',
'params': 'aio:/var/lib/xen/images/seabass.img', 'mode': 'w',
'online': '1', 'frontend-id': '2', 'type': 'tap'} to
/local/domain/0/backend/tap/2/51712.
[2009-02-11 23:28:00 5647] INFO (XendDomainInfo:1900) createDevice:
vif : {'bridge': 'xenbr0', 'mac': '00:16:3e:36:15:d7', 'uuid':
'a82b6a88-0dd7-25fd-aed3-bea431a39101'}
[2009-02-11 23:28:00 5647] DEBUG (DevController:122) DevController:
writing {'mac': '00:16:3e:36:15:d7', 'handle': '0', 'protocol':
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vif/2/0'} to /local/domain/2/device/vif/0.
[2009-02-11 23:28:00 5647] DEBUG (DevController:124) DevController:
writing {'bridge': 'xenbr0', 'domain': 'seabass', 'handle': '0',
'uuid': 'a82b6a88-0dd7-25fd-aed3-bea431a39101', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:36:15:d7',
'frontend-id': '2', 'state': '1', 'online': '1', 'frontend':
'/local/domain/2/device/vif/0'} to /local/domain/0/backend/vif/2/0.
[2009-02-11 23:28:01 5647] INFO (image:375) spawning device models:
/usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '2',
'-domain-name', 'seabass', '-k', 'en-us', '-vnc', '127.0.0.1:0',
'-vncunused', '-serial', 'pty', '-M', 'xenpv']
[2009-02-11 23:28:01 5647] INFO (image:422) device model pid: 6680
[2009-02-11 23:28:01 5647] INFO (image:511) waiting for sentinel_fifo
[2009-02-11 23:28:01 5647] DEBUG (XendDomainInfo:2731) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
'f137a596-566e-4a3c-a771-6596dad0c247', 'on_reboot': 'restart',
'start_time': '1234416481.15', 'on_poweroff': 'destroy',
'bootloader_args': '-q', 'on_xend_start': 'ignore', 'on_crash':
'restart', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3',
'bootloader': '/usr/bin/pygrub', 'image': "(linux (kernel )
(device_model /usr/lib/xen/bin/qemu-dm) (notes (FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel')
(VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472)
(GUEST_OS linux) (HYPERCALL_PAGE 3225423872) (LOADER generic)
(PAE_MODE yes) (ENTRY 3225419776) (XEN_VERSION xen-3.0)))", 'name':
'seabass'}
[2009-02-11 23:28:01 5647] DEBUG (XendDomainInfo:1359) Storing domain
details: {'console/ring-ref': '210884', 'image/entry': '3225419776',
'console/port': '2', 'store/ring-ref': '210885', 'image/loader':
'generic', 'vm': '/vm/f137a596-566e-4a3c-a771-6596dad0c247',
'control/platform-feature-multiprocessor-suspend': '1',
'image/guest-os': 'linux', 'cpu/1/availability': 'online',
'image/features/writable-descriptor-tables': '1', 'image/virt-base':
'3221225472', 'memory/target': '524288', 'image/guest-version': '2.6',
'image/features/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes',
'console/limit': '1048576', 'image/paddr-offset': '3221225472',
'image/hypercall-page': '3225423872', 'cpu/0/availability': 'online',
'image/features/pae-pgdir-above-4gb': '1',
'image/features/writable-page-tables': '1', 'console/type': 'ioemu',
'image/features/auto-translated-physmap': '1', 'name': 'seabass',
'domid': '2', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2009-02-11 23:28:01 5647] DEBUG (DevController:122) DevController:
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/console/2/0'} to
/local/domain/2/device/console/0.
[2009-02-11 23:28:01 5647] DEBUG (DevController:124) DevController:
writing {'domain': 'seabass', 'frontend':
'/local/domain/2/device/console/0', 'uuid':
'7accfd52-3f69-a4b7-3916-9cc948674cfe', 'frontend-id': '2', 'state':
'1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/2/0.
[2009-02-11 23:28:01 5647] DEBUG (XendDomainInfo:1443)
XendDomainInfo.handleShutdownWatch
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices vif.
[2009-02-11 23:28:01 5647] DEBUG (DevController:171) Waiting for 0.
[2009-02-11 23:28:01 5647] DEBUG (DevController:656)
hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status.
[2009-02-11 23:28:01 5647] DEBUG (DevController:670) hotplugStatusCallback 1.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices vscsi.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices vbd.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices irq.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices vkbd.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices vfb.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for
devices console.
[2009-02-11 23:28:01 5647] DEBUG (DevController:171) Waiting for 0.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices pci.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for
devices ioports.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices tap.
[2009-02-11 23:28:01 5647] DEBUG (DevController:171) Waiting for 51712.
[2009-02-11 23:28:01 5647] DEBUG (DevController:656)
hotplugStatusCallback
/local/domain/0/backend/tap/2/51712/hotplug-status.
[2009-02-11 23:28:01 5647] DEBUG (DevController:670) hotplugStatusCallback 1.
[2009-02-11 23:28:01 5647] DEBUG (DevController:166) Waiting for devices vtpm.
[2009-02-11 23:28:01 5647] INFO (XendDomain:1174) Domain seabass (2) unpaused.

####

Any ideas?

Thanks,
Sabuj Pattanayek

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


 


Rackspace

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