Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain migration with options fails with sigfault #86

Closed
oferb1 opened this issue Jan 6, 2017 · 1 comment
Closed

Domain migration with options fails with sigfault #86

oferb1 opened this issue Jan 6, 2017 · 1 comment

Comments

@oferb1
Copy link

oferb1 commented Jan 6, 2017

There are two servers in this environment, both running KVM on Ubuntu 14.04 LTS

  • Server 1 (192.168.1.200), Running a guest called TP0001
  • Server 2 (192.168.1.202), running no guests

The following virsh command completes successfully:
virsh migrate TP0002 qemu+ssh://192.168.1.202/system --live --p2p --tunnelled --compressed --persistent --undefinesource

The following node code fails with Segmentation fault

'use strict'
const virt = require('libvirt');

let hv = virt.createHypervisor('qemu:///system'),
    destination = {
      dest_uri: 'qemu://192.168.1.202/system',
      dest_name: 'test1',
      flags: virt.VIR_MIGRATE_LIVE |
             virt.VIR_MIGRATE_PEER2PEER |
             virt.VIR_MIGRATE_TUNNELLED |
             virt.VIR_MIGRATE_PERSIST_DEST |
             virt.VIR_MIGRATE_UNDEFINE_SOURCE
    };

return hv.connectAsync()
  .then(() => hv.lookupDomainByNameAsync('TP0001'))
  .then(domain => domain.migrateAsync(destination))
  .then(() => {
    console.log('success');
    process.exit(0);
  })
  .catch(err => {
    console.error('error', err);
    process.exit(1);
  });
@oferb1
Copy link
Author

oferb1 commented Jan 9, 2017

Confirmed working now - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant