Preseeding No physical volume defined in volume group












0















A couple of weeks ago I asked about configuring Ubuntu preseed to configure LVM partitions. I got no response to that one.



I was able to figure out how to get logical volumes defined for UEFI within a preseed file for Ubuntu 16.04 desktop. Now I'm trying to set up the physical volume on which the root logical volume (/) resides. I don't expect an answer, but I have to try. :)



The following d-i directives in my preseed file work for configuring LVM and all of my filesystems on an UEFI based virtual machine.



# Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt

d-i partman-auto-lvm/guided_size string max
d-i partman-auto/method string lvm
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-auto/choose_recipe select gpt-boot-root-swap
d-i partman-auto/expert_recipe string
gpt-boot-root-swap ::
512 512 512 fat32
$primary{ }
method{ efi } format{ } .
1024 1024 1024 ext2
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext2 }
mountpoint{ /boot } .
1000 1000 1000000000 ext4
$defaultignore{ }
$primary{ }
method{ lvm }
device{ /dev/sda }
vg_name{ vg00 }
.
1024 3072 10240 ext4
$lvmok{ }
in_vg{ vg00 } lv_name{ lv_root }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / } .
1024 1024 1000000000 ext4
$lvmok{ }
$defaultignore{ }
in_vg{ vg00 } lv_name{ lv_delete }
.

d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true


I've been trying to add encryption to /dev/sda3, which is the physical volume associated with the vg00 volume group on which lv_root is created. I have added the following directives into the preseed file



d-i partman-auto/method string crypto
d-i partman-crypto/create/partitions select /dev/sda3
d-i partman-crypto/keytype select passphrase
d-i partman-crypto/keyhash select sha512
d-i partman-crypto/keysize select 512
d-i partman-crypto/cipher select aes-xts-plain64
d-i partman-crypto/passphrase string ThisIsATest
d-i partman-crypto/passphrase-again string ThisIsATest


I found the above by piecing together bits and pieces I able to put together by doing web searches.



As an aside, Canonical, if Ubuntu is really your bread and butter, why don't you have better documentation? Everything I have found has been from places other than any Ubuntu website.



I know there are things missing, but I do not know what those d-i directives would be. For example, what is the d-i partman-crypto directive to name the encrypted volume? I'm sure that's needed here. I'm sure that is why when I try to boot off of my custom ISO I eventually get the error message



No physical volume defined in volume group
The automatic partitioning recipe contains the definition of a
volume group that does not contain any physical volume.
Please check the automatic partitioning recipe


Like I said at the beginning, I do not expect anyone to answer this question since it's even more niche than my automatic partitioning LVM preseeding question, but I have to try.



Thank you in advance for any help you can provide.










