Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Questions: chroot for ARM and how to get temporary VM name and Resource Group #250

Closed
mbentancour opened this issue Apr 21, 2016 · 3 comments

Comments

@mbentancour
Copy link

Are there any plans to have a chroot builder like the one available for AWS? We have some scripts that we use in the AWS chroot builder and it would be really helpful to have the same for Azure.

The other question is if there is any way to get the VM name and the Resource group name of the temporary build. Since there is no chroot option, we are simulating it by finding the temp VM, deleting it, attaching the disk to the packer builder VM, and re-creating it after so that packer can continue. The problem is that if there is more than one build process running at the same time, we have no way of knowing which machine corresponds to each script.

@boumenot
Copy link
Member

We prioritize and implement based on community feedback, so consider this the first vote we've had for a chroot builder.

The resource group and VM name are randomly assigned at run time, and other than the logs they are not exposed. The resource group and VM name are logged, and could be parsed out. There's a request to re-use existing an resource group and resources when executing packer, which may help you.

I don't understand fully your second question fully, or rather I do not understand the process. It's interesting. The existing packer-azure process will delete the VM at the end, but it sounds like your intercepting and stopping that process. (If I understand correctly, this seems like a lot of pain that chroot would just solve for you.)

@boumenot
Copy link
Member

I logged #251 to track the chroot request.

@mbentancour
Copy link
Author

Thanks for your reply. The process is quite complicated, and indeed a chroot builder would solve it.

The process is not interrupted because a VM with the same name, in the same resource group, and with the original disk attached is created at the end of the pseudo-chroot process. This is done only so that packer can continue to run.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants