<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
I'm trying to configure a xen host, but when I create the host, oned
rise an error:<br>
<pre>Wed Nov 9 16:55:33 2011 [InM][I]: STDERR follows.</pre>
<pre>Wed Nov 9 16:55:33 2011 [InM][I]: sudo: sorry, you must have a tty to run sudo</pre>
<pre>Wed Nov 9 16:55:33 2011 [InM][I]: Error executing xen.rb</pre>
<pre>Wed Nov 9 16:55:33 2011 [InM][I]: ExitCode: 255</pre>
<pre>Wed Nov 9 16:55:33 2011 [InM][E]: Error monitoring host 14 : MONITOR FAILURE 14 Could not monitor host 192.168.0.31</pre>
I've already configured sudoers file to permit scripts run sudo
command.<br>
Here is my xen host sudoers file:<br>
<br>
#<br>
# This file MUST be edited with the 'visudo' command as root.<br>
#<br>
# Please consider adding local content in /etc/sudoers.d/ instead of<br>
# directly modifying this file.<br>
#<br>
# See the man page for details on how to write a sudoers file.<br>
#<br>
Defaults env_reset<br>
Defaults requiretty<br>
<br>
# Host alias specification<br>
<br>
# User alias specification<br>
<br>
# Cmnd alias specification<br>
<br>
# User privilege specification<br>
root ALL=(ALL:ALL) ALL<br>
%xen ALL=(ALL) NOPASSWD: /usr/sbin/xm *<br>
%xen ALL=(ALL) NOPASSWD: /usr/sbin/xentop *<br>
<br>
# Members of the admin group may gain root privileges<br>
%admin ALL=(ALL) ALL<br>
<br>
# Allow members of group sudo to execute any command<br>
%sudo ALL=(ALL:ALL) ALL<br>
<br>
#includedir /etc/sudoers.d<br>
<br>
I've set the "Defaults requiretty" in sudoers and oneadmin is
already in xen group, but onehost give me the same error.<br>
"sudo: sorry, you must have a tty to run sudo"<br>
<br>
regards,<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.05040805.05010005@argohost.net" border="0"></div>
</body>
</html>