$ packer build file_name.pkr.hcl
$ vagrant init dev-env
$ vagrant box add dev-env output-vagrant/package.box
$ vagrant up
$ vagrant ssh
variable "version" { | |
type = string | |
default = "" | |
} | |
locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") } | |
source "vagrant" "autogenerated_1" { | |
add_force = true | |
communicator = "ssh" | |
provider = "virtualbox" | |
source_path = "ubuntu/focal64" | |
} | |
build { | |
sources = ["source.vagrant.autogenerated_1"] | |
provisioner "shell" { | |
execute_command = "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'" | |
script = "scripts/setup.sh" | |
} | |
} |
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND
Good morning,
I need help creating a box.
I have an image in virtualbox and I want to use the packet to send it to the Vagrant cloud.
Can you help me with the file?
Virtualbox 7
Debian11
Thank you, I await your return.