Partimage for old images



  • @Wayne-Workman

    Thanks for the new server install instructions. The install was much easier than I thought. I copied my images over to the new server, and then manually created them with the correct settings. However, when I tried to image a machine, it failed. It said it was trying to use partclone.
    In your instructions you said I needed to use partimage. I searched for instructions, and what I found seemed to suggest I needed to check the FOG_FORMAT_FLAG_IN_GUI in FOG general settings.
    See this - https://forums.fogproject.org/topic/3522/just-to-be-clear-about-partimage/7
    I tried to image after selecting that option, and it still said it was using partclone. I then deleted the image, and then recreated the image. I tried again, and it was still was using partclone.
    Is there instructions on how to enable partimage? Also, will these old images work alongside the new images I will eventually need to create?
    Thanks

    –Moderator note: This topic was forked from here:
    https://forums.fogproject.org/topic/8970/decreasing-disk-space



  • @Tom-Elliott

    After upgrading to RC-25 as you suggested, the issue is resolved. I can now image computers. Thank you and the other forum members for the help.



  • This post is deleted!

  • Senior Developer

    @Chuck2000 yes, those instructions will work. I personally recommend the GIT method.



  • @Wayne-Workman

    Okay, I will try an upgrade. I have never updates a FOG server before. Are these the instructions that I should be following?

    https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk


  • Moderator

    @Chuck2000 Tom says if you update to RC-25, this issue will be fixed. Please do that and try again.



  • @Wayne-Workman

    Okay, I updated to partimage. Here is the output - thanks.

    #!ipxe
    set fog-ip 172.16.5.153
    set fog-webroot fog
    set boot-url http://${fog-ip}/${fog-webroot}
    cpuid --ext 29 && set arch x86_64 || set arch i386
    goto get_console
    :console_set
    colour --rgb 0x00567a 1 ||
    colour --rgb 0x00567a 2 ||
    colour --rgb 0x00567a 4 ||
    cpair --foreground 7 --background 2 2 ||
    goto MENU
    :alt_console
    cpair --background 0 1 ||
    cpair --background 1 2 ||
    goto MENU
    :get_console
    console --picture http://172.16.5.153/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
    :MENU
    menu
    colour --rgb 0x00567a 0 ||
    cpair --foreground 1 1 ||
    cpair --foreground 0 3 ||
    cpair --foreground 4 4 ||
    item --gap Host is registered as 7020image!
    item --gap -- -------------------------------------
    item fog.local Boot from hard disk
    item fog.memtest Run Memtest86+
    item fog.keyreg Update Product Key
    item fog.deployimage Deploy Image
    item fog.multijoin Join Multicast Session
    item fog.quickdel Quick Host Deletion
    item fog.sysinfo Client System Information (Compatibility)
    choose --default fog.local --timeout 3000 target && goto ${target}
    :fog.local
    sanboot --no-describe --drive 0x80 || goto MENU
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=172.16.5.153/fog/ consoleblank=0 rootfstype=ext4 loglevel=4
    imgfetch init_32.xz
    boot || goto MENU
    :fog.memtest
    kernel memdisk iso raw
    initrd memtest.bin
    boot || goto MENU
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=172.16.5.153/fog/ consoleblank=0 rootfstype=ext4 loglevel=4
    imgfetch init_32.xz
    boot || goto MENU
    :fog.keyreg
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param keyreg 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.deployimage
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param qihost 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.multijoin
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param sessionJoin 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.quickdel
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param delhost 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.sysinfo
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=172.16.5.153/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=sysinfo
    imgfetch init_32.xz
    boot || goto MENU
    :bootme
    chain -ar http://172.16.5.153/fog/service/ipxe/boot.php##params ||
    goto MENU
    autoboot
    

  • Senior Developer

    Update to RC-25 to fix the partimage/partclone format issue you’re seeing please.


  • Moderator

    @Chuck2000 said in Partimage for old images:

    Please set the mac address into a tasking with the “partimage image” associated to

    Tom means: Set the computer who’s MAC address that is to image via the web interface. Afterwards, don’t boot it up to image, instead go to the link I provided earlier. The output will be different because there’s a task waiting for that MAC. That output is what we need.

    FYI - my images that I copied over and then manually set the settings are showing up with no image size

    That’s fine. This particular field will update when you deploy each of them. Image Size on Client is not the same as Image Size on Server. The server has no idea how big the image extracts to because it’s never deployed the image before.



  • @Tom-Elliott said in Partimage for old images:

    Please set the mac address into a tasking with the “partimage image” associated to

    Thanks, but I’m not sure what to do here:

    Please set the mac address into a tasking with the “partimage image” associated to

    FYI - my images that I copied over and then manually set the settings are showing up with no image size

    0_1479833037842_images.jpg


  • Senior Developer

    @Chuck2000 Please set the mac address into a tasking with the “partimage image” associated to it and then redo the url call and get us the output.

    Please wrap the output in triple backspaces for easier readability.

    172.16.5.153/fog/service/ipxe/boot.php?mac=64:00:6a:8a:f4:5c



  • @Wayne-Workman said in Partimage for old images:

    172.16.5.153/fog/service/ipxe/boot.php?mac=64:00:6a:8a:f4:5c

    Here is the information that was requested - thanks.

    You are currently running version: 1.3.0-RC-24

    DHCP server screenshot:

    0_1479829827220_dhcp.jpg

    boot.php file output:

    #!ipxe
    set fog-ip 172.16.5.153
    set fog-webroot fog
    set boot-url http://${fog-ip}/${fog-webroot}
    cpuid --ext 29 && set arch x86_64 || set arch i386
    goto get_console
    :console_set
    colour --rgb 0x00567a 1 ||
    colour --rgb 0x00567a 2 ||
    colour --rgb 0x00567a 4 ||
    cpair --foreground 7 --background 2 2 ||
    goto MENU
    :alt_console
    cpair --background 0 1 ||
    cpair --background 1 2 ||
    goto MENU
    :get_console
    console --picture http://172.16.5.153/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
    :MENU
    menu
    colour --rgb 0x00567a 0 ||
    cpair --foreground 1 1 ||
    cpair --foreground 0 3 ||
    cpair --foreground 4 4 ||
    item --gap Host is registered as 7020image!
    item --gap -- -------------------------------------
    item fog.local Boot from hard disk
    item fog.memtest Run Memtest86+
    item fog.keyreg Update Product Key
    item fog.deployimage Deploy Image
    item fog.multijoin Join Multicast Session
    item fog.quickdel Quick Host Deletion
    item fog.sysinfo Client System Information (Compatibility)
    choose --default fog.local --timeout 3000 target && goto ${target}
    :fog.local
    sanboot --no-describe --drive 0x80 || goto MENU
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=172.16.5.153/fog/ consoleblank=0 rootfstype=ext4 loglevel=4
    imgfetch init_32.xz
    boot || goto MENU
    :fog.memtest
    kernel memdisk iso raw
    initrd memtest.bin
    boot || goto MENU
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=172.16.5.153/fog/ consoleblank=0 rootfstype=ext4 loglevel=4
    imgfetch init_32.xz
    boot || goto MENU
    :fog.keyreg
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param keyreg 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.deployimage
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param qihost 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.multijoin
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param sessionJoin 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.quickdel
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param username ${username}
    param password ${password}
    param delhost 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :fog.sysinfo
    kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=172.16.5.153/fog/ consoleblank=0 rootfstype=ext4 loglevel=4 mode=sysinfo
    imgfetch init_32.xz
    boot || goto MENU
    :bootme
    chain -ar http://172.16.5.153/fog/service/ipxe/boot.php##params ||
    goto MENU
    autoboot
    

  • Moderator

    @Chuck2000 What is the output of this link?

    172.16.5.153/fog/service/ipxe/boot.php?mac=64:00:6a:8a:f4:5c

    That information was taken from your below screenshots. Be sure that this MAC address is still configured to use partimage in the web interface. Go to the above link and copy/paste what you see.


  • Senior Developer

    @Wayne-Workman We don’t know that yet.

    The other post just says that there was an update, but it was from 5 days ago, to my understanding.

    Was there anything from the boot.php output so we could SEE what’s going on?


  • Moderator

    @Tom-Elliott He should be using RC-25.


  • Senior Developer

    @Wayne-Workman What are you pinging me for?

    What version of FOG is running currently?

    Just saying “what we were supposed to do” isn’t enough, I don’t know all the details. I need those details to more accurately help out.


  • Moderator

    Also pinging @Tom-Elliott. The OP has done what he’s supposed to do for the old 0.32 image to use Partimage, but it’s not working.


  • Moderator

    @Chuck2000 Hi, can you please highlight your new setup details?

    OS version
    FOG version (including RC number)

    Also, what system are you trying to capture/deploy ?

    Oh and is your FOG server the DHCP server now or is it using proxydhcp or did you alter the DHCP server? (and which bootfile are you using? (default is undionly.kpxe))



  • @Wayne-Workman

    I see where to change to partimage – thanks.
    However, that doesn’t appear to be the issue. The imaging process simply won’t start. This is true for both deploying and uploading an image. After several boot/information screens appear, the computer just reboots and the imaging/uploading process won’t begin.
    Below I posted a few screenshots taken when trying to upload a test image to the FOG server. After these screenshots, the computer just restarts and boots to the hard drive.
    Any suggestions? Thanks.
    0_1479826955212_p1.JPG

    0_1479826964672_p2.JPG

    0_1479826987738_p3.JPG


  • Moderator

    @Chuck2000

    Setting up an image to use partimage inside of fog 1.2.0 or FOG 1.3.0 is two-part.

    First, enable the ability to change the images format:
    Web Interface -> FOG Configuration -> FOG Settings -> General Settings -> FOG_FORMAT_FLAG_IN_GUI

    After that above setting is enabled, images will now have an extra option to select their format. This is called “Image Manager” on each individual image. Inside of:
    Web Interface -> Image Management -> [click desired image] -> Image Manager -> Partclone or Partimage
    as pictured below.

    After doing these two steps, the image should deploy with Partimage as needed. And to answer your 2nd question, yes this can work with newer style Partclone images that you create in the future as well. You should always use partclone with all new images you create. This feature to select the image format is only meant to enable you to use your old migrated images until you create replacements.

    0_1479785407188_Image Manager.png


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.