[virt-tools-list] Configuring virt-manager (v0.9.0) from the command line

Digimer lists at alteeve.ca
Sun Jan 10 21:19:32 UTC 2016


On 10/01/16 04:17 PM, Cole Robinson wrote:
> On 01/10/2016 04:12 PM, Digimer wrote:
>> On 10/01/16 04:08 PM, Cole Robinson wrote:
>>> On 01/10/2016 04:05 PM, Digimer wrote:
>>>> Hi all,
>>>>
>>>>   I've got a little web-based front end for managing high-availability
>>>> clusters hosting KVM VMs. We use little rhel/centos 6 appliances for
>>>> users to connect to the VMs using virt-manager.
>>>>
>>>>   I would like to configure virt-manager to add/remove nodes (hosts) as
>>>> needed, but I can't seem to get this to work if virt-manager is already
>>>> running. If it's NOT running, I can either use gconftool-2 or directly
>>>> create/edit the ~/.gconf/apps/virt-manager files and the next time
>>>> virt-manager starts, the correct config is there.
>>>>
>>>>   I would like to check to see if virt-manager is running and, if so,
>>>> somehow update it with the new configuration. Is this possible?
>>>
>>> No, it's not possible with virt-manager 0.9.0 or upstream. It could be
>>> implemented based on watching gconf for added/removed connections, but it
>>> would require a patch.
>>>
>>> - Cole
>>
>> So as it stands now, I should check to see if it is running and, if so,
>> close it before making the changes and restart?
>>
> 
> Yeah that's the only option I can think.
> 
>> I think it would be a great feature to have, fwiw. :)
>>
> 
> Shouldn't be too hard to implement ;) We already have gconf/gsettings watches
> elsewhere in the code for simpler options. If you wanna take a stab at a patch
> I can give guidance
> 
> - Cole

I'm but a lowly sysadmin who only know how to program in perl (and a
limited amount of bash). Otherwise I'd have been interested in taking a
crack at it. :)

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?




More information about the virt-tools-list mailing list