Latest FOG 0.33b
-
[quote=“Albatros, post: 20738, member: 16710”]Ty, Tom.
I tested it and got syntax error on line 837. Had to change
[CODE]if [ “$partitionStart” == “” || “$partitionStart” == “1” ]; then[/CODE]
to
[CODE]if [ “$partitionStart” == “” ] || [ “$partitionStart” == “1” ]; then[/CODE]After I fixed that , I get this error
[IMG]http://i.imgur.com/ifmTWSi.png[/IMG]Sorry that I have now the next error.
Ty very much for your great work, will try to test snapins tomorrw and will will report back.[/quote]Is this the pic you’re referring to.
-
Yes, I have linked to that post in my post.
-
Albatros,
I’m currently downloading a Windows XP iso and going to give this a test after installing it. Hopefully I’ll figure out a fix for your particular issue man.
-
Same thing here. Was finally able to get it to boot to Capone but it gets stuck on Looking Up DMI field. During the initial image I chose a DMI field and put it in the Capone config but still stuck. 0.32
-
You’re using FOG 0.33, or 0.32? I’m not doing any work on 0.32, though I could possibly help if you can get more information.
I’ve tested a few things, and am currently rebuilding the init.gz with a modified version of the current FOG Script in the init.gz file. However, this modification is very slight.
It was, apparently, not resetting the boot flag on the device, which caused the drive to essentially break, causing the particular issues you where seeing. I know it’s not ideal, but I believe you may have to reinstall Windows XP again. Update your FOG server to the latest revision and give this a shot.
The revision will be up in about an hour or so. The revision will be r1018. Revision 1017 has just the updated fog script in src/buildroot/package/fog/scripts/bin and [b]NOT[/b] the init.gz file. r1018 will contain the updated init.gz.
-
Hello Tom.
I tested the new revision and I was able to upload a Windows xp image to the server. I think you still working on downloading a image from the server to the client?
I have tested snapins and had a few errors that I fixed. After this fixes I could install snapins, without any problems.
[CODE]packages\web\lib\fog\ClientServiceManager.class.php
- On line 33, 44, 53 and 61 replaced get(‘id’) with getId(), because there is no method named get(‘value’), but a method named getId() in file packages\web\lib\fog\SnapinTask.class.php
packages\web\service\snapins.file.php
- On line 48 replaced $this->FOGCore with $FOGCore
- Removed the / in all lines containing $FOGCore->getSetting(‘FOG_SNAPINDIR’). ‘/’ .$snapinTask->getSnapin()->get(‘file’)
- On line 53 replaced $snapinTask->getSnapin()->get(‘file’) with $FOGCore->getSetting(‘FOG_SNAPINDIR’). ‘’ .$snapinTask->getSnapin()->get(‘file’)
[/CODE]
-
[quote=“Albatros, post: 20770, member: 16710”]Hello Tom.
I tested the new revision and I was able to upload a Windows xp image to the server. I think you still working on downloading a image from the server to the client?
I have tested snapins and had a few errors that I fixed. After this fixes I could install snapins, without any problems.
[CODE]packages\web\lib\fog\ClientServiceManager.class.php
- On line 33, 44, 53 and 61 replaced get(‘id’) with getId(), because there is no method named get(‘value’), but a method named getId() in file packages\web\lib\fog\SnapinTask.class.php[/code]
[/quote]
Thank you very much for this, I’ll update the files and push the revision. That said, the lines referenced as $snapin->get(‘id’) should work fine as it’s a class which extends the FOGManagerController which uses get(‘<value>’) as the function.
I’ll try with just the $snapintask->get(‘id’) to $snapintask->getId(). If it still doesn’t work after that let me know and I’ll fix the other two lines.
[quote=“Albatros, post: 20770, member: 16710”][code]packages\web\service\snapins.file.php
- On line 48 replaced $this->FOGCore with $FOGCore
- Removed the / in all lines containing $FOGCore->getSetting(‘FOG_SNAPINDIR’). ‘/’ .$snapinTask->getSnapin()->get(‘file’)
- On line 53 replaced $snapinTask->getSnapin()->get(‘file’) with $FOGCore->getSetting(‘FOG_SNAPINDIR’). ‘’ .$snapinTask->getSnapin()->get(‘file’)
[/CODE][/quote]
What errors did you get here? What is the setting for FOG_SNAPINDIR? Or did you just modify so you don’t have a reference as: /opt/fog/snapin//filename.whatever?
That’s too easy a change, but shouldn’t affect the file downloads.
- On line 33, 44, 53 and 61 replaced get(‘id’) with getId(), because there is no method named get(‘value’), but a method named getId() in file packages\web\lib\fog\SnapinTask.class.php[/code]
-
r1019 released to correct issues reported above.
Fixes snapintask->get(‘id’) to snapintask->getId()
Fixes $this->FOGCore to $GLOBALS[‘FOGCore’] and removes ‘/’ references in snapins.file.php
-
For $this I got this error: PHP Fatal error: Using $this when not in object context in /var/www/fog/service/snapins.file.php on line 48
I think this error occurse, because the file snapins.file.php is no class.I had to remove the /, because I had as path /opt/fog/snapins/ in the database, you add there /, then the path is /opt/fog/snapins//<filename>.
For line 53, I got this warning: PHP Warning: filesize(): stat failed for 1.7.0_40_32.sfx.exe in /var/www/fog/service/snapins.file.php on line 53. I changed it to this line, then the could be found
[CODE]header("Content-Length: " . filesize( $FOGCore->getSetting(‘FOG_SNAPINDIR’).‘’.$snapinTask->getSnapin()->get(‘file’)));[/CODE]Edit: Ops was writing a answer to your post before. Will test the new revision.
Edit 2: I tested it, here is a error from the apache log: PHP Fatal error: Call to undefined method SnapinTask::get() in /var/www/fog/lib/fog/ClientServiceManager.class.php on line 61
I don’t see that the class SnapinTask extends from a other class. -
r1020 released with snapin using getId().
Hope this helps.
-
r1021 released. All I did was make the fog.css, more or less, the same is it used to be before my own edits to it were made. Fixed positions are nice, if the display is consistently the same size, but if you minimize the window or make it smaller, the items don’t move which can be problematic.
[quote=“Albatros, post: 20776, member: 16710”]I don’t see that the class SnapinTask extends from a other class.[/quote]
SnapinTask doesn’t have an extension to any other class, however Snapin.class.php does. I made the edits you suggested anyway, but will look into recreating SnapinTask so that it is an extension of another class that uses the get() methods properly. The reason it doesn’t now is beyond my scope of reasoning.
-
Modified ClientServiceManager.class.php back to original settings using get(‘id’) rather than the function getId so things are, hopefully, in line with one another.
Please test it.
r1022 released.
Modified SnapinTask to align more properly with the extending of classes. Added manager class for this class as well.
-
Tested the new revision, get an error from fog service, that the file size is zero.
In file snapins.file.php on line 53 is not given the full path to the file in filesize. After fixing that, the snapin could be downloaded.
Another problem now, the task for the snapin is not get remoed after the installation has finished, means the fog service download/runs the file after it finished again. -
Added the file location to the snapins.file.php file.
Went back to getId() rather than get(‘id’) just as test point. I’m thinking it can’t find the task, therefore can’t remove the task.
r1023.
-
Hi! I’m on revision 1023 and I have two problems when I’m trying to upload an image:
[LIST=1]
[]This is not really important, I have an annoying message that stays for 4-5 minutes with this information. After that the system continues with the image upload. [IMG]https://lh4.googleusercontent.com/-XzXBiI-hhHE/UqjvRCumKuI/AAAAAAAAZIM/X460BXOk748/w929-h697-no/IMG_20131211_183223.jpg[/IMG]
[][S]Sorry, this problem is solved. My fault[/S]
[*]There are still problems with logical partitions and swap?
[/LIST]
Thank you,
Joan -
This is normal behaviour with the kernel. The kernel has to load all the drivers, and the drivers it thinks it needs, when the client is booting into the system. Some systems take longer, some systems take much less time. I don’t know where the differences lie within all the possible types of systems, so this is likely to be something I’m not going to be trying to correct for. The error’s you’re seeing are, in some way’s, to be expected, as they’re basically just telling you the kernel loaded the driver, but there’s no equipment or item to relate it to. They’re generally, as I like to call them, “false” errors.
I don’t know if there are still problems with logical partitions and swap. The r1023 -> and up, revisions should have mkswap/swapon/swapoff and should read the partitions, though I don’t know your particular setups. It’s also using partclone now, so creating/deploying the image shouldn’t be a problem in and of itself.
The one thing I haven’t played with yet, is just using partclone to make an exact replica of the drive vs. the partitions.
I imagine the partitions should only be needed specifically for resizable disks, but could forsee an issue if we copy the drive as is in disk size issues later on. What I mean by this, is if we copy the drive “as is” will it affect drives that might be larger than the original image created drive in limiting the actual size available? These are unknown to me which is why I tried leaving things in, more or less, the same state as before.
I hope this helps. If you’re noticing issues with logical partitions and swap, please try to describe what you’re seeing.
Thank you,
-
Ok, so the error message isn’t the cause for the delay.
Logical volumes seems to be the other problem, I tried today with this setup:
[LIST=1]
[]Primary ext4 --> / of ubuntu 12.04
[]Primary partition --> extended
[LIST=1]
[]Logical ext4 --> /home of ubuntu 12.04
[]Logical swap
[/LIST]
[/LIST]
When I tried to restore, only partitions 1 (primary) and 2 (primary) were restored, the extended partition was empty. I always try to backup and restore full disk, not independent partitions.
Thank you very much. -
My only guess, as to the issue, is that primary partitions are labeled, generally, as : /dev/sda1, /dev/sda2 etc…
I’m guessing, if you were to perform fdisk -l on a working system at that point, you’d see partitions labeled as:
/dev/sda1
/dev/sda2
/dev/sda2p1
/dev/sda2p2Or very similar.
FOG doesn’t search for partitions within partitions, it only searches, to my understanding, for primary partitions.
I don’t know how I can try to make logical partitioning work. My question, though, is why couldn’t you make /home a primary partition on the device. Swap as well?
I only ask this because I’ve tested ext4 imaging on my systems at home, with a similar setup:
/dev/sda1 = / partition
/dev/sda2 = swap partition
/dev/sda3 = /home
/dev/sda4 = /tmp -
[quote=“Tom Elliott, post: 20899, member: 7271”]My only guess, as to the issue, is that primary partitions are labeled, generally, as : /dev/sda1, /dev/sda2 etc…
I’m guessing, if you were to perform fdisk -l on a working system at that point, you’d see partitions labeled as:
/dev/sda1
/dev/sda2
/dev/sda2p1
/dev/sda2p2Or very similar.
FOG doesn’t search for partitions within partitions, it only searches, to my understanding, for primary partitions.
I don’t know how I can try to make logical partitioning work. My question, though, is why couldn’t you make /home a primary partition on the device. Swap as well?
I only ask this because I’ve tested ext4 imaging on my systems at home, with a similar setup:
/dev/sda1 = / partition
/dev/sda2 = swap partition
/dev/sda3 = /home
/dev/sda4 = /tmp[/quote]Yes, your configuration works for my “test”, I was only testing if logical partitions were working.
I need for example this scheme:
[LIST=1]
[]ntfs Windows 7 (I force to 1 partition install as for default it takes 2 partitions)
[]ext4 / ubuntu
[]ext4 /home ubuntu
[]swap
[]If I would like to make a data partition I can’t because all primary partitions are full
[]If I would like to install another OS I can’t because all primary partitions are full
[/LIST] -
Just doing some tests and I’ve found the following: (Latest Debian 64 bit, Test VMs 512mb RAM with Single/Dual vCPUs)
- When you manually enter a MAC, and then do a hardware inventory it gives an invalid MAC address format at the end of the inventory.
- NTFS resizable Image only does the first 100mb partition on windows 7
- When viewing one of my hosts I get the following error:
FOG DEBUG:Image:Database Load Failed:ID:0:Row Not Found
Fix - Give hosts an image association. - When the mouse goes over the deploy button, it changes to garbled words.
- Error 1 can occur after fog registers the host as well as manual entry.
- FOGImageReplicator - didn’t seem to work on it’s own… needed Manual restart to push image. (Possible use Bitorrent Sync instead)
- Deploy seems to error when using resizable image with a single partition windows 7?
- Total block progress only ever gets to 47% and then jumps to 100% when imaging using multi partition image
- Is Partclone CPU intensive? quad core VM managed 1gb/m but single core only 310mb/m upload speeds. or is compression enabled by default?
Great Improvements so far and nice to see that Tom is still going strong. Hopefully we can get all the tiny bugs fixed and we could have the next release of FOG
Some suggestions:
On the Hardware inventory it displays what the host is doing… would it be possible to display an image and have a progress bar? (Some users like to try and do strange things like unplug PCs when they see them doing something they don’t know)
Compression settings in the GUI or in the installer?
Bandwidth graph shows both send a receive instead of picking one?
Partclone displays Block xxx of xxx… could it display progress in MB/GB?
Could logs be sent to the server?