Bug 847334

Summary: RFE: allow force hard reset of VMs
Product: [Community] Virtualization Tools Reporter: Adam Spiers <redhat>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, dallan, dyasny, spdubhghaill
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-16 22:03:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch for adding force reset to shutdown menu none

Description Adam Spiers 2012-08-10 15:12:35 UTC
Every other hypervisor GUI I've used allows forcing a hard reset (i.e. power cycle) of a VM as a single action.  With virt-manager you have to first force off, and then start (based on usage of 0.9.1 - I could not find any information on http://virt-manager.org/ regarding later releases).  This is pretty annoying if you have to do it regularly (e.g. when testing PXE boot environments).  

Of course the same can be automated via virsh, but the current deficiency of virt-manager is a clear (albeit minor) usability issue, and presumably very easy to fix.

Comment 1 Dave Allan 2013-02-22 21:24:47 UTC
Implementing reset should be as simple as UI to call virDomainReset

Comment 2 John Doyle 2013-03-16 00:35:58 UTC
Created attachment 710930 [details]
patch for adding force reset to shutdown menu

I agree, it would be useful so here's a patch which adds it to the shutdown menu. Works as Dave suggested.

Comment 3 Cole Robinson 2013-03-16 22:03:54 UTC
(In reply to comment #2)
> Created attachment 710930 [details]
> patch for adding force reset to shutdown menu
> 
> I agree, it would be useful so here's a patch which adds it to the shutdown
> menu. Works as Dave suggested.

Thanks John, patch looks good, pushed upstream.

http://git.fedorahosted.org/cgit/virt-manager.git/commit/?id=9f4fddba0454b42df7ea0893f672084852cf2e4b

(small nit: for git patches it's generally easier on the maintainer to use git format-patch for generating the patch, rather than git show)

Comment 4 John Doyle 2013-03-18 00:05:53 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Created attachment 710930 [details]
> > patch for adding force reset to shutdown menu
> > 
> > I agree, it would be useful so here's a patch which adds it to the shutdown
> > menu. Works as Dave suggested.
> 
> Thanks John, patch looks good, pushed upstream.
> 
> http://git.fedorahosted.org/cgit/virt-manager.git/commit/
> ?id=9f4fddba0454b42df7ea0893f672084852cf2e4b
> 
> (small nit: for git patches it's generally easier on the maintainer to use
> git format-patch for generating the patch, rather than git show)

Sorry Cole, will remember for the future. Thanks.