Attached is my pressed.cfg: ``` # Some inspiration: # * https://github.com/chrisroberts/vagrant-boxes/blob/master/definitions/precise-64/preseed.cfg # * https://github.com/cal/vagrant-ubuntu-precise-64/blob/master/preseed.cfg
# English plx d-i debian-installer/language string en d-i debian-installer/locale string en_US.UTF-8 d-i localechooser/preferred-locale string en_US.UTF-8 d-i localechooser/supported-locales en_US.UTF-8 # Including keyboards d-i console-setup/ask_detect boolean false d-i keyboard-configuration/layout select USA d-i keyboard-configuration/variant select USA d-i keyboard-configuration/modelcode string pc105 # Just roll with it d-i netcfg/get_hostname string this-host d-i netcfg/get_domain string this-host d-i time/zone string UTC d-i clock-setup/utc-auto boolean true d-i clock-setup/utc boolean true # Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive d-i debconf debconf/frontend select Noninteractive d-i pkgsel/install-language-support boolean false tasksel tasksel/first multiselect standard, openssh-server pkgsel pkgsel/include/install-recommends boolean false # Needed for VBox guest additions pkgsel pkgsel/include string make gcc #For the update d-i pkgsel/update-policy select none # Whether to upgrade packages after debootstrap. # Allowed values: none, safe-upgrade, full-upgrade d-i pkgsel/upgrade select safe-upgrade # Stuck between a rock and a HDD place d-i partman-auto/method string lvm d-i partman-lvm/confirm boolean true d-i partman-lvm/device_remove_lvm boolean true d-i partman-auto/choose_recipe select atomic d-i partman/confirm_write_new_label boolean true d-i partman/confirm_nooverwrite boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true # Write the changes to disks and configure LVM? d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm_nooverwrite boolean true d-i partman-auto-lvm/guided_size string max d-i mirror/country string manual d-i mirror/http/hostname string archive.ubuntu.com d-i mirror/http/directory string /ubuntu # No proxy, plx d-i mirror/http/proxy string d-i apt-setup/services-select multiselect security d-i apt-setup/security_host string security.ubuntu.com d-i apt-setup/security_path string /ubuntu # Default user, change d-i passwd/root-login boolean false d-i passwd/user-fullname string ubuntu d-i passwd/username string ubuntu d-i passwd/user-password password meowthis!!! d-i passwd/user-password-again password meowthis!!! # sudo without password d-i passwd/user-default-groups sudo d-i user-setup/encrypt-home boolean false d-i user-setup/allow-password-weak boolean true d-i preseed/late_command string echo "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" >> /target/etc/sudoers;sync # Go grub, go! d-i grub-installer/only_debian boolean true d-i finish-install/reboot_in_progress note ``` > On Oct 10, 2016, at 9:55 AM, Rickard von Essen <[email protected]> > wrote: > > Attach your allinone_preseed.cfg > > On 10 October 2016 at 18:49, Gonzo Fernandez <[email protected] > <mailto:[email protected]>> 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 > <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 > > <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 >> <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 [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 >> <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 >> [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 >> <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 [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 > <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 the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > 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 > <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 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 > [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/CALz9Rt86bbfVFhEqq2_N%3DDC-Nr02Z%3DBWagSyYf2fNi5nAApMoQ%40mail.gmail.com > > <https://groups.google.com/d/msgid/packer-tool/CALz9Rt86bbfVFhEqq2_N%3DDC-Nr02Z%3DBWagSyYf2fNi5nAApMoQ%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/130AA499-5ECF-4C9A-8C63-6781BCC68404%40gmail.com. For more options, visit https://groups.google.com/d/optout.
