News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

0810 alpha 2 no /usr/pluto/diskless

Started by chrisbirkinshaw, April 11, 2009, 01:10:27 AM

Previous topic - Next topic

ProfFalken

Success!

The Diskless_Setup.sh script now works on my DCERouter!

I'll post the amendments I had to make to this post and on my blog a bit later on today.

PF

*** Edit ***

The MDs are reporting that the AV wizard couldn't be started, so that needs investigation.  I've a feeling that the image my still require rebuilding but the base image is now created automatically.

tkmedia

Not sure why you're jumping through all hoops hard coding etc.

If you follow my post, it works perfectly.   Yes the first script "DisklessCreateDefaultimage should run at post-install time.

The 64bit image is not available in 0810 yet that is why it fails.

Somebody with an i386 detected system should have no issues.

So simply change the Arc in web admin and rebuild the image.


Once booted there are issues that need to be fixed.



Tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

ProfFalken

I've edited a few things in the Diskless_Setup.sh and Diskless_CreateFS.sh scripts and it now automatically generates the i386 image and deploys it to new MDs without needing to click the rebuild button in the MD Web interface page.

tkmedia

Please post a ticket in trac with your changes.

If we don't end up  using 64bit images,

you changes will be very helpful.



Tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

ProfFalken

I'll try and get this done tonight.

I presume that if you are adopting 64-bit images, the 32-bit images will remain, or is the plan to phase out 32-bit support?

PF.

tkmedia

no 32 bit is here to stay for now

not sure what's up for 64bit for the short term



Tim

My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

chrisbirkinshaw

Quote from: ProfFalken on April 16, 2009, 10:01:49 PM
pigdog,

nope, it doesn't exist.

Strange, I do have this file with the latest alpha!

My problem is as follows...

When I run the CreateFS script it fails because this command does not return anything to the variable:

local DisklessImages=$(GetDeviceData "$Moon_DeviceID" "$DEVICEDATA_DisklessImages")


The top of the file states:

DEVICEDATA_DisklessImages=258

When I look at the device template I do not see a device data with id 258, though it is available to add from the dropdown.

Seems odd. What does this string normally contain? Does anyone else have it in their Generic PC as an MD template?

Chris



pigdog

Hi chrisbirkinshaw,

Sorry I'm a little confused.  The last message I sent to you in this thread you could not PXE boot.

So it seems that you can PXE boot now.  Correct?

On the core from a terminal you ran sudo /usr/pluto/bin/Diskless_BuildDefaultImage.sh - correct?

Then you did a physical reboot of the MD?

Then Rundiskless setup fails?

Does the device get created in webadmin?

Sorry, I just want to know where I am.

Cheers.

ProfFalken

Ticket created with my Fixes at http://svn.linuxmce.org/trac.cgi/ticket/175.

Please note that I cannot confirm that this works with a 64bit Core as I run dual-core 32Bit Processors in all my servers.

I have tested this on my system at home and also inside a VM but I do not guarantee anything!

Have fun,

PF.

chrisbirkinshaw

Quote from: pigdog on April 21, 2009, 03:27:18 AM
Hi chrisbirkinshaw,

Sorry I'm a little confused.  The last message I sent to you in this thread you could not PXE boot.

So it seems that you can PXE boot now.  Correct?

On the core from a terminal you ran sudo /usr/pluto/bin/Diskless_BuildDefaultImage.sh - correct?

Then you did a physical reboot of the MD?

Then Rundiskless setup fails?

Does the device get created in webadmin?

Sorry, I just want to know where I am.

Cheers.


Yes thanks, I made a stupid mistake with the PXE initial setup. The MD is created in the GUI but diskless setup does not work. I started looking into the CreateFS script and saw that it is not getting the dev data with id 258 from the database for the MD in question. It seems that the device template itself is missing this attribute entirely, and wondered if anyone can compare notes with me?

Thanks,

Chris

Marie.O

Quote from: ProfFalken on April 21, 2009, 09:35:02 PM
Ticket created with my Fixes at http://svn.linuxmce.org/trac.cgi/ticket/175.

Could you download the original sh scripts, and provide a diff. That would ease the workload of the people working with the patches.

Thanks
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

rocketlynx

Have you successfully got an MD created on K810, Alpha2 latest install with your above mentioned files?

I am still not able to get one created.  I still don't even have a diskless directory under /usr/pluto/.

any suggestions?

tkmedia

Until it is fixed please follow instructions for MD in wiki for Alpha 0810







Tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

chrisbirkinshaw

Quote from: rocketlynx on April 22, 2009, 10:40:15 PM
Have you successfully got an MD created on K810, Alpha2 latest install with your above mentioned files?

I am still not able to get one created.  I still don't even have a diskless directory under /usr/pluto/.

any suggestions?

sudo /usr/pluto/bin/Diskless_BuildDefaultImage.sh

This creates what is needed to pxe boot.