it’s different
I’ll try to get a different adapter
Posts made by obeh
-
RE: Fog imaging problem
-
RE: Fog imaging problem
I’ll provide the information once I’m in front of the computer, but from what I’ve seen the mac addr dose not change it’s static, and for evidence still on the same session where it says it’s not registered when i try to register it again it says it’s already registered.
so i don’t think it’s something to do with the mac,
BTW I’ve seen it with both 1.5.7 and 1.5.6.The computer I’m trying to image is a dell latitude 7400 if that can help in any way (M.2 MVMe ssd)
PS, it has only one NIC
-
RE: Fog imaging problem
yes, by scheduling a capture task in the Web U.
and yes i can still see the host in the web ui -
Fog imaging problem
this is my setup
ubuntu desktop 18.04 is my fog server (UFEI if that makes any difference)
the target system is windows 10 (UFEI)the scenario is that I’m able to register my computer with fog and I’m able to see that it was registered with the right mac and other details, but once I’m trying to take the image fog says it’s not registered, the strange thing is that when I’m trying to register it again fog says that it’s already registered…
so I’m kinda stuck in a loop without the ability to image that computer. -
RE: Run a post deploy script
Yes I’m aware of this behavior, I’m working on that from my side…
-
RE: Run a post deploy script
It’s not always sda and nvme i have 3 combinations,
nvne (system) ssd (storage)
nvme (system) nvme (storage)
ssd (system) ssd (storage)So i need something to determine which is which.
-
RE: Run a post deploy script
Tell me what information you are missing and I’ll gladly provide it.
I’ve tried using a very simple script:
my systems are composed of laptops with 1 or 2 disks (so my script is not expecting more than 2 disks)## get all drives that are not the root drive and not a usb drive (if there only one drive it will return an empty string) disk=$(lsblk -e7,11 -lpdn -o NAME,TRAN | grep -v usb | grep -v $(lsblk -no pkname $(lsblk -l -o NAME,MOUNTPOINT -e7 -e11 -p | grep -w '\/$' | awk '{print $1}')) | awk '{print $1}') ## now i'm creating the partions: if [[ ! -z $disks ]]; then parted -s $disk mklabel gpt mkpart pri 0% 100% ## now I'm formatting it: mkfs.ext4 -F ${disk}1 ## getting it's UUID UUID=blkid ${disk}1 -sUUID -ovalue ## insert the disk to fstab echo -e "UUID=${UUID} \t /storage \t ext4 \t defaults \t 0 \t 0" | tee -a /etc/fstab ## mount it mount -a fi
now looking on the pitchers I see that the lsblk does show the second disk but the disks are not mounted so my script fails…
-
RE: Run a post deploy script
So I’ve tried several things but in the end i realized that the 2nd drive is not loaded while deploying so i can’t do anything with it.
Also the busybox has a very limited grep binary.
And does not include lsblk (it’s only get used when piping, as much as i could see)
For now i’ll stick with ansible to do the reset of the work.Unless you have any advice that can help me achieve the target…
-
RE: Run a post deploy script
@Sebastian-Roth I’m not in front of the computer right now i’ll provide both tomorrow.
@george1421 I’ll give it a try tomorrow.
thank you both for the quick response
-
Run a post deploy script
My goal is to format and mount a 2nd hard disk after the deploy is done.
Right now i can’t really find a way to do it with fog.
tried using snapin and postdownload script non work.
When using snapin nothing really happens.
And when using postdownload script it yells at me that he can’t find the sh script.Right now I’m using ansible to do this task it would be nice having one solution for both deployment and post tasks.
The target machines are ubuntu
-
RE: Make fog deploy the image to entire disk
I’m on 1.5.6
Edit :
It’s working!
Now i have snapin that is not working.
I’m trying to mount an extra disk after the deploy.
Is the snapin can be used in that way.
if so what do i need to do to make it work? -
RE: Make fog deploy the image to entire disk
By the way, this is the info about my setup:
Fog is installed on ubuntu 18.04 and is acting as DHCP
FOG is on the latest version
Source OS: ubuntu 18.04 EUFI
Source laptop and destination laptop are equalhere are the files you asked for:
d1.partitions:
label: gpt label-id: 1AE58181-D396-42E3-BB4D-1A968B8CE9C9 device: /dev/nvme0n1 unit: sectors first-lba: 34 last-lba: 500118158 /dev/nvme0n1p1 : start= 2048, size= 1048576, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=81F5D915-3EEC-4FAB-A195-0139D0E84712, name="EFI System Partition" /dev/nvme0n1p2 : start= 1050624, size= 56385882, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=DE8E4D9D-7DB3-4D34-A0BA-D31AB193DE97
d1.minimum.partitions:
label: gpt label-id: 1AE58181-D396-42E3-BB4D-1A968B8CE9C9 device: /dev/nvme0n1 unit: sectors first-lba: 34 last-lba: 500118158 /dev/nvme0n1p1 : start= 2048, size= 1048576, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=81F5D915-3EEC-4FAB-A195-0139D0E84712, name="EFI System Partition" /dev/nvme0n1p2 : start= 1050624, size= 56810149, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=DE8E4D9D-7DB3-4D34-A0BA-D31AB193DE97
d1.fixed_size_partitions:
:1:1
-
Make fog deploy the image to entire disk
I have a project that requires me to deploy more then 100 laptops (3 different brands).
I’m able to clone and deploy the images successfully.
The issue is that fog is deploying on the target system only the used space and leaves the rest of the disk as un assign, what requires me to allocate the space back.Is there a way to tell fog to use the entire disk and not only allocate the space he needs to deploy?