So I did some more research and it looks like I can import the .ova file that 
gets created and you’re right, the OS does create root ( / ) of 38GB’s with the 
rest being used in boot/swap. 

I think I might have found what the issue was. It looks like my packer-cache 
was pointing to an old VMDK file that wasn’t updated. I deleted this file:
 
``` 
/Users/gonzofernandez/.vagrant.d/boxes/allinone-virtualbox/0/virtualbox/packer-virtualbox-ovf-1476217271-disk1.vmdk
 ```

then I rebuilt with `packer build allineone_virtualbox.json`. This built my new 
VM with all the goodies installed on it. Then I simply `vagrant up` and checked 
the disk:

ubuntu@vagrant:~$ df -h
Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root   38G  5.3G   30G  15% /
none                         4.0K     0  4.0K   0% /sys/fs/cgroup
udev                         2.0G  4.0K  2.0G   1% /dev
tmpfs                        396M  392K  395M   1% /run
none                         5.0M     0  5.0M   0% /run/lock
none                         2.0G  4.0K  2.0G   1% /run/shm
none                         100M     0  100M   0% /run/user
/dev/sda1                    236M   36M  188M  16% /boot

Looks like that did it!

I want to thank you Alvaro for helping me troubleshoot this. You’ve made my 
day! Thanks bud!

