• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Oct 10, 2016, 9:15 PM

    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
    • T
      Tom Elliott
      last edited by Oct 11, 2016, 10:43 AM

      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 Oct 11, 2016, 1:31 PM Oct 11, 2016, 7:29 PM

        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?

        T 1 Reply Last reply Oct 12, 2016, 12:45 PM Reply Quote 0
        • T
          Tom Elliott @jmer129
          last edited by Oct 12, 2016, 12:45 PM

          @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
          1 / 1
          • First post
            3/4
            Last post

          160

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project