I’ve been reviewing my installation notes. If you can’t run a VM in OpenNebula and the log shows the following:
post: Command "sudo /usr/bin/ovs-vsctl set Port vnet0" failed. post: sudo: no tty present and no askpass program specified
Check the following:
- your oneadmin user has root privileges to run ovs-vsctl and ovs-ofctl commands
- NOPASSWD is used so no password is asked when running the commands
- The requiretty option is disabled in your sudoers file
Use visudo command as root to edit the sudoers file. Here is an extract of my file.
# Defaults requiretty # Allow oneadmin to run some commands oneadmin ALL = NOPASSWD: /sbin/iptables oneadmin ALL = NOPASSWD: /sbin/ebtables oneadmin ALL = NOPASSWD: /usr/local/bin/ovs-vsctl oneadmin ALL = NOPASSWD: /usr/local/bin/ovs-ofctl
Bye