问题标签 [packer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
640 浏览

portable-executable - 二进制加壳程序集合

有人知道我在哪里可以获得 PE 包装器或保护器的集合(例如:upx、ASProtect、Themida 等)吗?

好吧,我已经从“tuts4you.com”中找到了 Unpackers 的集合:http: //mirror7.meh.or.id/Reverse%20Engineering/Best_Reverse_Collection/Unpacking%20Tutorials/

我想知道是否有人知道我在哪里可以找到打包机(不是拆包机)的集合?

0 投票
5 回答
7401 浏览

packer - 对失败的打包程序构建进行故障排除

我刚刚开始使用 Packer,并且有几个我的构建失败的实例,我很想登录到该框以调查原因。但是,似乎没有packer login或类似的命令可以给我一个 shell。相反,在我有机会进行调查之前,运行就终止并拆毁了盒子。

我知道我可以使用 --debug 标志在每个阶段暂停执行,但是我很好奇是否有办法在运行失败后(以及在清理之前)暂停,然后在我的调试完成后停止清理.

谢谢。

0 投票
1 回答
417 浏览

vagrant - 无法使用使用打包程序后处理器 vagrant 创建的框

我按照 packer.io 上的教程从 amazon-ebs 支持的实例创建了一个 vagrant box:https ://www.packer.io/intro 。

唯一的问题是,创建的 .box 文件仅包含 Vagrantfile 和 metadata.json,但我无法找到如何在 vagrant 和 virtualbox 中使用它,因为我见过的所有其他盒子(其中包括 hashcorp/precise32)都有一个 .vmdk 和 . ovf 文件,而我的没有!任何人都按照教程进行操作,可以给我建议吗?谢谢,

0 投票
2 回答
1662 浏览

packer - Packer:将脚本附加为软盘和将它们包含在配置器脚本中有什么区别?

我可以在打包器的许多模板中看到,一些文件作为软盘附加,以便在构建器中完成 VM 创建时立即执行这些文件,并且一些文件包含在配置脚本中,以便稍后连续执行。

两者有什么区别?如何决定在软盘中包含哪些脚本以及在provier 脚本中包含哪些文件?

0 投票
1 回答
1127 浏览

vagrant - 打包机建设者可以依赖另一个建设者吗?

我正在构建一个与 Vagrant 一起使用的开发环境,目前它运行得非常好,但有时我需要做一些不属于基本系统设置的小改动。因此,为了加快构建时间和迭代速度,我想将构建分成两部分,按顺序运行:

  1. 基础镜像(操作系统、常用工具、配置等)
  2. Vagrant 细节(开发者工具、用户配置等)

前者不会经常改变,但后者会。我正在使用 VirtualBox 构建器,但我似乎无法弄清楚如何使一个构建器依赖于另一个构建器——这可能吗?

0 投票
2 回答
1546 浏览

vagrant - Vagrant provision using files included in .box from packer

I'm building a vagrant .box file using packer. I've got something like this in my packer .json config:

It's building the .box, and if I manually untar the file I can see those are included in there. When I end up running "vagrant box add Mybox http://whatever" I can even see them in my ~/.vagrant.d/boxes/MyBox/0/virtualbox folder.

Also, in my packer vagrant template I have a line:

Next, I want to initialize this machine. I did the following:

This file looks like the basic vagrant default, but at the top it mentions config.vm.box = "MyBox".

But then if I vagrant up, I get the following error:

It looks to me like the VagrantFile in /Vagrant/MyBox is referencing the VagrantFile in ~/.vagrant.d/, which is good, that's what I want. But then it's still using the paths relative to /Vagrant/MyBox, when the files are actually relative to ~/.vagrant.d/

Am I missing a step that tells vagrant to copy those files to the instance directory? Or am I referencing them incorrectly in my vagrant template?

0 投票
2 回答
11491 浏览

amazon-web-services - Having trouble creating a basic AWS AMI with Packer.io. SSH Timeout

I'm trying to follow these instructions to build a basic AWS image using Packer.io. But it is not working for me.

Here is my Template file:

You will notice that I had to deviate from the instructions by adding the two lines at the bottom (for VPC and subnets). This is because I kept getting the following error:

That VPC and Subnet are temprorary ones that I manually had to create. But why should I have to do that? Why doesn't packer create those and then delete them like I see it creates a temporary security group and key-pair?

Furthermore, even after I add those two lines, it fails to create the AMI because it gets an SSH timeout. Why? I am having no trouble manually SSHing to other instances in this VPC. The temporary packer instance has InstanceState=Running, StatusChecks=2/2 and SecurityGroup that allows SSH from all over the world.

See the debug output of the packer command below:

0 投票
2 回答
7601 浏览

amazon-web-services - 将什么烘焙到 AWS AMI 中以及使用 cloud-init 预置什么?

我正在使用 AWS Cloudformation 为我的 Web 应用程序设置大量网络基础设施元素(VPC、SecurityGroups、子网、自动缩放组等)。我希望整个过程自动化。我想单击一个按钮并能够启动整个过程。

我已经成功创建了一个 Cloudformation 模板来设置所有这些网络基础设施。然而,EC2 实例目前在没有任何需要的软件的情况下启动。现在我正试图弄清楚如何最好地在他们身上安装该软件。

为此,我正在使用Packer.io创建 AMI 。但有些人反而敦促我使用 Cloud-Init。我应该使用什么启发式方法来决定将什么烘焙到 AMI 和/或通过 Cloud-Init 配置什么?

例如,我想预配置一个 EC2 实例以允许我 ( saqib) 从我自己的笔记本电脑上无需密码即可登录。因此,EC2 必须有一个用户。该用户必须有一个主目录。在那个主目录中必须有一个.ssh/known_hosts包含加密代码的文件。我应该将这些目录烘焙到 AMI 中吗?还是我应该使用 cloud-init 来设置它们?在这种情况和其他类似情况下我应该如何决定?

0 投票
2 回答
1382 浏览

rvm - Packer.io 使用 puppet 配置程序失败:/usr/bin/puppet: line 3: rvm: command not found

我正在尝试使用 Packer.io 和 Puppet 构建一个 Vagrant box 文件。我有这个模板作为起点: https ://github.com/puphpet/packer-templates/tree/master/centos-7-x86_64

我在 shell 配置器之后添加了 Puppet 配置器:

当我开始构建图像时

packer-io build -only=virtualbox-iso template.json

然后我得到这个错误:

如果我通过 tty 登录到该框,我可以以 vagrant 用户身份运行rvmpuppet命令。我做错了什么?

0 投票
3 回答
1615 浏览

vagrant - 如何使用打包器与盒子文件?

我有一个 vagrantfile 使用 virtualbox 顶部的一个带有配置脚本的框。

现在我正在尝试使用打包器在提供后已经输出一个框。

但是我找不到构建器来使用我已经拥有的“.box”文件。我究竟做错了什么?