lpouillo / vm5k

A Python module to help you to manage virtual machines on the Grid'5000 platform
https://www.grid5000.fr/
Other
6 stars 4 forks source link

migration doesn't work #95

Closed badock closed 10 years ago

badock commented 10 years ago

Hi,

when i try to migrate I get the following error:

root@paradent-12-kavlan-16:~# virsh migrate --live vm-47 qemu+ssh://root@10.27.204.10:22/system
error: internal error: No <source> 'bridge' attribute specified with <interface type='bridge'/>

root@paradent-12-kavlan-16:~# 

Here is the dumpxml of vm-47:

root@paradent-12-kavlan-16:~# virsh dumpxml vm-47
<domain type='kvm' id='13'>
  <name>vm-47</name>
  <uuid>156096c8-c214-5f81-cfe9-7bfb5e6db091</uuid>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/tmp/vm-47.qcow2'/>
      <backingStore type='file' index='1'>
        <format type='raw'/>
        <source file='/tmp/vm-base.img'/>
        <backingStore/>
      </backingStore>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <interface type='bridge'>
      <mac address='00:20:4e:cf:9b:54'/>
      <target dev='vnet11'/>
      <model type='rtl8139'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/11'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/11'>
      <source path='/dev/pts/11'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='none'/>
</domain>

I found this post in ubuntu, it may help: http://art.ubuntuforums.org/showthread.php?p=6095637

Thanks,

Jonathan

badock commented 10 years ago

I confirm that migration doesn't work:

root@granduc-16-kavlan-20:~# virsh migrate vm-132 qemu+ssh://root@10.43.204.134:22/system
error: internal error: No <source> 'bridge' attribute specified with <interface type='bridge'/>

vm5k command line used:

vm5k --n_vm $NUMBER_OF_VMS  -j $JOB_ID -l all --forcedeploy 2>&1 | tee deploy.log

linux-version:

root@parapluie-16-kavlan-20:~# uname -a
Linux parapluie-16-kavlan-20.rennes.grid5000.fr 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux

kvm-version:

root@parapluie-16-kavlan-20:~# kvm -version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-4+b1), Copyright (c) 2003-2008 Fabrice Bellard