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] Error: Migration not permitted with assigned PCI device

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Error: Migration not permitted with assigned PCI device
From: Federico Fanton <fake@xxxxxxxxxxxx>
Date: Thu, 23 Oct 2008 09:34:31 +0200
Delivery-date: Thu, 23 Oct 2008 00:35:19 -0700
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>
Organization: Panizzolo s.a.s.
Reply-to: federico@xxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (X11/20080925)
Hi everyone!

I'm getting the above error while trying to live-migrate a VM that needs to use /dev/ttyS0 and /dev/ttyS1.. I'm confused though: does it mean that I _can't_ do live migration of a VM that uses a PCI device (additional serial device in my case) or simply that something is wrong with my config?

Dom0 and DomU using CentOS 5.2, Xen 3.2.1, kernel 2.6.18

vm.cfg :

> name        = 'fax'
> kernel      = '/boot/vmlinuz-2.6.18-92.1.10.el5xen'
> ramdisk     = '/boot/initrd-guest-2.6.18-92.1.10.el5xen'
> memory      = '576'
> root        = '/dev/xvda1 ro'
> disk        = [
>                   'drbd:fax-disk,xvda1,w',
>                   'drbd:fax-swap,xvda2,w',
>               ]
> vif         = [ 'ip=192.168.1.213,mac=00:16:3E:CC:AB:6D' ]
> on_poweroff = 'destroy'
> on_reboot   = 'restart'
> on_crash    = 'preserve'
>
> # ttyS0
> irq = [ 4 ]
> ioports = [ "3f8-3ff" ]
> # ttyS1
> pci = [ '01:07.0' ]


Script to enable PCI passthrough:

> #!/bin/bash
> pci1=0000:01:07.0
> driver1=serial
>
> modprobe pciback
>
> # hide the device from dom0 so pciback can take control
> echo -n $pci1 >  /sys/bus/pci/drivers/$driver1/unbind
> sleep 1
> # Give the device to pciback, give it a new slot then bind
> echo -n $pci1 >  /sys/bus/pci/drivers/pciback/new_slot
> sleep 1
> echo -n $pci1 >  /sys/bus/pci/drivers/pciback/bind


Command output:

[root@server1 ~]# xm migrate fax server2x --live
Error: Migration not permitted with assigned PCI device.
Usage: xm migrate <Domain> <Host>


Thanks for your time!


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