"builders": [ { "type": "amazon-ebs", "access_key": "{{user `aws_access_key`}}", "secret_key": "{{user `aws_secret_key`}}", "region": "us-east-1", "source_ami": "ami-2d39803a", "ssh_pty": true, "instance_type": "t2.micro", "ssh_username": "ubuntu", "ami_block_device_mappings": [ { "device_name": "/dev/sdb", "virtual_name": "ephemeral0", "volume_size": 100, "volume_type": "gp2", "delete_on_termination": false } ], "ami_name": "Test {{timestamp}}" } ]df -hFilesystem Size Used Avail Use% Mounted onudev 492M 12K 492M 1% /devtmpfs 100M 336K 99M 1% /run/dev/xvda1 7.8G 797M 6.6G 11% /none 4.0K 0 4.0K 0% /sys/fs/cgroupnone 5.0M 0 5.0M 0% /run/locknone 497M 0 497M 0% /run/shmnone 100M 0 100M 0% /run/userroot@ip-172-31-57-226:~# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTxvda 202:0 0 8G 0 disk└─xvda1 202:1 0 8G 0 part /Did you format and mount it?
--
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/24d98b91-a6db-411d-bb68-055877a1c155%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
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/899fac3d-db21-43b8-b39c-e9b70e562c92%40googlegroups.com.
root@ip-172-31-53-251:~# df -hFilesystem Size Used Avail Use% Mounted onudev 492M 12K 492M 1% /devtmpfs 100M 336K 99M 1% /run/dev/xvda1 7.8G 796M 6.6G 11% /none 4.0K 0 4.0K 0% /sys/fs/cgroupnone 5.0M 0 5.0M 0% /run/locknone 497M 0 497M 0% /run/shmnone 100M 0 100M 0% /run/userroot@ip-172-31-53-251:~# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTxvda 202:0 0 8G 0 disk└─xvda1 202:1 0 8G 0 part /root@ip-172-31-53-251:~# ls -al /dev/sd* /dev/xvd*ls: cannot access /dev/sd*: No such file or directorybrw-rw---- 1 root disk 202, 0 Oct 31 01:41 /dev/xvdabrw-rw---- 1 root disk 202, 1 Oct 31 01:41 /dev/xvda1To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/899fac3d-db21-43b8-b39c-e9b70e562c92%40googlegroups.com.
--Alvaro
I expected to have the volume being mounted during bake time, but it actually being created during AMI creation.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/58998108-c39d-4988-978c-7b698da7ae67%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
Thanks for helping!
virtual_name , I am able to see xvdl 202:176 0 100G 0 disklsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTxvda 202:0 0 10G 0 disk├─xvda1 202:1 0 1M 0 part└─xvda2 202:2 0 10G 0 part /xvdf 202:80 0 6G 0 disk└─xvdf1 202:81 0 6G 0 part /homexvdg 202:96 0 6G 0 disk└─xvdg1 202:97 0 6G 0 part /varxvdh 202:112 0 1G 0 disk└─xvdh1 202:113 0 1023M 0 part /var/logxvdi 202:128 0 1G 0 disk└─xvdi1 202:129 0 1023M 0 part /var/log/auditxvdj 202:144 0 1G 0 disk└─xvdj1 202:145 0 1023M 0 part /var/tmpxvdl 202:176 0 100G 0 disk "ami_block_device_mappings": [ { "device_name": "/dev/xvdl", "volume_size": 100, "volume_type": "gp2", "delete_on_termination": true } ], "launch_block_device_mappings": [ { "device_name": "/dev/xvdl", "volume_size": 100, "volume_type": "gp2", "delete_on_termination": true } ],- VirtualName (request), virtualName (response)
The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1.The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
Type: String
Required: No
--
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/3577a6fd-dbc6-4732-8451-d3f25425a004%40googlegroups.com.