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

    Virtualbox image fails

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    14
    3.9k
    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.
    • Wayne WorkmanW
      Wayne Workman
      last edited by

      What version of fog are you using???

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @wdmartin As you see in the first screen it says /dev/sda1 where it shows /dev/sda2 in the second screen (Not expanding ...). So the 100 MB is only the first partition but not the whole image. The second partition fails. My guess is that the destination disk (in the VM) is simply too small to fit the sda2 image!

        Please check the original partition table (/images/<image-name>/d1.partitions) on the FOG server to see what size the original disk was. You need to create the VM disk at least that big in your case - using legacy format partimage and sda2 obviously being a RAW/imager partition. Post the contents of d1.partitions here and we should be able to help you calculate the original disk size.

        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

        Q 1 Reply Last reply Reply Quote 2
        • Q
          Quazz Moderator @Sebastian Roth
          last edited by

          @Sebastian-Roth Would it be hard to implement an error warning specifically for hard drive size?

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Quazz I thought about that a couple of times but never got to it. As well I am not exactly sure if we always have the information (original disk size) available. It’s probably easy to grep (and then calculate) if we have d1.partitions but would be a little bit trickier to get from d1.mbr (although possible I suppose). Would you please open a new topic in “Feature Requests” section and we see what we can come up with.

            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
            • Tom ElliottT
              Tom Elliott
              last edited by

              I don’t think this was uploaded at all. First, if you uploaded Part Image would not be the binary in use for deploying to a host.

              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
              • W
                wdmartin
                last edited by

                @Wayne-Workman The version is 1.2.0.

                @Sebastian-Roth I looked, and there is no d1.partitions file as far as I can see. The image is stored in /images/Win7GeneralStaffSysprep, which contains the following:

                wdmartin@FOG:/images/Win7GeneralStaffSysprep$ ls -hal
                total 28G
                drwxrwxrwx  2 root root 4.0K May 12  2015 .
                drwxrwxrwx 32 fog  root 4.0K Feb  9 09:58 ..
                -rwxrwxrwx  1 root root 8.5M May 12  2015 rec.img.000
                -rwxrwxrwx  1 root root  28G May 12  2015 sys.img.000
                

                I tried making a fresh VirtualBox with 30 GB of allocated space. Unfortunately, it displayed the exact same behavior: grabbed a tiny 100MB image, then rebooted and found no OS.

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by

                  @wdmartin This seams to be a very old image. We now usually have files like d1.mbr (MBR plus partition table) and possibly d1.partitions (partition table in text format). So it’s not easy to find out which size the original disk was! The size you see for the file (28G) is most probably only the data (compressed). So the original partition might have been a lot bigger!!

                  The easiest thing for you would be to create a large VMDK disk (not pre-allocated so it won’t be full size from the start anyway) - try 512 GiB or even 1 TiB. Then try deploying. The other thing would be to start a debug deploy task and check the partclone log (should be in /var/log/partclone.log on the client) after the error… Maybe the size is mentioned somewhere in the log.

                  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
                  • W
                    wdmartin
                    last edited by

                    I gave the virtual disk 200 GB, and it failed.

                    Not to be deterred, I gave it 400 GB – and it appears to be working!

                    It seems a tad peculiar that it failed with 200 GB available considering that the original partition is apparently 58 GB. Surely the remaining 142 GB should have been ample? But apparently it really needs lots of breathing room.

                    Q 1 Reply Last reply Reply Quote 0
                    • Q
                      Quazz Moderator @wdmartin
                      last edited by

                      @wdmartin Is the virtual disk a dynamic one by any chance?

                      1 Reply Last reply Reply Quote 0
                      • W
                        wdmartin
                        last edited by

                        Yeah. Would that make a difference?

                        Q 1 Reply Last reply Reply Quote 0
                        • Q
                          Quazz Moderator @wdmartin
                          last edited by

                          @wdmartin I’m not sure, I’ve never tried this, it should announce its proper size and thus work, but I guess it wasn’t doing so until you expanded it?

                          Is the original partition 58gb in size or is there 58gb of data?

                          Either way fixed size is better if disk intensive activity is going to take place anyway.

                          1 Reply Last reply Reply Quote 0
                          • W
                            wdmartin
                            last edited by wdmartin

                            Well, it imaged, but the OS fails to boot. It may not like having been put on a VirtualBox when it was originally built against an Optiplex 990.

                            I got the 58 GB figure from the FOG imaging screen while it was building the second partition. The resulting VDI file is 58 GB, so I think that’s probably accurate.

                            At this point, the FOG part of it is working – it successfully deploys the image across the network to VirtualBox. It’s not FOG’s fault that the image doesn’t work on VirtualBox’s emulated hardware. I may give up and just do a manual install – I only need one VirtualBox installation. Perhaps I’ll pull an image from it for future use once I’ve got it built.

                            Thanks for the assistance! I greatly appreciate it when projects have helpful communities.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator @wdmartin
                              last edited by

                              @wdmartin said:

                              It may not like having been put on a VirtualBox when it was originally built against an Optiplex 990.

                              For sure! Windows is very picky when it comes to IDE controller drivers… Not easy to get a system from bare metal to VM if you don’t adjust the drivers before capturing the image!

                              I got the 58 GB figure from the FOG imaging screen while it was building the second partition.

                              Ok, this meants the data within your second partition is 58 GB (28 GB compressed!) but does not tell you anything about the source partition/disk. It’s not an issue to put 58 GB to a 200 GB disk but a problem if the original file system used to reside on a larger disk - no matter how much free space there is!

                              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

                              131

                              Online

                              12.1k

                              Users

                              17.3k

                              Topics

                              155.4k

                              Posts
                              Copyright © 2012-2024 FOG Project