Preseed partman-auto expert_recipe not working





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I have the following in a preseed file for ubuntu 16.04



# Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman/choose_partition select finish
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm boolean true

d-i partman-auto/choose_recipe select bios-boot-root-swap
d-i partman-auto/expert_recipe string
bios-boot-root-swap ::
512 10 512 ext4
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /boot } .
6144 20 -1 ext4
$defaultignore{ }
$primary{ }
method{ lvm }
device{ /dev/sda }
vg_name{ vg00 } .
1024 110 50% linux-swap
$lvmok{ }
in_vg{ vg00 } lv_name{ lv_swap }
method{ swap } format{ } .
5120 120 -1 ext4
$lvmok{ }
in_vg{ vg00 } lv_name{ lv_root }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / } .


I put this together based on what I could find online. The ubuntu documentation for doing this is woefully inadequate!



Basically, what I want to do is set up to automatically install Ubuntu 16.04 desktop on BIOS based PCs. I've been testing this on a VirtualBox VM at this time. I have a single disk in the VM. I've tried with 10GB and 20GB virtual disks. I want a /boot partition that is 512MB in size. I want another primary partition to be the rest of the disk. I want to use that partition as a physical volume for a LVM volume group named vg00. Within that volume group, I want a swap partition that is at least 1GB in size, but no greater than 50% of my total RAM, which is 4GB in my VM. I want a second logical volume for the root partition (i.e. /).



The above appears to work to get the OS installed. However, when the install is done, the VM fails to boot. It gives me the VirtualBox VM BIOS firmware screen. It then blanks out.



I have no problems with setting up something similar with just plain partitions. That works just fine. When I try to switch to using LVM, it took over 2 days to get the preseed file to a point where the OS installs. Now though, I do not know how to proceed.



Any help figuring out what is wrong with my preseed would be greatly appreciated.



Thank you










