Thank you for the advice (run fsck!).
Here I had the same problem: ubuntu 12.04, ext3 partition, uploaded a 900 bytes image!
I run a fsck (which said “everything clean”), and the image is now uploading …
now try to deploy it
bye
giammy
Thank you for the advice (run fsck!).
Here I had the same problem: ubuntu 12.04, ext3 partition, uploaded a 900 bytes image!
I run a fsck (which said “everything clean”), and the image is now uploading …
now try to deploy it
bye
giammy
did you solve the problem?
I got that error using php 5.4: everything went ok using php 5.3
bye
giammy
Hi,
tftp service do not need a password, so it is not a password problem.
Note that FTP is not TFTP, are 2 different services.
Do you have a tftp service on your machine?
Do you see it with ps?
in my machine I see:
root@foggy:/# ps aux | grep tftp
root 6396 0.0 0.0 7548 856 pts/0 S+ 11:02 0:00 grep tftp
root 12614 0.0 0.0 14632 320 ? Ss May02 0:00 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure /tftpboot
Where do you get the message “unable to connect …”?
If you do from another PC
tftp <your fog server IP> which message do you have?
bye
giammy
Dear all,
I’m trying to understand the password scheme of FOG:
I have a (more or less) working configuration, but
I’d like to make things more clear!
I summarize what I have uderstand up to now …
if someone wants to integrate, perhaps it will be usefull
for everyone.
The reference Fog Installation installation is a
Linux box (Debian) with both storage node and Web UI
(DNS and DHCP are on different machines), and 1 user
configured with
FOG PASSWORD CONFIGURATION
In the FOG configuration file commons/config.php
define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “root” );
define( “MYSQL_PASSWORD”, “mypass” );
This password is used by the Web UI to access the database.
If wrong - the Web UI says: “Unable to connect to database.”
define( “TFTP_FTP_USERNAME”, “fog” );
define( “TFTP_FTP_PASSWORD”, “mypass” );
This password is used for the FTP access?
(tftp do not need password)
define( “STORAGE_FTP_USERNAME”, “fog” );
define( “STORAGE_FTP_PASSWORD”, “mypass” );
And this password? For FTP? And the previous one?
Which is the difference between the 2?
On the Fog Web UI I have:
Other Information -> Fog Settings
FOG Storage Nodes
FOG_STORAGENODE_MYSQLUSER fogstorage
FOG_STORAGENODE_MYSQLPASS anotherpass
(in my configuration here I have a password in the form fsnnnn …
created at installation time: where is it used?)
FOG_TFTP_FTP_USERNAME fog
FOG_TFTP_FTP_PASSWORD mypass
(same as TFTP_FTP_PASSWORD I imagine)
Storage Management -> Edit Storage Node Definition
Management Username: fog
Management Password: mypass
(this must match the FTP password of the PC?)
thanks
bye
giammy
Hi,
I found out the problem: it was the PHP version.
I install fog letting the installer to download all it needs, but the first installation
was debian testing, which install php5.4, which is NOT compatible with FOG.
I reinstalled all the PC with a debian 6.04 (the last stable), which comes with
php 5.3 and everything go up and works!
thanks for the help
giammy
hi,
I agree: there a problem in my installation ad I get a blank page, not the one yuo attached!
I’m trying to find out ehich is the problem
bye
giammy
hi,
looking at the webserver logs, when I click on “Upload Image”
(and got a blank page) I see various errors.
Can this problem be caused by a wrong php version?
i installed debian testing netinstall, and run the fog
installation script which installed the needed software.
The php version I have now is php5 5.4.0-3.
Can this be a problem?
Is there a php reccomended version?
thanks
giammy
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: groupid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: id in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: imageid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: sub in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: snapinid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: storagegroupid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: storagenodeid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: crit in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: sort in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: userid in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: confirm in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: tab in /var/www/fog/commons/init.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: uname in /var/www/fog/management/includes/processlogin.include.php on line 17, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined variable: SERVER in /var/www/fog/management/includes/mainmenu.include.php on line 32, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Notice: Undefined index: confirm in /var/www/fog/management/includes/tasks.include.php on line 5, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
[Wed May 02 07:56:13 2012] [error] [client 147.162.35.15] PHP Fatal error: Call-time pass-by-reference has been removed in /var/www/fog/management/includes/tasks.confirm.include.php on line 754, referer: [url]http://147.162.35.219/fog/management/index.php?node=host&sub=edit&tab=tasks&id=3[/url]
hi,
in storage management, all storage nodes, default member, I have:
Management Username fog
Management Password mypass
I must I I do not have a very clear understanding of the use of this password:
from what I understand, the linux box has 1 user and 1 mypass to access
both via ssh and ftp: the linux box needs to have other access types?
thanks
giammy
[FONT=Ubuntu][COLOR=#333333][/COLOR][/FONT]
hi,
and thanks for the reply!
I’m working on a Debian GNU/Linux wheezy/sid
root@foggy:# uname -a
Linux foggy 3.2.0-2-amd64 #1 SMP Sun Apr 15 16:47:38 UTC 2012 x86_64 GNU/Linux
I installed on the vanilla debian (netinstall) the fog_0.32.tar.gz package.
The configuration I used is:
Distro: Ubuntu
Installation Type: Normal Server
Server IP Address: x.x.35.223
DHCP router Address: x.x.35.225
DHCP DNS Address: x.x.35.1
Interface: eth0
Using FOG DHCP: 0
Internationalization: 0
I have a single machine with web UI, tftp and storage, while DNS and DHCP
are on different machines.
The fox machine has 1 user fog with password mypass,
and I can connect to it via ssh or ftp.
I setted mypass in the database as:
sudo mysql -p’password’
use fog;
UPDATE users SET uPass = MD5(‘mypass’) WHERE uName = ‘fog’;
exit;
in the file /var/www/fog/commons/config.php I have:
define( “TFTP_FTP_USERNAME”, “fog” );
define( “TFTP_FTP_PASSWORD”, “mypass” );
…
define( “STORAGE_FTP_USERNAME”, “fog” );
define( “STORAGE_FTP_PASSWORD”, “mypass” );
define( “MYSQL_HOST”, “localhost” );
define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “root” );
define( “MYSQL_PASSWORD”, “mypass” );
I think I setted all the password to mypass.
in the web UI -> Fog Settings, I see, as password:
FOG Storage Nodes
FOG_STORAGENODE_MYSQLUSERfogstorage
FOG_STORAGENODE_MYSQLPASSmypass
TFTP server
FOG_TFTP_FTP_USERNAMEfog
FOG_TFTP_FTP_PASSWORDmypass
Am I missing other passwords?
Have you gone through and updated your TFTP password and default storage password after you installed FOG?
I can correctly access to TFTP (no password), and ftp (using mypass).
The default storage password how cam be setted? where is used?
thanks again
giammy
Hi all,
I have a new FOG installation: it has 1 host configured: the host correctly
boots from FOG tftpboot.
From the fog WebUI I correctly see my host as green (I imagine it means that
host server can ping my client).
When I go to Host management, list hosts, click on my host,
go in basic action an click on Upload (I want upload an host image)
I’m shown a page with title “Task management” and a white page.
If I go to task management, active task, no tasks are shown.
Obviously, if I reboot my host, it just boots with pxe, no image upload.
I think the task is not activated: how can I find the reason?
any log file to look at?
thanks
giammy
hi!
the update is here:
[url]http://www.fogproject.org/wiki/index.php?title=Client_Setup#Dual_boot_Images[/url]
It’s working: the problem was with GRUB (I installed grub-legacy instead of grub2
bye
giammy
Hi guys,
and thank you Fernando: it’s now working!
The configuration is:
The PC configuration is:
4 primary partitions sda1 and sda2 for Windows7, sda3 for swap, sda4 for linux (ext3)
The fog server configuration is 1 disk, multipartition, declaring as ostype linux
(declaring it as windows does not work)
The installations are a base Windows 7 installation, and a base Ubuntu installation
CHANGING TO GRUB-LEGACY: this was my problem: grub2 seems to be not working.
Now I’m writing some documentation, and then I’ll try to customize my Ubuntu and Windows
installation to fit my organization, but the base deploying infrastructure seems ok!
thank you again
giammy
Hi Fernando Gietz,
I see you are deploying a multiboot WinXP/Ubuntu.
I’m trying the (almost) same: a single disk, multipartition deploy of a system with Win 7/Ubuntu,
using [FONT=Ubuntu][COLOR=#333333] Version: 0.32 (just downloaded form the site/no customization done)[/COLOR][/FONT]
The image deploy are done correctly, and the MBR is correctly dded on destination PC,
but the system do not boot: if I start with a live CD and do a grub-install everything starts
correctly.
I imagine that the part of the script fog which prepare the disks miss something:
you say you use a personalized version?
Can you make available the modifications? do they include the script “fog”?
Do you declare the OS in the fog WebUI as Windows or Linux?
thanks
giammy
Hi,
an update on my tests (dual boot, Windows 7 partition 1&2, Linux Ubuntu, partition 4 swap in partition 3, all primary partitions).
Defining my system OS as Windows & copy from the original a 512 byte MBR, and correctly deploy it (I diffed the original system with the deployed one and they are equal).
Grub says “Invalid partition” and gives me the grub restore prompt.
Declaring my system OS as Linux, create a 32256 MBR and deploys correctly, but the system keeps rebooting
So, my conclusions up to now are:
Probably in a dual boot system I should fix this part, but at the moment I do not have idea on how to proceed
that’s all by now
giammy
Hi guys,
I update you with my discoveries
The upload part of a working dual boot installation image uploads both the partitions and the MBR, calling it d1.mbr.
Doing a diff from my installation MBR and the d1.mbr file, shows that the files are identical, so the upload image works
correctly.
Looking at the source, if the image type is “mps” (multiple partition, I think, and my image is 1 disk, multiple partition),
the scripts look for a file called d1.mbr and dd it to the harddisk … so it should recover the exact mbr of my original installation!
It’s not doing so (I setted the os type to Wndows 7, Linux and other … no success)
Perhaps there’s some option which enables that part of code for the recovering of the MBR?
thanks
giammy
hi guys,
I have been testing Fog for some days, and it works very well …
Almost do what I want, but I’ll try to make it do all I want!
My current problem is the following:
I imagine that FOG do not deploy the MBR: do I need to say it something particular to deploy the MBR too?
Shouldn’t it deploy by default?
And by the way, how do you troubleshoot this: FOG as a log management system to verify which operations were accomplished?
thanks
giammy
Hi guy, and thanks for the reply: the problem was that I wrote a wong MAC address in the FOG WebUI
thanks
bye
giammy
Hi all,
I set up a fog server on a LAN with a DHCP already present.
(the fog server - where I installed the webUI - keeps the tftp server, but not the dhcp nor the dns server)
To the existend DHCP I added the following entry:
host inst2 {
option host-name “inst2”;
hardware ethernet 00:12:14:1A:44:d3; #inst2
next-server 1.2.3.4;
filename “pxelinux.0”;
fixed-address 1.2.3.5;
}
where 1.2.3.4 is the static IP of my fog server and 1.2.3.5 the IP assigned via DHCP to the client.
Now, when powering on the client, it boots the "FOG Computer Cloning Solution’, which
by default boots from the existing OS installed (a Windows 7 I want use to get the image).
From the FOG WebUI Hot Management - List all hosts - inst2 - basic task I set up a basic task
“Upload” to upload an image (I already defined an image) and Fog puts the task on queue.
(Task management - Active task show the upload task requested for inst2)
When I reboot inst2 I keep seeing the “FOG computer cloning solution” windows, which
as default boot the local OS: what am I doing wrong?
It seems the active task cannot be activated on my client
any idea?
thanks
giammy