Use partimage to restore fog images
-
So I think what’s happening is that part image through PM is not liking the multiple partitions of the multiple OS’s since this is being installed on the first partition of the drive. You could try making each individual partition and copying the individual OS’s and seeing if that works, but at that point in time, it might be worth it to just get FOG working in a VM
But when I did my testing, and what I wrote everything up on, it’s was just Windows XP, I didn’t try Windows 7 with it yet.
-
Ok onto my next dream scenario - beefy laptop - running fog with all my images in a virtual box - attach problem laptop via cross over cable to fog laptop with it running in the VM - boot the laptop that needs imaging and it gets imaged from the FOG running in a VM via the laptop - gotta be easy peasy rihggt?
-
you don’t need that beefy of a laptop, mostly just drive space. Although we have it running in a VM, it’s just using 1 core of a Xeon E7 with 2 GB of RAM and we have had no problems with imaging. Drive speed and the cache play a big role in FOG. My server at home runs FOG on 1 core of an i7 with 1 gig of RAM, and I can image test machines (7GB) in about 5 minutes. Not blazing fast, but fast enough. So in theory, as long as the VM is setup in bridged network mode, I don’t see why it shouldn’t work. But personally i’ve always been a fan of plugging everything into a switch for stuff like that.
-
ok cool - so lets say I have my fog server in a VM on beefcake desktop…I have a good laptop too… can install virtual box on it and then copy the stuff from the desktop to the laptop as is…the IP was 192.168.0.13 in the VM on the desktop to work …what do I need to do with the laptop to make other machines be able to be cloned from it via PXE boot etc? I have a cross over cable between machines - thankS KEVIN!!!
-
If all of your machines have a gig Ethernet port, you don’t need to worry about specific cables, they will auto negotiate. If you have 10/100 cards, then you will need the cross over cable. However, depending on how many machines you want to do. You might be better off getting a switch and multicasting the image to multiple machines at once. I don’t think you can straight up copy everything over, I don’t think MySQL likes it (haven’t tried in a while), but I know if you install FOG first, you can copy your images, database and configs over. There is a post floating around right now somewhere, I think from Chad-Bisd that explains the backup/restore procedure. But other than that, there shouldn’t be any problems.
-
Again its purely for steam lining …turn up at a customers house…needs a wipe…BOOM…smashed in 20 mins…copy data back…adios!!! will let you know
-
Had some good success on tests - took cable out of desktop with vm fogbox , straight into laptop , did nothing with any LAN setting apart from make laptop boot network - can register a new host! and quick image as well …will test more after setting up laptop but that is all I need …virtual FOG server in a Virtual Box on a laptop…may even look into ISO booting as well for a complete solution via the CABLE!..will post more later …also I have a hunch the PART IMAGE thing might work better with the image types that have MBR.p1 files…dont know why (one file etc) but will test that also !!!
-
I have this working now in a fashion, see what you think, any thoughts , improvements, would be good
- All fog images need to be Multiple Partition Non Re Size. Give you the MBR file which is essential.
- Use this command to load the mbr onto target disk [SIZE=12px][FONT=Courier][COLOR=#000000]sudo dd if=/pathtoimages/d1.mbr of=/dev/sda[/COLOR][/FONT][/SIZE]
- The disk now has the exact layout of the cloned disk about to be imaged.
- Load image files over the top of the partitions needing imaging. e.g. (win 7 machnie)
after MBR loading disk will have say dev/sda1 (reserved) and dev/sda2. Just load images d1p1 over sda1 and d1p2 over sda2.
Note. Resize in gparted will force a chkdsk in windows…if you leave resize till in windows no force check disk on first boot.
Tested with 7 , vista and XP images. All working.
7 looped a couple of time with the black and white boot manager window before then settling down and installing. Not sure why? But tested 3 or 4 times and it only happens once after loading. -
This post is deleted! -
I have this working now in a fashion, see what you think, thoughts would be good
- All fog images need to be Multiple Partition Non Re Size. Give you the MBR file which is essential.
- Use this command to load the mbr onto target disk [SIZE=12px][FONT=Courier][COLOR=#000000]sudo dd if=/pathtoimages/d1.mbr of=/dev/sda[/COLOR][/FONT][/SIZE]
- The disk now has the exact layout of the cloned disk about to be imaged.
- Load image files over the top of the partitions needing imaging. e.g. (win 7 machnie)
after MBR loading disk will have say dev/sda1 (reserved) and dev/sda2. Just load images d1p1 over sda1 and d1p2 over sda2.
Note. Resize in gparted will force a chkdsk in windows…if you leave resize till in windows no force check disk on first boot.
Tested with 7 , vista and XP images. All working.
7 looped a couple of time with the black and white boot manager window before then settling down and installing. Not sure why? But tested 3 or 4 times and it only happens once after loading.