can't deploy image.

  • Hi,
    long story short:
    Deployed FOG with latest version on centos7, firewall disabled, selinux permissive.
    I have an image that is called hdd and have pc that is trying to deploy this image via partclone.
    So, if I use settings like on the first picture0_1506007552060_Screen Shot 2017-09-21 at 6.25.05 PM.png
    Im facing with error like here:

    Ok, lets create a folder under /images/hdd and move our image file there (don’t forget about changing owner to fog:root)
    ls -lah /images/hdd/
    total 2.4G
    drwxrwxrwx. 2 fog root 17 Sep 21 11:31 .
    drwxrwxrwx. 7 fog root 92 Sep 21 11:31 …
    -rwxrwxrwx. 1 fog root 2.4G Sep 21 10:07 hdd

    and restart deployment:
    0_1506008214145_Screen Shot 2017-09-21 at 6.36.25 PM.png

    Im a little-bit confused. Whats wrong? can someone share experience with me?

    Thank you.

  • Your solution work pretty good, but there is one mark:
    With ‘yum install partclone’ you will have the latest version, instead of this you need to download version 0.2.89 and compile it.

    Please mark this topic as solved.

    Thank you.

  • @sebastian-roth

    Thank you Sebastian,
    let me try to do this.

  • Developer

    @dingir Not very many people use FOG the way you do. Just dumping a normal dd image to disk is not possible because we use partclone which can work in a dd mode but still adds its own header information to the dump file. So you’d need to convert your dd image before being able to use FOG to deploy it.

    So convert the image by running this commands on your FOG server (make sure you have enough free space on the disk!!):

    shell> yum install partclone
    shell> cd /images/hdd
    shell> partclone.imager -c -s hdd -O hdd_new
    shell> mv -i hdd_new hdd
    mv: overwrite ‘hdd’? y
    shell> chmod 777 hdd

    After that you should be able to deploy the image as expected.

  • @dingir erm no :) fog doesn’t use dd (why raw? space wasting)
    Ever thougth about capturing it with fog itself? Yes it can ;)

    Bild Text

    1. Its a xenserver, raw format
    2. yes, but unsuccessfully
    3. hp z230 WS

    I created a raw image of hdd by using dd and was thinking to use FOG for deploying it on PC/Servers.

  • Moderator

    I’m going to guess you moved files from another location to this server.

  • Moderator

    Well I think we need to add a bit more to the story.

    What system did you capture that image on and what system did you capture it from?

    Has this fog server ever deployed to a target system yet?

    What hardware are you deploying to?