Re: "Need to pass list of packages to install Mini usage" error in CentOS image creation using packer

4,286 views
Skip to first unread message
Message has been deleted

Balu Kompalli

unread,
Aug 22, 2016, 2:21:53 PM8/22/16
to Packer


On Monday, August 22, 2016 at 11:45:59 PM UTC+5:30, Balu Kompalli wrote:
Hello Team,


Query 1 :

         Please suggest me how to solve this error while image creation of CentOS7 using packer. I got this error. Is this a consider error or a ignorable warning?

         And I installed openjdk1.8.0 using the follwing command. 

--PFA Query1 Attachment


Query 2:

packages.sh   

       su -c "yum install openjdk1.8.0"
       su -c "yum install openjre1.8.0" 

It shows that jdk dependencies are installed. But when i tried to check with javac and java in the CentOS command line javac  command not found. Java command not found errors are occurred. How to check whether java is working are not. 
 Or I am assuming that javac and java  will work after creation of image at the time of deployment of image. Is this correct or not?


Thank you.

 


Screenshot (1062).png

Rickard von Essen

unread,
Aug 22, 2016, 2:22:24 PM8/22/16
to packe...@googlegroups.com
Question 1 doesn't contain a clear question and question 2 is completely unrelated to Packer. Try google you error or ask on a CentOS Q&A site.

On 22 August 2016 at 20:15, Balu Kompalli <baluma...@gmail.com> wrote:
Hello Team,


Query 1 :

         Please suggest me how to solve this error while image creation of CentOS7 using packer. I got this error. Is this a consider error or a ignorable warning?

         And I installed openjdk1.8.0 using the follwing command. 

--PFA


Query 2:

packages.sh   

       su -c "yum install openjdk1.8.0"
       su -c "yum install openjre1.8.0" 

It shows that jdk dependencies are installed. But when i tried to check with javac and java in the CentOS command line javac  command not found. Java command not found errors are occurred. How to check whether java is working are not. 
 Or I am assuming that javac and java  will work after creation of image at the time of deployment of image. Is this correct or not?


Thank you.

 


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d1ea2719-f685-4e5d-8dd4-00d87158d304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvaro Miranda Aguilera

unread,
Aug 23, 2016, 2:11:44 AM8/23/16
to packe...@googlegroups.com
for number 2.

yum install -y <package>

you can put the 2 lines into one with

yum install -y <package1> <package2>


for number 1, it doesnt say much.

--

Balu Kompalli

unread,
Aug 23, 2016, 8:03:21 AM8/23/16
to Packer
Thank you for your quick response Rickard and Alvaro,

In the above screen shot, The error is 

Error : "Need to pass a list of pkgs to install Mini usage"  

install PACKAGE..

Install a package or packages on your system. 
aliases : install-n , install-na, install-nevra

is this ignorable error?

Thanks to all in advance. 
 

Alvaro Miranda Aguilera

unread,
Aug 23, 2016, 10:46:47 AM8/23/16
to packe...@googlegroups.com
no error should be ignored.

So my suggestion is run the script manually and see where the error is coming from

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Message has been deleted

Alvaro Miranda Aguilera

unread,
Aug 26, 2016, 2:59:22 AM8/26/16
to packe...@googlegroups.com
Hello

Not sure what error is, can you explain?

Documentation is here:

Alvaro.

On Wed, Aug 24, 2016 at 8:23 PM, Prasad Kompalli <prasadkom...@gmail.com> wrote:
Hello Team, 

 
Packer Documentation is not opening to our network. Are this Documentation updating here? 

  It gives  "The  Site Cannot by opening" error. 


Thank you. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages