Hi Richard, 

I think you pointed me in the right direction here. It seems like my 
preseed file might be the ticket. If you look at `d-i 
partman-auto/choose_recipe select atomic`, this should put everything into 
the / directory, right? I'm not sure why it's not using the full allotted 
40GB's I've stated in the Packer file though. Am I doing something wrong?


On Monday, October 10, 2016 at 9:56:16 AM UTC-7, Rickard von Essen wrote:
>
> Attach your allinone_preseed.cfg
>
> On 10 October 2016 at 18:49, Gonzo Fernandez <[email protected] 
> <javascript:>> wrote:
>
>> Hi Alvaro,
>>
>>  Attached is my base image JSON. If you look you can specifically see 
>> that the image is set to 40Gigs. I use this base image to build a .box 
>> image that I use to Ansible provision all of my tools. Everything works 
>> well except the OS seems to not partition the right amount of space for 
>> root (/) directory. How can I have Packer or Vagrant assign more memory.
>>
>> I found your response here but I was wondering if there was any update? : 
>> https://github.com/mitchellh/vagrant/issues/2339
>>
>> 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  823M  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/NFS/Shared 233G   77G  156G  34% /opt/opallabs
>> vagrant                                      233G   77G  156G  34% 
>> /vagrant
>>
>> ```
>> {
>>   "builders": [
>>   {
>>     "type": "virtualbox-iso",
>>     "vm_name": "base-ubuntu-1404",
>>
>>     "guest_os_type": "Ubuntu_64",
>>     "format": "ova",
>>
>>     "iso_url": "
>> http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/mini.iso
>> ",
>>     "iso_checksum": 
>> "bc09966b54f91f62c3c41fc14b76f2baa4cce48595ce22e8c9f24ab21ac8d965",
>>     "iso_checksum_type": "sha256",
>>
>>     "ssh_username": "ubuntu",
>>     "ssh_password": "meowthis!!!",
>>     "ssh_wait_timeout": "20m",
>>
>>     "headless": false,
>>     "vboxmanage": [
>>       ["modifyvm", "{{.Name}}", "--memory", "2048"],
>>       ["modifyvm", "{{.Name}}", "--cpus", "4"]
>>     ],
>>     "disk_size": "40000",
>>
>>     "http_directory": "http",
>>     "boot_wait": "3s",
>>     "boot_command": [
>>       "<esc><wait>",
>>       "/linux noapic ",
>>       "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort 
>> }}/allinone_preseed.cfg ",
>>       "hostname=ubuntu ",
>>       "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
>>       "fb=false ",
>>       "keyboard-configuration/modelcode=SKIP 
>> keyboard-configuration/layout=USA ",
>>       "keyboard-configuration/variant=USA console-setup/ask_detect=false 
>> ",
>>       "initrd=/initrd.gz -- <enter>"
>>     ],
>>     "shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
>>   }
>>   ],
>>   "provisioners": [
>>     {
>>       "type": "file",
>>       "source":  "files/base_vagrant_insecure_key.pub",
>>       "destination": "/tmp/base_vagrant_insecure_key.pub"
>>     },
>>     {
>>       "type": "shell",
>>       "scripts": [ "scripts/base_provision.sh"]
>>     }
>>   ]
>> }
>> ```
>>
>> On Thursday, October 6, 2016 at 9:57:43 AM UTC-7, Alvaro Miranda Aguilera 
>> wrote:
>>>
>>> hello
>>>
>>> I may be missing something, but I think you haven't shared anything that 
>>> can help you.
>>>
>>> What commands you run, whats the output, what you see, what the host os, 
>>> whats the guest, its Virtualbox? vmware? aws?
>>>
>>>
>>> On Thu, Oct 6, 2016 at 3:14 PM, Gonzo Fernandez <[email protected]> 
>>> wrote:
>>>
>>>> Thank you Alvaro, yes the issue is with the OS creating the partition. 
>>>> I'm hoping there is a setting I can use to have the Os partition a bigger 
>>>> root directory. Would it be best to use a script to resize the partition 
>>>> somehow? Any existing examples would save me a lot of time. Thank you 
>>>> again 
>>>> for the response.
>>>>
>>>> Gonzalo
>>>>
>>>> On Oct 5, 2016, at 10:28 PM, Alvaro Miranda Aguilera <[email protected]> 
>>>> wrote:
>>>>
>>>> can you put the template, scripts and response file on github for 
>>>> review?
>>>>
>>>> the json set the size of the disk on the vm, but after that is the os 
>>>> that create the partitions, so maybe the issue is there
>>>>
>>>> Alvaro
>>>>
>>>> On Thu, Oct 6, 2016 at 2:03 AM, Gonzo Fernandez <[email protected]> 
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm having issues getting packer/vagrant to have a bigger '/' (root) 
>>>>> partition size. As of now I've only gotten it to 5.6 Gigs. I've built a 
>>>>> packer base image and have set the base-virtualbox.json value 'disk_size' 
>>>>> to 40000 (40 Gigs). I'm able to build the base image successfully and I 
>>>>> have another .json packer file that builds the rest of my 'goodies' on 
>>>>> top 
>>>>> of that base image. The problem is that when I 'vagrant up' and it 
>>>>> finishes 
>>>>> building I login and only see root partition of 5.6 Gigs. Where are the 
>>>>> 40 
>>>>> Gigs? I've looked online and people seem to say there is an issue with 
>>>>> packer/vagrant resizing but I'm at a loss. Can anyone of you guys please 
>>>>> help me before I blow my brains out....it's been a long day wrestling 
>>>>> with 
>>>>> this thing.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> -- 
>>>>> 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 [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/packer-tool/21a26a29-7f09-4f31-9561-777eb979af11%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/packer-tool/21a26a29-7f09-4f31-9561-777eb979af11%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Alvaro
>>>>
>>>> -- 
>>>> 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 a topic in the 
>>>> Google Groups "Packer" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/packer-tool/eeDUhiKEDto/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ez4h7fFbr9mgrhdQyK9eLeXQJ0g7r5aL9Moa8Vs1dYQVA%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ez4h7fFbr9mgrhdQyK9eLeXQJ0g7r5aL9Moa8Vs1dYQVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit 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 [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/packer-tool/90ED9CE1-7E1C-4D72-A1DE-A617A497A6FC%40gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/90ED9CE1-7E1C-4D72-A1DE-A617A497A6FC%40gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Alvaro
>>>
>>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/83682ac0-6f8e-4555-9646-7a713c179551%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/83682ac0-6f8e-4555-9646-7a713c179551%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/af477ad1-1d56-416a-8340-f748b18c82f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to