> On Oct 11, 2016, at 1:55 PM, Alvaro Miranda Aguilera <kiki...@gmail.com> 
> wrote:
> 
> hello
> 
> i did build the base one.
> 
> template say 40gb, it does create a LVM with / of 38gb, being 2gb used in 
> boot/swap
> 
> so, it did work for me.
> 
> packer 0.10.2
> 
> can we go back a  bit on what you expect to have that is not working?
> 
> Thanks
> Alvaro.
> 
> On Tue, Oct 11, 2016 at 8:23 PM, Gonzo Fernandez <xxthegon...@gmail.com 
> <mailto:xxthegon...@gmail.com>> wrote:
> Hi Alvaro,
> 
> Here is my repo: https://github.com/xxthegonzxx/packer-base 
> <https://github.com/xxthegonzxx/packer-base>
> 
> Feel free to try it out. I would love some feedback. Thanks!
> 
>> On Oct 11, 2016, at 10:49 AM, Alvaro Miranda Aguilera <kiki...@gmail.com 
>> <mailto:kiki...@gmail.com>> wrote:
>> 
>> Hi Gonzalo,
>> 
>> If you can share your project in a github repo I can check for you.
>> 
>> Thanks
>> Alvaro
>> 
>> 
>> On Tue, Oct 11, 2016 at 7:42 PM, Gonzo Fernandez <xxthegon...@gmail.com 
>> <mailto:xxthegon...@gmail.com>> wrote:
>> 
>> Just an update, I've tried using your preseed.cfg file: 
>> https://github.com/cbednarski/packer-ubuntu/blob/master/http/preseed.cfg 
>> <https://github.com/cbednarski/packer-ubuntu/blob/master/http/preseed.cfg>
>> 
>> Unfortunately this did not work as it still doesn't partition enough space 
>> to the root drive (/) :(
>> I'm going crazy with this as it's very frustrating. I'm not sure what else 
>> it could be.
>> 
>> ubuntu@opal-vagrant:~$ sudo fdisk -l
>> 
>> Disk /dev/sda: 21.0 GB, 20971520000 bytes
>> 255 heads, 63 sectors/track, 2549 cylinders, total 40960000 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x0004f51f
>> 
>>    Device Boot      Start         End      Blocks   Id  System
>> /dev/sda1   *        2048      499711      248832   83  Linux
>> /dev/sda2          501758    16775167     8136705    5  Extended
>> /dev/sda5          501760    16775167     8136704   8e  Linux LVM
>> 
>> Disk /dev/mapper/ubuntu--vg-root: 6182 MB, 6182404096 bytes
>> 255 heads, 63 sectors/track, 751 cylinders, total 12075008 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x00000000
>> 
>> Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table
>> 
>> Disk /dev/mapper/ubuntu--vg-swap_1: 2147 MB, 2147483648 bytes
>> 255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x00000000
>> 
>> Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table
>> 
>> ubuntu@opal-vagrant:~$ df -h
>> Filesystem                                   Size  Used Avail Use% Mounted on
>> udev                                            2.0G  4.0K  2.0G   1% /dev
>> tmpfs                                           396M  432K  395M   1% /run
>> /dev/dm-0                                    5.6G  4.5G  822M  85% /
>> none                                            4.0K     0  4.0K   0% 
>> /sys/fs/cgroup
>> none                                            5.0M     0  5.0M   0% 
>> /run/lock
>> none                                            2.0G  4.0K  2.0G   1% 
>> /run/shm
>> none                                           100M     0  100M   0% 
>> /run/user
>> /dev/sda1                                    236M   36M  188M  17% /boot
>> 172.28.128.1:/Users/gonzofernandez/shared  233G   77G  157G  33% /opt/shared
>> vagrant                                        233G   77G  157G  33% /vagrant
>> 
>> 
>> On Tuesday, October 11, 2016 at 3:58:26 AM UTC-7, Alvaro Miranda Aguilera 
>> wrote:
>> 
>> On Mon, Oct 10, 2016 at 7:48 PM, Gonzo Fernandez <xxthe...@gmail.com <>> 
>> wrote:
>> d-i partman-lvm/device_remove_lvm boolean true
>> d-i partman-auto/choose_recipe select atomic
>> 
>> no sure whats different
>> 
>> but can you try once with this preseed?
>> 
>> https://github.com/cbednarski/packer-ubuntu/blob/master/http/preseed.cfg 
>> <https://github.com/cbednarski/packer-ubuntu/blob/master/http/preseed.cfg>
>> 
>> Packer just create the VM disk, but from there is the OS that is doing the 
>> partition layout and sizes.
>> 
>> 
>> Alvaro.
>> 
>> 
>> -- 
>> Alvaro
>> 
>> 
>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html 
>> <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 
>> <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+unsubscr...@googlegroups.com 
>> <mailto:packer-tool+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/1c8cf854-08b0-409b-980c-000e0ec04360%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/1c8cf854-08b0-409b-980c-000e0ec04360%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
>> 
>> 
>> 
>> -- 
>> Alvaro
>> 
>> 
>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html 
>> <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 
>> <https://github.com/mitchellh/packer/issues>
>> IRC: #packer-tool on Freenode
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Packer" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/packer-tool/eeDUhiKEDto/unsubscribe 
>> <https://groups.google.com/d/topic/packer-tool/eeDUhiKEDto/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to 
>> packer-tool+unsubscr...@googlegroups.com 
>> <mailto:packer-tool+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ezRtYEx00Yqy9%2B3pLL-t_Pi7N0ebJFHB6nrFH-ETCCaMg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ezRtYEx00Yqy9%2B3pLL-t_Pi7N0ebJFHB6nrFH-ETCCaMg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> This mailing list is governed under the HashiCorp Community Guidelines - 
> https://www.hashicorp.com/community-guidelines.html 
> <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 
> <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+unsubscr...@googlegroups.com 
> <mailto:packer-tool+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/packer-tool/82D11C78-9A22-4546-BA8B-C2C4B82AB64A%40gmail.com
>  
> <https://groups.google.com/d/msgid/packer-tool/82D11C78-9A22-4546-BA8B-C2C4B82AB64A%40gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> 
> -- 
> Alvaro
> 
> 
> -- 
> This mailing list is governed under the HashiCorp Community Guidelines - 
> https://www.hashicorp.com/community-guidelines.html 
> <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 
> <https://github.com/mitchellh/packer/issues>
> IRC: #packer-tool on Freenode
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Packer" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/packer-tool/eeDUhiKEDto/unsubscribe 
> <https://groups.google.com/d/topic/packer-tool/eeDUhiKEDto/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> packer-tool+unsubscr...@googlegroups.com 
> <mailto:packer-tool+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/packer-tool/CAHqq0eyMAhd4aG%2BT9gyT8wWfEd9RKG8LTSM_j926MerDmC9eow%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/packer-tool/CAHqq0eyMAhd4aG%2BT9gyT8wWfEd9RKG8LTSM_j926MerDmC9eow%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/51325D00-3E50-4731-ADEA-753379FB8B98%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to