-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Status: UntriagedAn issue that has yet to be triaged.An issue that has yet to be triaged.
Description
Version
v5.0.0 (2025-10-27)
Environment
VirtualBox: 7.2.4 r170995
Host OS: Arch Linux
Scenario
Start a Vagrant VM with the official bento/ubuntu-24.04 box and create an additional user (user1) via cloud-init.
Steps to Reproduce
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-24.04"
config.vm.provider "virtualbox" do |v|
v.name = "node1"
v.memory = 1024
v.cpus = 2
end
config.vm.cloud_init :user_data do |cloud_init|
cloud_init.content_type = "text/cloud-config"
cloud_init.path = "cloud.cfg"
end
end
cloud.cfg
#cloud-config
users:
- name: user1
sudo: "ALL=(ALL) NOPASSWD:ALL"
plain_text_passwd: 123456
lock_passwd: false
- Create the Vagrantfile and cloud.cfg as shown above.
- run
vagrant up - After the VM is up, run
vagrant ssh - Run cat /etc/passwd | grep user1 or id user1, check if user1 is exists.
Expected Result
cloud-init processes the provided cloud.cfg file during first boot and creates the user user1.
Actual Result
No user user1 is created.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: UntriagedAn issue that has yet to be triaged.An issue that has yet to be triaged.