Transfer Images from 0.32 to fresh 1.2.0 - 1.2.0 can't see images
-
To at least update this a bit - we had a ‘test’ image that we transferred (as is always a usual practice and so we created a ‘new’ Image that we named exactly as the old one, then we saw the partimage/partclone option show up, so we set it to partimage.
The only piece we’re not sure of is if this ‘new’ image is actually going to utilize the old image file, so we’ll give it a test and see what happens.
Hopefully this was the right steps, but if not, any ‘heads ups’ would be appreciated
Cheers
-
it sounds like you figured out what you need accurately. when you create an image, you’re actually creating what i call an “image profile” that contains all of the information about an image that fog needs, and where to get it. so long as the location in the profile matches the location that you put the file (and all of the other information is correct), it should work.
-
Another update - after creating the ‘new’ test image with the same name as the old one, in the headers under ‘Image size: on client’ and ‘: on server’, they both show 0.00iB as the size, so we’re thinking the system isn’t using/seeing the old image file(s)
Guessing there’s still a step missing
-
P.S. it also states ‘No data’ under the Uploaded header.
-
the “on client” info is updated when you upload an image, this will not be filled out for images that are imported from other servers.
the “on server” info is acquired by ftp and it being 0 can mean a number of different issues, including incorrect ftp credentials, or an incorrect file path (remember, it’s case sensitive) -
[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