Fog image choice with USB
Is it possible to choose a menu entry with an USB key ? What I mean by that is : can I boot on a USB key and deploy an OS without the pxe menu ?
[quote=“Valden, post: 22881, member: 21858”]Do you think, that is possible to download the usb image directly into the ram with tftp ?[/quote]
It may be possible to load with tftp, but you have to make sure that enough ram is available for the image though…
FOG isn’t designed to handle ISO image files.
Do you think, that is possible to download the usb image directly into the ram with tftp ?
The reason fog works is it’s already loaded the networking and is its own system before fog loads. During initial load though, it’s loading directly off of the USB.
I’m glad we could be of some help but I would think it would work better to boot the ISO off of the USB as during the initial load you don’t have access to the network so loading items from the network would be impossible. I don’t even think pxe can load the ISO from a network location.
Thanks you very much for the help !
For the OS deployment the the problem is solved. But for iso file, my path /tftboot/ has already all permissions, Should I configure a samba shared space?
But I don’t understand one thing, I can deploy OS without problemes, therefore I wonder why I can’t do the same with iso files ? I think I miss something…
vmlinuz is just an “executable” of the linux kernel, for lack of a better way to describe it.
In that case, give it a go! Since you aren’t needing anything specific from the IT department, and everything is housed on machines you manage, set up a shared space, save your image there and find the right syntax to get it to load via the “USB FOG Server”.
It’s just for a school research project, I don’t use the university servers. I’ve made a virtual machine for my fog server and I have a phisical computer for the USB boot. I had already set up a fog server, but that was without that USB system as my teacher wants.
And for the kernel line ? Is there differents kinds of kernel ? because I saw memdisk vmlinuz …
Sorry for my english, I’m french
[quote=“Valden, post: 22694, member: 21858”]Does it works only on the usb key ? Is it possible to put a network path to the initrd ?[/quote]
only one way to find out!
It depends on your network, if it is ANYTHING like my network (I work in education), it will be troublesome. We make every user authenticate, if you do not authenticate you only get public rights. So you need to understand your network environment.
From what I gather you are a student correct? I do not allow my students open space to store files and information on my server… you will need to check with your local IT department to find a place to put your files for access, possibly even create a special user and password.
THAT BEING SAID. I have written scripts in the past to authenticate to a network storage drive on windows, so the task is possible, it’s just a matter of learning to write a script that can authenticate itself to a user, whose home directory is the storage space of the iso image.
I would use something like
append iso initrd=10.x.x.x/path/to/FILENAME.iso
where 10.x.x.x is the IP address of the server, you may have to syntax it another way to get it to see the server too, this is only an example, and not a working one.
Does it works only on the usb key ? Is it possible to put a network path to the initrd ?
This post is deleted!
You’ll have to have the ISO file available on the usb key.
To work it properly you could create a menu entry like:
append iso initrd=win7.iso raw
MENU LABEL Windows 7
Boot the Windows 7 ISO from this menu. Needs lots of RAM and time behind to wait for Please Press any key to boot from…
Of course add as many entries as needed and change the files as needed. the initrd will need the actual location. Just like the kernel is calling. So if you place the ISO in fog/win7.iso your initrd command will be: initrd=fog/win7.iso
Thank you it works :D, but how can I do for an iso file ?
You’ll have to manually set this up.
What I mean is you’ll need to, probably, create a script on the key to setup the storage, type,
Maybe follow a similar process for the Menu so you can just make a choice of upload/download etc… The FOG GUI will not be of help here, so you’ll always have to boot to a specific menu option. The GUI will only be useful in the creation of the Task so this works properly. It will also only be useful for the management of the images.
Something along the lines of:
APPEND initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=10.10.10.1 mac=00:1e:ec:e3:dd:1b ftp=10.0.7.1 storage=10.0.7.1:/data/fogstorage/images/dev/ storageip=10.0.7.1 web=10.0.7.1/fog/ osid=5 loglevel=4 consoleblank=0 irqpoll chkdsk=0 img=win7activatedsysprepgen imgType=n imgid=6 PIGZ_COMP=-9 hostname=testname pct=5 ignorepg=1 type=up
MENU LABEL Image Upload
Upload Image to server.
APPEND initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=10.10.10.1 mac=00:1e:ec:e3:dd:1b ftp=10.0.7.1 storage=10.0.7.1:/data/fogstorage/images/dev/ storageip=10.0.7.1 web=10.0.7.1/fog/ osid=5 loglevel=4 consoleblank=0 irqpoll chkdsk=0 img=win7activatedsysprepgen imgType=n imgid=6 PIGZ_COMP=-9 hostname=testname pct=5 ignorepg=1 type=down
MENU LABEL Image Download
Download image from Server to host.
Change all the IP’s to there respective values:
Change the hostname to what you want the hostname to be.
Change the imageName to what you want it to be.
Change the imgType to:
n = single disk resizable
mps = multipart single disk non-resizable
mpa = multipart all disk non-resizable
dd = raw.
Make sure the imgid matches that of a valid image.
Make sure the img matches the name of a valid image.
Change the MAC address to that of your client to be imaged.
It’s not pretty, but it is doable.
It’s for a school project, the task comes from my teacher, he wants that I find a way to boot or deploy an image on the server with an USB boot
I may have found a way. I put syslinux on my USB key, and I copied the /tftpboot/fog repertory to the root of the key. I put the file pxelinux.cfg/default to the USB key root and I rename it syslinux.cfg. Then i can boot a file on the key but, I can’t boot a file on the fog server yet, here is an example of my default file on the USB key:
append iso initrd=memtest/memtest.iso ip=dhcp dns=10.7.112.15 ftp=10.7.112.55 storage=10.7.112.55:/images/ web=10.7.112.55/fog/
How can I boot a file on the server with the menu on my USB key
You can look into gPXE, you can set it up so the disc looks for your FOG server information, I used it as a troubleshooting step when trying to find the issue with my network.
There are USB bootable version of gPXE so you can give that a shot if you want. However, I may be misunderstanding you. This will allow you a USB bootable to FIND your FOG server already set up.
If what you are asking is for a “mobile” FOG server on a USB drive, unfortunately I have no suggestions for you, I have not looked into this.
What do you mean?
The init.gz and bzImage are the main components of FOG. These are the “workhorse” of the FOG System.
If you download FOG, you will have the init.gz and bzImage files. I do not know specifically how you could get them working on a USB stick, but I’m certain it’s possible. I don’t know if anyone’s done this [b]AND[/b] written a tutorial on how to do it though.
The init.gz is the root filesystem of linux that gets loaded and contains all the fog scripts needed for FOG imaging.
The bzImage is the linux kernel that contains all the drivers needed to run your client systems.
I know it’s not much help, but should give you a pretty good starting point.
Is a topic exist on the init.gz and bzimage ?
I’ve never had to try this, but I’d imagine, with use of syslinux and the init.gz/bzImage we’ve already created, this is plenty possible.