Error Deploy - SLES - Debug #689
-
I am trying to deploy SLES 15u4 or u5 via packer. This workflow is very well documented and very helpful in options but trying to debug an issue. I have gone through setup three times no on different systems to try to rule out not following all steps /directions and still gettting same failure. I also tried SLES 15u5 (change ISO/md5, versions references etc..) and get same error. So not thinking this is SLES version issue.
So failure is in post customization before it build it info golden image in vcenter image repo: packer-examples-for-vsphere\ansible\users/task/linux.yml --> Cannot make the directory. only variable called in that task are {{ANSIBLE_USERNAME}} Which is used in previous task and that seems to pass. So trying to debug. This brings up second question. How can I add a --debug (where packer stops vs destroying deployment ) so I can shell into host and poke around. when I run .build.sh you can't directly pass --debug So I tried to stick on end of execution stanza but it does not work. Start the Build.echo "Starting the build...." ######### Question:
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Try adding the following to the remote_tmp = /tmp/ |
Beta Was this translation helpful? Give feedback.
-
Thanks. That fixed it for me. Is this issue unique to Ubuntu ( I use this as my local runner for CI)... |
Beta Was this translation helpful? Give feedback.
-
Haven't seen it before but seemed logical based on the output. |
Beta Was this translation helpful? Give feedback.
-
Do we have any comment on where / how to add a packer --debug command so VM upon fail does not tear down but waits for input? Also part of this would be where one could run equivalent of build.sh menu selection via single command: I tried the only example in README.md which is for windows.. but when I try to extrapolate to Linux builds, I get below return like I did not tell it correct path to varables file.
I tried to poke around to figure out what it is expecting for variables but figured maybe someone has can just post (and maybe document) single command that would be output from menu option selection. |
Beta Was this translation helpful? Give feedback.
-
any example of single command Deploy Linux? Example SLES works fine.. But what is the single line command that I can build into CI process |
Beta Was this translation helpful? Give feedback.
-
Tried that. Also thought maybe issue was shell context
|
Beta Was this translation helpful? Give feedback.
Try adding the following to the
ansible.cfg
file.