1 Rookie
•
45 Posts
0
1661
December 6th, 2021 11:00
Access iDRAC Remote Image from the Operating System
I can mount remote disk images to an iIDRAC9 ( ver 5 firmware ) and boot the server from them, but I cannot figure out how to access the image from the Linux operating system over ssh.
e.g.
- Connect remote image to iDRAC using the racadm remoteimage command.
- ssh to operating system the way Ansible would.
- mount the remote image to a local folder, for example, /mnt/remoteimage
- Access the files on the image.
I know that I can do thing using the virtual console, but that is a manual, interactive process, and I need an automated, scalable process that works with Linux and doesn't require Internet access.
No Events found!
DELL-Joey C
Moderator
•
3.9K Posts
1
December 7th, 2021 19:00
Hello @john.gooch,
I spoke to the co-worker of mine, and he tested something which might be suspected. I told him about after mounting, you were not able to find any mounted devices except the hard drives. He tested what he thought might be the root cause, which is the USB module which might be blacklisted or not working. Try # lsmod | grep -i usb after mounting in iDRAC, it should show a return of a usb storage. If it doesn't probably that's the part you might want to look into.
DELL-Joey C
Moderator
•
3.9K Posts
0
December 6th, 2021 22:00
Hi @john.gooch,
I'm not too good in Linux, but I'll try to help out.
In which step that you are not figuring out? I spoke to one my co-worker and he tried on his test environment, and manage to access the files from Linux SSH while the image is mounted.
Connect remote image to iDRAC using the racadm remoteimage command.
>> You might have already knew this https://dell.to/3DzUOts Page 111
ssh to operating system the way Ansible would.
>> Should be able to SSH to Linux, you may already be able to do that
mount the remote image to a local folder, for example, /mnt/remoteimage
>> Once the image is mounted, try to check lsblk to find the mounted path, it probably would be at /dev/sr1.
Access the files on the image.
>> Should be able to access the files, after mounting the image to your designated folder?
john.gooch
1 Rookie
•
45 Posts
0
December 7th, 2021 10:00
This is where I'm stuck at. lsblk only shows the hard drives. Doing an
"ls /dev/s*" shows /dev/sd* and /dev/sg* devices, and that is it.
I checked dmesg output and nothing there about a cdrom, sr0, or sr1 .
Now, this may be how it's designed to not work , eg the OS is not supposed to have access to the remote drive. Or perhaps I need to install the ISM module which is not currently installed.
Dell-DylanJ
4 Operator
•
2.9K Posts
0
December 7th, 2021 14:00
Installation of the iSM isn't a bad idea, even if just as a test. The iSM exists to enhance communication between the iDRAC and the host OS, so you could see behavioral changes. I've only messed about with the iSM in a MS environment, not so much a Linux one, but I'd be inclined to investigate.
john.gooch
1 Rookie
•
45 Posts
0
February 1st, 2022 13:00
That is probably it, and it's probably blacklisted to prevent booting from usb sticks as that's a security concern.