share|improve this question



























    0















    A couple of weeks ago I asked about configuring Ubuntu preseed to configure LVM partitions. I got no response to that one.



    I was able to figure out how to get logical volumes defined for UEFI within a preseed file for Ubuntu 16.04 desktop. Now I'm trying to set up the physical volume on which the root logical volume (/) resides. I don't expect an answer, but I have to try. :)



    The following d-i directives in my preseed file work for configuring LVM and all of my filesystems on an UEFI based virtual machine.



    # Partitioning
    d-i partman-auto/disk string /dev/sda
    d-i partman-lvm/device_remove_lvm boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman/confirm_write_new_label boolean true
    d-i partman-basicfilesystems/choose_label string gpt
    d-i partman-basicfilesystems/default_label string gpt
    d-i partman-partitioning/choose_label string gpt
    d-i partman-partitioning/default_label string gpt
    d-i partman/choose_label string gpt
    d-i partman/default_label string gpt

    d-i partman-auto-lvm/guided_size string max
    d-i partman-auto/method string lvm
    d-i partman-auto-lvm/new_vg_name string vg00
    d-i partman-auto/choose_recipe select gpt-boot-root-swap
    d-i partman-auto/expert_recipe string
    gpt-boot-root-swap ::
    512 512 512 fat32
    $primary{ }
    method{ efi } format{ } .
    1024 1024 1024 ext2
    $primary{ } $bootable{ }
    method{ format } format{ }
    use_filesystem{ } filesystem{ ext2 }
    mountpoint{ /boot } .
    1000 1000 1000000000 ext4
    $defaultignore{ }
    $primary{ }
    method{ lvm }
    device{ /dev/sda }
    vg_name{ vg00 }
    .
    1024 3072 10240 ext4
    $lvmok{ }
    in_vg{ vg00 } lv_name{ lv_root }
    method{ format } format{ }
    use_filesystem{ } filesystem{ ext4 }
    mountpoint{ / } .
    1024 1024 1000000000 ext4
    $lvmok{ }
    $defaultignore{ }
    in_vg{ vg00 } lv_name{ lv_delete }
    .

    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true


    I've been trying to add encryption to /dev/sda3, which is the physical volume associated with the vg00 volume group on which lv_root is created. I have added the following directives into the preseed file



    d-i partman-auto/method string crypto
    d-i partman-crypto/create/partitions select /dev/sda3
    d-i partman-crypto/keytype select passphrase
    d-i partman-crypto/keyhash select sha512
    d-i partman-crypto/keysize select 512
    d-i partman-crypto/cipher select aes-xts-plain64
    d-i partman-crypto/passphrase string ThisIsATest
    d-i partman-crypto/passphrase-again string ThisIsATest


    I found the above by piecing together bits and pieces I able to put together by doing web searches.



    As an aside, Canonical, if Ubuntu is really your bread and butter, why don't you have better documentation? Everything I have found has been from places other than any Ubuntu website.



    I know there are things missing, but I do not know what those d-i directives would be. For example, what is the d-i partman-crypto directive to name the encrypted volume? I'm sure that's needed here. I'm sure that is why when I try to boot off of my custom ISO I eventually get the error message



    No physical volume defined in volume group
    The automatic partitioning recipe contains the definition of a
    volume group that does not contain any physical volume.
    Please check the automatic partitioning recipe


    Like I said at the beginning, I do not expect anyone to answer this question since it's even more niche than my automatic partitioning LVM preseeding question, but I have to try.



    Thank you in advance for any help you can provide.










    share|improve this question

























      0












      0








      0








      A couple of weeks ago I asked about configuring Ubuntu preseed to configure LVM partitions. I got no response to that one.



      I was able to figure out how to get logical volumes defined for UEFI within a preseed file for Ubuntu 16.04 desktop. Now I'm trying to set up the physical volume on which the root logical volume (/) resides. I don't expect an answer, but I have to try. :)



      The following d-i directives in my preseed file work for configuring LVM and all of my filesystems on an UEFI based virtual machine.



      # Partitioning
      d-i partman-auto/disk string /dev/sda
      d-i partman-lvm/device_remove_lvm boolean true
      d-i partman-lvm/confirm boolean true
      d-i partman/confirm_write_new_label boolean true
      d-i partman-basicfilesystems/choose_label string gpt
      d-i partman-basicfilesystems/default_label string gpt
      d-i partman-partitioning/choose_label string gpt
      d-i partman-partitioning/default_label string gpt
      d-i partman/choose_label string gpt
      d-i partman/default_label string gpt

      d-i partman-auto-lvm/guided_size string max
      d-i partman-auto/method string lvm
      d-i partman-auto-lvm/new_vg_name string vg00
      d-i partman-auto/choose_recipe select gpt-boot-root-swap
      d-i partman-auto/expert_recipe string
      gpt-boot-root-swap ::
      512 512 512 fat32
      $primary{ }
      method{ efi } format{ } .
      1024 1024 1024 ext2
      $primary{ } $bootable{ }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext2 }
      mountpoint{ /boot } .
      1000 1000 1000000000 ext4
      $defaultignore{ }
      $primary{ }
      method{ lvm }
      device{ /dev/sda }
      vg_name{ vg00 }
      .
      1024 3072 10240 ext4
      $lvmok{ }
      in_vg{ vg00 } lv_name{ lv_root }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ / } .
      1024 1024 1000000000 ext4
      $lvmok{ }
      $defaultignore{ }
      in_vg{ vg00 } lv_name{ lv_delete }
      .

      d-i partman-partitioning/confirm_write_new_label boolean true
      d-i partman/choose_partition select finish
      d-i partman/confirm boolean true
      d-i partman/confirm_nooverwrite boolean true


      I've been trying to add encryption to /dev/sda3, which is the physical volume associated with the vg00 volume group on which lv_root is created. I have added the following directives into the preseed file



      d-i partman-auto/method string crypto
      d-i partman-crypto/create/partitions select /dev/sda3
      d-i partman-crypto/keytype select passphrase
      d-i partman-crypto/keyhash select sha512
      d-i partman-crypto/keysize select 512
      d-i partman-crypto/cipher select aes-xts-plain64
      d-i partman-crypto/passphrase string ThisIsATest
      d-i partman-crypto/passphrase-again string ThisIsATest


      I found the above by piecing together bits and pieces I able to put together by doing web searches.



      As an aside, Canonical, if Ubuntu is really your bread and butter, why don't you have better documentation? Everything I have found has been from places other than any Ubuntu website.



      I know there are things missing, but I do not know what those d-i directives would be. For example, what is the d-i partman-crypto directive to name the encrypted volume? I'm sure that's needed here. I'm sure that is why when I try to boot off of my custom ISO I eventually get the error message



      No physical volume defined in volume group
      The automatic partitioning recipe contains the definition of a
      volume group that does not contain any physical volume.
      Please check the automatic partitioning recipe


      Like I said at the beginning, I do not expect anyone to answer this question since it's even more niche than my automatic partitioning LVM preseeding question, but I have to try.



      Thank you in advance for any help you can provide.










      share|improve this question














      A couple of weeks ago I asked about configuring Ubuntu preseed to configure LVM partitions. I got no response to that one.



      I was able to figure out how to get logical volumes defined for UEFI within a preseed file for Ubuntu 16.04 desktop. Now I'm trying to set up the physical volume on which the root logical volume (/) resides. I don't expect an answer, but I have to try. :)



      The following d-i directives in my preseed file work for configuring LVM and all of my filesystems on an UEFI based virtual machine.



      # Partitioning
      d-i partman-auto/disk string /dev/sda
      d-i partman-lvm/device_remove_lvm boolean true
      d-i partman-lvm/confirm boolean true
      d-i partman/confirm_write_new_label boolean true
      d-i partman-basicfilesystems/choose_label string gpt
      d-i partman-basicfilesystems/default_label string gpt
      d-i partman-partitioning/choose_label string gpt
      d-i partman-partitioning/default_label string gpt
      d-i partman/choose_label string gpt
      d-i partman/default_label string gpt

      d-i partman-auto-lvm/guided_size string max
      d-i partman-auto/method string lvm
      d-i partman-auto-lvm/new_vg_name string vg00
      d-i partman-auto/choose_recipe select gpt-boot-root-swap
      d-i partman-auto/expert_recipe string
      gpt-boot-root-swap ::
      512 512 512 fat32
      $primary{ }
      method{ efi } format{ } .
      1024 1024 1024 ext2
      $primary{ } $bootable{ }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext2 }
      mountpoint{ /boot } .
      1000 1000 1000000000 ext4
      $defaultignore{ }
      $primary{ }
      method{ lvm }
      device{ /dev/sda }
      vg_name{ vg00 }
      .
      1024 3072 10240 ext4
      $lvmok{ }
      in_vg{ vg00 } lv_name{ lv_root }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ / } .
      1024 1024 1000000000 ext4
      $lvmok{ }
      $defaultignore{ }
      in_vg{ vg00 } lv_name{ lv_delete }
      .

      d-i partman-partitioning/confirm_write_new_label boolean true
      d-i partman/choose_partition select finish
      d-i partman/confirm boolean true
      d-i partman/confirm_nooverwrite boolean true


      I've been trying to add encryption to /dev/sda3, which is the physical volume associated with the vg00 volume group on which lv_root is created. I have added the following directives into the preseed file



      d-i partman-auto/method string crypto
      d-i partman-crypto/create/partitions select /dev/sda3
      d-i partman-crypto/keytype select passphrase
      d-i partman-crypto/keyhash select sha512
      d-i partman-crypto/keysize select 512
      d-i partman-crypto/cipher select aes-xts-plain64
      d-i partman-crypto/passphrase string ThisIsATest
      d-i partman-crypto/passphrase-again string ThisIsATest


      I found the above by piecing together bits and pieces I able to put together by doing web searches.



      As an aside, Canonical, if Ubuntu is really your bread and butter, why don't you have better documentation? Everything I have found has been from places other than any Ubuntu website.



      I know there are things missing, but I do not know what those d-i directives would be. For example, what is the d-i partman-crypto directive to name the encrypted volume? I'm sure that's needed here. I'm sure that is why when I try to boot off of my custom ISO I eventually get the error message



      No physical volume defined in volume group
      The automatic partitioning recipe contains the definition of a
      volume group that does not contain any physical volume.
      Please check the automatic partitioning recipe


      Like I said at the beginning, I do not expect anyone to answer this question since it's even more niche than my automatic partitioning LVM preseeding question, but I have to try.



      Thank you in advance for any help you can provide.







      partitioning uefi encryption lvm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago









      Lewis MLewis M

      5306




      5306






















          0






          active

          oldest

          votes











          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%2f1109752%2fpreseeding-no-physical-volume-defined-in-volume-group%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1109752%2fpreseeding-no-physical-volume-defined-in-volume-group%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轟炸機