share|improve this question





























    1















    I have the following in a preseed file for ubuntu 16.04



    # Partitioning
    d-i partman-auto/disk string /dev/sda
    d-i partman-auto/method string lvm
    d-i partman-auto/purge_lvm_from_device boolean true
    d-i partman/choose_partition select finish
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman-lvm/device_remove_lvm boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman-lvm/confirm_nooverwrite boolean true
    d-i partman-md/device_remove_md boolean true
    d-i partman-md/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    d-i partman/confirm boolean true

    d-i partman-auto/choose_recipe select bios-boot-root-swap
    d-i partman-auto/expert_recipe string
    bios-boot-root-swap ::
    512 10 512 ext4
    $primary{ } $bootable{ }
    method{ format } format{ }
    use_filesystem{ } filesystem{ ext4 }
    mountpoint{ /boot } .
    6144 20 -1 ext4
    $defaultignore{ }
    $primary{ }
    method{ lvm }
    device{ /dev/sda }
    vg_name{ vg00 } .
    1024 110 50% linux-swap
    $lvmok{ }
    in_vg{ vg00 } lv_name{ lv_swap }
    method{ swap } format{ } .
    5120 120 -1 ext4
    $lvmok{ }
    in_vg{ vg00 } lv_name{ lv_root }
    method{ format } format{ }
    use_filesystem{ } filesystem{ ext4 }
    mountpoint{ / } .


    I put this together based on what I could find online. The ubuntu documentation for doing this is woefully inadequate!



    Basically, what I want to do is set up to automatically install Ubuntu 16.04 desktop on BIOS based PCs. I've been testing this on a VirtualBox VM at this time. I have a single disk in the VM. I've tried with 10GB and 20GB virtual disks. I want a /boot partition that is 512MB in size. I want another primary partition to be the rest of the disk. I want to use that partition as a physical volume for a LVM volume group named vg00. Within that volume group, I want a swap partition that is at least 1GB in size, but no greater than 50% of my total RAM, which is 4GB in my VM. I want a second logical volume for the root partition (i.e. /).



    The above appears to work to get the OS installed. However, when the install is done, the VM fails to boot. It gives me the VirtualBox VM BIOS firmware screen. It then blanks out.



    I have no problems with setting up something similar with just plain partitions. That works just fine. When I try to switch to using LVM, it took over 2 days to get the preseed file to a point where the OS installs. Now though, I do not know how to proceed.



    Any help figuring out what is wrong with my preseed would be greatly appreciated.



    Thank you










    share|improve this question

























      1












      1








      1








      I have the following in a preseed file for ubuntu 16.04



      # Partitioning
      d-i partman-auto/disk string /dev/sda
      d-i partman-auto/method string lvm
      d-i partman-auto/purge_lvm_from_device boolean true
      d-i partman/choose_partition select finish
      d-i partman-partitioning/confirm_write_new_label boolean true
      d-i partman-lvm/device_remove_lvm boolean true
      d-i partman-lvm/confirm boolean true
      d-i partman-lvm/confirm_nooverwrite boolean true
      d-i partman-md/device_remove_md boolean true
      d-i partman-md/confirm boolean true
      d-i partman/confirm_nooverwrite boolean true
      d-i partman/confirm boolean true

      d-i partman-auto/choose_recipe select bios-boot-root-swap
      d-i partman-auto/expert_recipe string
      bios-boot-root-swap ::
      512 10 512 ext4
      $primary{ } $bootable{ }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ /boot } .
      6144 20 -1 ext4
      $defaultignore{ }
      $primary{ }
      method{ lvm }
      device{ /dev/sda }
      vg_name{ vg00 } .
      1024 110 50% linux-swap
      $lvmok{ }
      in_vg{ vg00 } lv_name{ lv_swap }
      method{ swap } format{ } .
      5120 120 -1 ext4
      $lvmok{ }
      in_vg{ vg00 } lv_name{ lv_root }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ / } .


      I put this together based on what I could find online. The ubuntu documentation for doing this is woefully inadequate!



      Basically, what I want to do is set up to automatically install Ubuntu 16.04 desktop on BIOS based PCs. I've been testing this on a VirtualBox VM at this time. I have a single disk in the VM. I've tried with 10GB and 20GB virtual disks. I want a /boot partition that is 512MB in size. I want another primary partition to be the rest of the disk. I want to use that partition as a physical volume for a LVM volume group named vg00. Within that volume group, I want a swap partition that is at least 1GB in size, but no greater than 50% of my total RAM, which is 4GB in my VM. I want a second logical volume for the root partition (i.e. /).



      The above appears to work to get the OS installed. However, when the install is done, the VM fails to boot. It gives me the VirtualBox VM BIOS firmware screen. It then blanks out.



      I have no problems with setting up something similar with just plain partitions. That works just fine. When I try to switch to using LVM, it took over 2 days to get the preseed file to a point where the OS installs. Now though, I do not know how to proceed.



      Any help figuring out what is wrong with my preseed would be greatly appreciated.



      Thank you










      share|improve this question














      I have the following in a preseed file for ubuntu 16.04



      # Partitioning
      d-i partman-auto/disk string /dev/sda
      d-i partman-auto/method string lvm
      d-i partman-auto/purge_lvm_from_device boolean true
      d-i partman/choose_partition select finish
      d-i partman-partitioning/confirm_write_new_label boolean true
      d-i partman-lvm/device_remove_lvm boolean true
      d-i partman-lvm/confirm boolean true
      d-i partman-lvm/confirm_nooverwrite boolean true
      d-i partman-md/device_remove_md boolean true
      d-i partman-md/confirm boolean true
      d-i partman/confirm_nooverwrite boolean true
      d-i partman/confirm boolean true

      d-i partman-auto/choose_recipe select bios-boot-root-swap
      d-i partman-auto/expert_recipe string
      bios-boot-root-swap ::
      512 10 512 ext4
      $primary{ } $bootable{ }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ /boot } .
      6144 20 -1 ext4
      $defaultignore{ }
      $primary{ }
      method{ lvm }
      device{ /dev/sda }
      vg_name{ vg00 } .
      1024 110 50% linux-swap
      $lvmok{ }
      in_vg{ vg00 } lv_name{ lv_swap }
      method{ swap } format{ } .
      5120 120 -1 ext4
      $lvmok{ }
      in_vg{ vg00 } lv_name{ lv_root }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ / } .


      I put this together based on what I could find online. The ubuntu documentation for doing this is woefully inadequate!



      Basically, what I want to do is set up to automatically install Ubuntu 16.04 desktop on BIOS based PCs. I've been testing this on a VirtualBox VM at this time. I have a single disk in the VM. I've tried with 10GB and 20GB virtual disks. I want a /boot partition that is 512MB in size. I want another primary partition to be the rest of the disk. I want to use that partition as a physical volume for a LVM volume group named vg00. Within that volume group, I want a swap partition that is at least 1GB in size, but no greater than 50% of my total RAM, which is 4GB in my VM. I want a second logical volume for the root partition (i.e. /).



      The above appears to work to get the OS installed. However, when the install is done, the VM fails to boot. It gives me the VirtualBox VM BIOS firmware screen. It then blanks out.



      I have no problems with setting up something similar with just plain partitions. That works just fine. When I try to switch to using LVM, it took over 2 days to get the preseed file to a point where the OS installs. Now though, I do not know how to proceed.



      Any help figuring out what is wrong with my preseed would be greatly appreciated.



      Thank you







      partitioning system-installation lvm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 7 at 18:43









      Lewis MLewis M

      5557




      5557






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Did you installed the bootloader on your disk ? I don't see any lines about it in your preseed.cfg. Perhaps you could try to add thoses lines after the partitioning scheme ?



          # Boot Loader (GRUB)
          d-i grub-installer/only_debian boolean true
          d-i grub-installer/bootdev string /dev/sda


          I tried with your scheme on a virtualbox and everything runs fine on a debian stretch host.






          share|improve this answer








          New contributor




          Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107794%2fpreseed-partman-auto-expert-recipe-not-working%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Did you installed the bootloader on your disk ? I don't see any lines about it in your preseed.cfg. Perhaps you could try to add thoses lines after the partitioning scheme ?



            # Boot Loader (GRUB)
            d-i grub-installer/only_debian boolean true
            d-i grub-installer/bootdev string /dev/sda


            I tried with your scheme on a virtualbox and everything runs fine on a debian stretch host.






            share|improve this answer








            New contributor




            Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              Did you installed the bootloader on your disk ? I don't see any lines about it in your preseed.cfg. Perhaps you could try to add thoses lines after the partitioning scheme ?



              # Boot Loader (GRUB)
              d-i grub-installer/only_debian boolean true
              d-i grub-installer/bootdev string /dev/sda


              I tried with your scheme on a virtualbox and everything runs fine on a debian stretch host.






              share|improve this answer








              New contributor




              Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                Did you installed the bootloader on your disk ? I don't see any lines about it in your preseed.cfg. Perhaps you could try to add thoses lines after the partitioning scheme ?



                # Boot Loader (GRUB)
                d-i grub-installer/only_debian boolean true
                d-i grub-installer/bootdev string /dev/sda


                I tried with your scheme on a virtualbox and everything runs fine on a debian stretch host.






                share|improve this answer








                New contributor




                Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                Did you installed the bootloader on your disk ? I don't see any lines about it in your preseed.cfg. Perhaps you could try to add thoses lines after the partitioning scheme ?



                # Boot Loader (GRUB)
                d-i grub-installer/only_debian boolean true
                d-i grub-installer/bootdev string /dev/sda


                I tried with your scheme on a virtualbox and everything runs fine on a debian stretch host.







                share|improve this answer








                New contributor




                Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 16 mins ago









                Chr0myChr0my

                11




                11




                New contributor




                Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Chr0my is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107794%2fpreseed-partman-auto-expert-recipe-not-working%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    GameSpot

                    日野市

                    Tu-95轟炸機