[lxc-users] live migration using lxd 0.4

KATOH Yasufumi karma at jazz.email.ne.jp
Tue Mar 24 07:35:42 UTC 2015


Hi,

I try to live migration using LXD, but not working.

* OS: Ubuntu Trusty x 2
    * source host: lxd01
    * destination host: lxd02
* LXD: Install from daily PPA
  $ dpkg-query --show lxd
  lxd    0.4-0ubuntu1~ppa1~trusty

I ran as follows. Is there something wrong or something mistake?

1. Change /etc/init/lxd.conf on both hosts
  exec /usr/bin/lxd --group lxd --tcp (address of each host):8443 --debug >> /var/log/lxd.log 2>&1
2. Get and import image on lxd01
  lxd-images import lxc ubuntu trusty amd64 --alias ubuntu
3. set password on both hosts
  lxc config set password hogehoge
4. add remotes on lxd01
  lxc remote add lxd01 lxd01:8443
  lxc remote add lxd02 lxd02:8443
5. edit profile on both hosts
  lxc config profile edit default
  name: default
  config:
    raw.lxc: |-
      lxc.tty=0
      lxc.console=none
      lxc.cgroup.devices.deny=c 5:1 rwm
  devices:
    eth0:
      nictype: bridged
      parent: lxcbr0
      type: nic
6. Launch container on lxd01
  lxc launch ubuntu ubuntu01
  lxc list
  +----------+---------+-----------+------+
  |   NAME   |  STATE  |   IPV4    | IPV6 |
  +----------+---------+-----------+------+
  | ubuntu01 | RUNNING | 10.0.3.68 |      |
  +----------+---------+-----------+------+
7. move the container, then error
  lxc move lxd01:ubuntu01 lxd02:ubuntu02
  error: Get https://10.200.200.212:8443/1.0/operations/21334af8-9b9b-40f3-bd87-e53309cee7da/wait: EOF

lxd on destination host (lxd02) output the log:
  https://gist.github.com/tenforward/3ebccf5c18cf8f2486ea

Thanks,
KATOH Yasufumi


More information about the lxc-users mailing list