[pve-devel] [PATCH 09/11] add watchdog device and watchdog option

Dietmar Maurer dietmar at proxmox.com
Thu Sep 8 10:31:44 CEST 2011



> -----Original Message-----
> From: Alexandre DERUMIER [mailto:aderumier at odiso.com]
> Sent: Donnerstag, 08. September 2011 10:01
> To: Dietmar Maurer
> Subject: Re: [pve-devel] [PATCH 09/11] add watchdog device and watchdog
> option
> 
> yes, you are right,  I propose:
> 
> watchdog: model=xxxx,action=xxxx

Well, but maybe that to complicated and the following is good enough for now:

watchdog: [i6300esb|ib700][,[reset|shutdown|poweroff|pause|debug|none]]

watchdog: ib700
watchdog: ib700, reset
watchdog: reset

Or is that too simple?

- Dietmar


> 
> 
> ----- Mail original -----
> 
> De: "Dietmar Maurer" <dietmar at proxmox.com>
> À: "Derumier Alexandre" <aderumier at odiso.com>, pve-
> devel at pve.proxmox.com
> Envoyé: Jeudi 8 Septembre 2011 09:32:08
> Objet: RE: [pve-devel] [PATCH 09/11] add watchdog device and watchdog
> option
> 
> > new vm config values :
> >
> > watchdog: i6300esb (default) / ib700
> > watchdogaction: reset (default)/shutdown/poweroff/pause/debug/none
> 
> can we merge that into one option?
> 
> watchdog:
> (i6300esb|ib700)[,action=reset/shutdown/poweroff/pause/debug/none]
> 
> Or is there a reason to keep 2 options?
> 
> - Dietmar
> 
> >
> > Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
> > ---
> > PVE/QemuServer.pm | 16 ++++++++++++++++
> > 1 files changed, 16 insertions(+), 0 deletions(-)
> >
> > diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index
> > a6ef452..5cce444
> > 100644
> > --- a/PVE/QemuServer.pm
> > +++ b/PVE/QemuServer.pm
> > @@ -286,6 +286,16 @@ EODESC
> > description => "Select VGA type. If you want to use high resolution
> > modes (>= 1280x1024x16) then you should use option 'std' or 'vmware'.
> > Default is 'std' for win7/w2k8, and 'cirrur' for other OS types", enum
> > => [qw(std cirrus vmware)], },
> > + watchdog => {
> > + optional => 1,
> > + type => 'string',
> > + description => "Watchdog model (i6300esb/ib700)", }, watchdogaction
> > + => { optional => 1, type => 'string', description => "Action on
> > + watchdog event
> > reset/shutdown/poweroff/pause/debug/none",
> > + },
> > hostpci => {
> > optional => 1,
> > type => 'string', format => 'pve-qm-hostpci', @@ -2027,6 +2037,12 @@
> > sub config_to_command { my $kb = $conf->{keyboard} ||
> > $defaults->{keyboard}; push @$cmd, '-k', $kb if $kb;
> >
> > + # enable watchdog device
> > + my $watchdog = $conf->{watchdog} || $defaults->{watchdog}; push
> > + @$cmd, '-device', $watchdog.',id=watchdog0' if $watchdog; my
> > + $watchdogaction = $conf->{watchdogaction} || $defaults-
> > >{watchdogaction};
> > + push @$cmd, '-watchdog-action', $watchdogaction if $watchdogaction;
> > +
> > # enable sound
> > my $soundhw = $conf->{soundhw} || $defaults->{soundhw}; push @$cmd,
> > '-device', $soundhw.',id=sound0' if $soundhw;
> > --
> > 1.7.2.5
> >
> > _______________________________________________
> > pve-devel mailing list
> > pve-devel at pve.proxmox.com
> > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 
> 
> 
> --
> 
> --
> 
> 
> 
> 
> 
> 	Alexandre Derumier
> Ingénieur système
> e-mail : aderumier at odiso.com
> Tél : +33 (0)3 20 68 88 90
> Fax : +33 (0)3 20 68 90 81
> 45 Bvd du Général Leclerc
> 59100 ROUBAIX - FRANCE
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



More information about the pve-devel mailing list