Can't do live-migration on x86 rhel6.3 because the error "libvirtError: internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS"
hi all,
I encontered a problem when I do live-migration on x86 rhel6.3 because the error "libvirtError: internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS", any input will be highly appreciated.
I have two nodes, one is node1, one is node2.
[olympics@node1 ~]$ nova-manage service list
Binary Host Zone Status State Updated_At
nova-compute node1 nova enabled :-) 2012-11-26 11:22:59
nova-scheduler node1 nova enabled :-) 2012-11-26 11:19:02
nova-network node1 nova enabled :-) 2012-11-26 11:19:04
nova-compute node2 nova enabled :-) 2012-11-26 11:18:58
I can deploy VM on any one of above host, I have deployed a VM on node2,
[olympics@node1 ~]$ nova show a1085ace-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2012-11-
| flavor | m1.tiny (1) |
| hostId | 11ffcc6fd022870
| id | a1085ace-
| image | cirros-
| key_name | None |
| metadata | {} |
| name | i1 |
| private network | 10.0.1.5 |
| progress | 0 |
| security_groups | [{u'name': u'default'}] |
| status | ACTIVE |
| tenant_id | fb7f0b7b239c4df
| updated | 2012-11-
| user_id | 75e7e5e64fd24d4
+------
now I want to live migration the VM from the host node2 to the host node1
[olympics@node1 ~]$ nova live-migration a1085ace-
[olympics@node1 ~]$ nova list
+------
| ID | Name | Status | Networks |
+------
| a1085ace-
+------
but I found the VM can't be migrated to the host node1, and from the nova-compute process of the host node2 I get the following errors:
2012-11-23 23:14:56 DEBUG nova.openstack.
2012-11-23 23:14:56 DEBUG nova.openstack.
libvir: QEMU error : internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS
2012-11-23 23:15:39 ERROR nova.virt.
2012-11-23 23:15:39 DEBUG nova.utils [-] Got semaphore "compute_resources" for method "update_usage"... from (pid=28587) inner /home/olympics/
2012-11-23 23:15:39 DEBUG nova.openstack.
2012-11-23 23:15:39 DEBUG nova.openstack.
Traceback (most recent call last):
File "/usr/lib/
readers.
File "/usr/lib/
result = function(*args, **kwargs)
File "/home/
recover_
File "/usr/lib64/
self.gen.next()
File "/home/
FLAGS.
File "/usr/lib/
result = proxy_call(
File "/usr/lib/
rv = execute(
File "/usr/lib/
rv = meth(*args,
File "/usr/lib64/
if ret == -1: raise libvirtError ('virDomainMigr
libvirtError: internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS
Removing descriptor: 19
[root@node1]# vi /var/log/
2012-11-23 15:15:27.030+0000: starting up
LC_ALL=C PATH=/sbin:
Domain id=5 is tainted: high-privileges
char device redirected to /dev/pts/17
load of migration failed
I use a common user (olympics) to do live-migration, in order to support live-migration, I have do following three steps:
1) create nfs
[olympics@node1 ~]$ mount
9.123.106.
[olympics@node1 ~]$ ll /home/olympics/
total 8
drwxrwxr-x 2 olympics olympics 4096 Nov 26 18:54 _base
drwxrwxr-x 2 olympics olympics 4096 Nov 26 18:59 instance-00000014
[olympics@node2 ~]$ mount
9.123.106.28:/ on /home/olympics/
[olympics@node2 ~]$ ll /home/olympics/
total 8
drwxrwxr-x 2 olympics olympics 4096 Nov 26 18:54 _base
drwxrwxr-x 2 olympics olympics 4096 Nov 26 18:59 instance-00000014
2) on both node1 and node2, update the libvirt configurations, Modify /etc/libvirt/
listen_tls = 0
listen_tcp = 1
tcp_port = "16509"
auth_tcp = "none"
Modify /etc/sysconfig/
LIBVIRTD_
vi /etc/libvirt/
user = "olympics"
sudo chown -R olympics /home/olympics/
sudo chown -R olympics /var/cache/libvirt
sudo chown -R olympics /var/cache/glance
sudo chown -R olympics /var/lib/libvirt
sudo chown -R olympics /var/run/libvirt
sudo chown -R olympics /etc/libvirt
sudo chown -R olympics /var/run/
sudo chown -R olympics /var/run/
finally restart the libvirtd service by : sudo service libvirtd restart
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Hua Zhang
- Solved:
- Last query:
- Last reply: