Foreman and libvirt host migration

Replying to myself, in case someone is interested :

A direct DB update seems sufficient :

select name,compute_resource_id from hosts where name like 'dev%';
update hosts set compute_resource_id = 5 where name like 'dev%';


··· De : [] De la part de SCHAER Frederic Envoyé : mercredi 8 janvier 2014 15:12 À : Objet : [PROVENANCE INTERNET] [foreman-users] foreman and libvirt host migration


So I’ve got virtual machines, which I migrated from one host to another.
And just because I was migrating stuff, I also changed the storage pool where the VM disks were stored, all this using libvirt.

And back in foreman, I see it’s quite unhappy with the old VM server (which is down, but I can power it on back again ), and I can’t change the VM hosts libvirt details : any hint on how to tell foreman what is the new VM server and the new storage pool ?

For the records, I added the new VM server in foreman, it sees the VMs inside it and allows me to power on/off + see the console, but the console is not working probably because of the default vnc passwords which were originally put by foreman.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit