在Ubuntu上安装OpenNebula Minione时设置初始密码失败求助
Hey there, sorry to hear you're stuck on the password setup step while installing OpenNebula Minione on Ubuntu—let's go through some practical fixes to resolve this issue:
Check your user permissions first
Make sure you're running the script as a non-root user with full sudo privileges. Minione typically doesn't play well with direct root execution, but it needs elevated permissions to create users and set passwords. You can verify your sudo access with:sudo -l
If you don't have sudo rights, add your user to the sudo group first (log out and back in after this):sudo usermod -aG sudo your_usernameVerify the Minione script integrity
Corrupted or outdated scripts can cause unexpected failures. Grab the latest Minione script from the official OpenNebula source, then re-apply the execute permission:chmod +x minioneGet detailed error output
Run the script in verbose mode to see exactly where the password setup is failing. This will help pinpoint if it's a system password policy issue, user account conflict, or something else:./minione --force -v
You can also check OpenNebula's log files for more clues:cat /var/log/one/minione.log(or related logs in/var/log/one/)Manually set up the oneadmin user first
If the script keeps failing at password creation, try creating the user and setting its password manually before running the script again:- Create the oneadmin user:
sudo useradd -m oneadmin - Set a strong password for it:
sudo passwd oneadmin - Re-run the Minione script with
./minione --force—it should skip the password setup step and proceed.
- Create the oneadmin user:
Ensure system dependencies are installed
Missing basic packages can break user/password management. Update your system and install essential dependencies:sudo apt update && sudo apt install -y openssh-server sudo
Give these steps a try, and let me know if you find a specific error message we can dig into further!
备注:内容来源于stack exchange,提问作者Guemiza Amel

