• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Deploying image to VM with smaller HDD

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    4
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jmer129
      last edited by

      Hi all,

      As the title explains, I’m trying to deploy a captured, resizeable image from a Dell PC to a vSphere VM. The problem I’m running into is that FOG is not partitioning the /dev/sda2 partition with enough space and the cloning process fails.

      I’ve verified that the d1.fixed_partition_size under the /images/<image name>/ folder is “1” according to previous forum posts and I have the following listed as my d1.minimum_partition_size:

      0_1476133981843_fdisk.PNG

      However, running fdisk -l gives me the following:

      0_1476133995981_d1_min.PNG

      Is there something that I’m doing wrong? Is there a debug option for fixing partition sizes that I completely missed? Thanks for any help!

      Server
      • FOG Version: 1.3.0 RC-6
      • OS: Ubuntu
      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Seeing as /dev/sda3 is 50GB in size, what’s the size of the VM you’re trying to write to?

        Also, looking at the two files, it would appear partition 2 is the “boot partition”

        Can you edit the d1.fixed_size_partitions file and add: :2 to the file so the file will ultimately look like: 1:2?

        Also, please consider moving to the RC-13. RC-6 has some issues (not relating to imaging that I’m aware of) but Trying to get a clean bit of information for users using older RC’s is somewhat difficult. What’s fixed in Rc-14 may not be fixed for RC-6 and it would be difficult to lead you in the right steps to get a working solution in the case you find something while ON RC-6.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • J
          jmer129
          last edited by jmer129

          Ah, somehow I mixed up the two image files there, sorry! The top image is the result of running fdisk -l, and the bottom is the d1.minimum_partition_size. The image was of a 500gb SATA drive (mostly empty) and I want to deploy to a 50gb VM.

          I have made the change you suggested and it worked! What’s this file actually used for? I assume it tells Partclone which partitions to not resize?

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @jmer129
            last edited by

            @jmer129 That’s exactly what this file is used for. It maintains which partitions should be “fixed” or set as it was when the image was originally captured.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            288

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project