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 picture
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 hddand restart deployment:
Im a little-bit confused. Whats wrong? can someone share experience with me?
Thank you.
-
@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 yourdd
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.
-
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?
-
I’m going to guess you moved files from another location to this server.
-
- Its a xenserver, raw format
- yes, but unsuccessfully
- 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.
-
@dingir erm no fog doesn’t use dd (why raw? space wasting)
Ever thougth about capturing it with fog itself? Yes it can -
@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 yourdd
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.
-
Thank you Sebastian,
let me try to do this. -
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.