Transfer Images from 0.32 to fresh 1.2.0 - 1.2.0 can't see images
-
[quote=“Philip Boschman, post: 36735, member: 26110”]P.S. it also states ‘No data’ under the Uploaded header.[/quote]
that’s because there are no records in the database of it being uploaded. it was imported manually.
-
Okay - thanks much JunkHacker,
It sounds like we’re on the right track, but we may have either done something backwards, or we’re still missing a step, so I’ll break it down a bit so I don’t confuse anyone (mostly myself)…
[LIST=1]
[]We set up a direct SecPanel connection from the 1.2.0 to the 0.32 server
[]We copied all the image files from the 0.32 ‘images’ folder directly to the same folder on the 1.2.0
[]We then went into the 1.2.0 Web GUI and checked the ‘FOG_FORMAT_FLAG_IN_GUI’ box
[]We then (after Tom Elliot’s reply) created a ‘new’ image with the same name as the ‘test’ image that we copied
[LIST=1]
[]We named it [B]exactly[/B] the same, case and all
[]We set it to ‘partimage’
[/LIST]
[*]…and here’s where we are now
[/LIST]
…so this is where we need to know what to do next (or to correct) with our steps to allow the 1.2.0 to use/‘see’ the old copied image ‘test’ files (i.e. Do we do something on the DB side? Do we have to run a task? etc.) -
Unless of course I’m that dense and the answer was ‘Nope - you’re seeing what you’re seeing BECAUSE you imported, so you’re done - run the image’
-
the size on server should show up, so that’s a little concerning, but i think 1.2.0 may have had a bug reporting that for some systems (which will be fixed when we release 1.3.0)
try to use the image, if you have any trouble doing so, then we’ll troubleshoot further. -
Awesome.
Thanks again for all the insight, and I will ABSOLUTELY follow up on this thread with either failure OR success.
(I hate posts that get an answer that worked, but then are never replied to with the 2 minutes to at least post, ‘That worked’)
Just FYI - it may be a couple days as we’re still working with the old 0.32 for imaging as we’re under a time crunch to just get it done, but we WILL be testing the new ASA we have time.
Cheers and thanks again
-
Okay - we’re still under the gun with our other project, BUT…
I was able to setup a lab at home with VMWare Workstation 8 and did the following (I’ll add/repeat some of my steps from above)…
[LIST=1]
[]I built a new Ubuntu Server (12.04.5)
[]Installed Fog (1.2.0)
[]Checked the ‘FOG_FORMAT_FLAG_IN_GUI’ box
[]Transferred (copied) the ‘test’ image from our 0.32 Fog server to the new 1.2.0 server
[]Ran chmod 777 on ‘images’ folder
[]Created a ‘new’ image with the same [B]exact[/B] name as transferred (copied) file
[]Set it to ‘partimage’ as per this note form the other post
[LIST=1]
[]“Images made with 0.32 must be set to partimage and 1.x images set to partclone”
[/LIST]
[]Created a dummy VM (no OS)
[]Changed BIOS in dummy to boot from network (PXE)
[]Set up host ‘download’ task
[]Started up the dummy
[/LIST]
From this point everything went normally (system registered, etc.), UNTIL it came to ‘downloading’ the image onto the dummy, at which point it says it completes the task, but no image is loaded, and it just reboots back to the main Fog menu with ‘Quick Image’ as one of the choices, so looks like there is something more needed to get the transferred (copied) image to be ‘seen’/work (i.e. change something in the database???)If anyone has any info on what to do at this point, please let us know, as we really need to get this to work.
Thanks in advance
-
P.S. We just built another Fog server, but this time with Fog 0.32, transferred (copied) the ‘test’ image, and we can’t get it to work either, so there’s something we’re missing somewhere
-
Have you verified that the permissions are proper so things can actually see your images?
[code]sudo touch /images/.mntcheck
sudo touch /images/dev/.mntcheck
sudo chown -R root:root /images
sudo chmod -R 777 /images[/code] -
Sorry for the late reply.
Just got back to the office today, so just ran those commands. Testing now to see what we get, so will report back when done
-
Okay,
This update is from building n EXACT duplicate of the current Ubuntu FOG server (same OS - 12.04.2, same Fog version - 0.32), as well as creating a blank ‘dummy’ system with no OS on it (BTW - we’re doing all this in VMWare Workstation with the ‘Test’ image transferred over to it in the ‘Images’ folder (ad ran the permissions commands from Tom above), so…
Right out of the gate we were able to register the ‘dummy’ VM (shows up in the Hosts), and we were able to create a task, however, now when we get to the Fog GUI on the ‘dummy’ and choose the ‘Quick Image’ option, it prompts for the password (which is the default ‘password’) and…nothing happens.
Not sure what the issue is here, but again, any help would be appreciated
-
the vm that you’re trying to quick image, does it have an image assigned to it? does it have any partitions on the drive?
-
We just created a blank VM (no OS - no nothing), ran the registration (it registered), assigned the ‘Test’ image to it as a task (succeeded), rebooted the system and got the Fog GUI with the ‘Quick Image’ option, which we chose, it asked for the password (we used the default), then…nothing happens…the GUI screen just sits there and we can move up and down the list, choose ‘Quick Image’ again, asks for password - again, put in password - again, then …nothing - again.
We did get some sort of ‘can’t have partition outside the disk’ at one point, but then we changed a parameter that we saw in the old Fog settings to the new, and that error hasn’t returned, so we figured that one out.
Still no go on the imaging though
-
P.S. Just for FYI - the parameter we changed was for the image. The old Fog had it set to MPI - All Disks (Not resizable), and we had set it on the new Fog to MPI - Single Disk (NR), so now when it gets to ‘Checking Hard Disk’, we get ‘Done’ instead of that error
-
This post is deleted! -
Just a quick FYI update - we set the VM to PXE boot, create the task in Fog to deploy to the ‘seen’ VM, it boots up, goes through the initial Fog cmd screen, then at the end - reboots - and it’s at THIS point it reboots into the Fog GUI with the ‘Quick Image’ listed as a choice, so from what we know, the imaging should have happened during the initial boot and NOT reboot (if we have this right), so that kind of suggests that it’s not seeing the image on the initial boot up.
BTW - we made the drive 5GB’s bigger than the actual system (a laptop) that this ‘test’ image was created for, and we set it as IDE, so don’t know if any of that info matters
-
This post is deleted! -
Still trying to see if we’ve missed something, so going through the settings - again
-
Haven’t updated in a while, but after digging on the web a bit more these past few weeks, found a note that it may be due to the old image ID’s still being in play somewhere, so you need to reset them. We’re rebuilding the current server from scratch and going to see what the DB shows when we transfer the ‘Test’ image across. Will update again.
-
I’m having issues using images that I transferred from my previous 0.32 server, to my 1.2 server. So far I have copied the image to the /images folder, and created the"image profile" in the FOG GUI and named it exactly like the file I transferred. I went into the settings and turned on the FLAG_IN_GUI option and set that image to partimage. I’m still receiving this error when I try to deploy this image to a host.
I also created a new image directly from the server and uploaded an image to it, and strangely i’m not seeing the file that should have been added to the /images folder with that images name.
I’m running FOG on Ubuntu 14. I’m not sure if this is a permissions error for the /images folder?
-
@cassie_280 FOG 1.2.0 is notorious for FTP Credentials issues… I’d suspect that it’s either a credentials problem, or the path is not exactly how it should be. the pathnames are case sensitive. Also you need to ensure the right permissions exist on time image you moved in. Look at this:
https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP
and make sure the image you moved has 777 permissions recursively like this:
chmod -R 777 /images