Grub2 Centos 7 installation from ISO on hard-disk drive
I could not get working a grub2 custom item menu for installing Centos 7 on a VM.
Actual scenario from lsblk command:
1 disk (sda), with two partitions: sda1 mounted on /BOOT, sda2 mounted on / (dev/sda2/centos-root) and the swap (dev/sda/centos-swap).
I have the ISO file loaded here: /home/user/CentOS-7-x86_64-Minimal-1708.iso.
I edited /etc/grub.d/40_custom as follows:
menuentry 'CentOS7_Test' --class centos --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 7ffca464-c438-4591-be4f-4a7d968087cb
else
search --no-floppy --fs-uuid --set=root 7ffca464-c438-4591-be4f-4a7d968087cb
fi
linux16 /vmlinuz inst.repo=hd:/dev/sda2:home/user/CentOS-7-x86_64-Minimal-1708.iso
initrd16 /initrd.img
}
Then, I ran the command grub2-mkconfig -o /boot/grub2/grub.cfg and rebooted.
Both vmlinuz and initrd.img have been extracted from the /isolinux directory within the ISO and placed into /BOOT directory.
When I select the CentOS7_Test as custom menu item, I finally get this error during installation:
mount: /run/install/isodir/home/user/iso-file-name: failed to setup loop device: No such file or directory
Warning: /run/install/isodir/home/user/iso-file-name has no suitable runtime
May I ask you some hints how to fix the problem?
Thank you.
centos grub2 iso
add a comment |
I could not get working a grub2 custom item menu for installing Centos 7 on a VM.
Actual scenario from lsblk command:
1 disk (sda), with two partitions: sda1 mounted on /BOOT, sda2 mounted on / (dev/sda2/centos-root) and the swap (dev/sda/centos-swap).
I have the ISO file loaded here: /home/user/CentOS-7-x86_64-Minimal-1708.iso.
I edited /etc/grub.d/40_custom as follows:
menuentry 'CentOS7_Test' --class centos --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 7ffca464-c438-4591-be4f-4a7d968087cb
else
search --no-floppy --fs-uuid --set=root 7ffca464-c438-4591-be4f-4a7d968087cb
fi
linux16 /vmlinuz inst.repo=hd:/dev/sda2:home/user/CentOS-7-x86_64-Minimal-1708.iso
initrd16 /initrd.img
}
Then, I ran the command grub2-mkconfig -o /boot/grub2/grub.cfg and rebooted.
Both vmlinuz and initrd.img have been extracted from the /isolinux directory within the ISO and placed into /BOOT directory.
When I select the CentOS7_Test as custom menu item, I finally get this error during installation:
mount: /run/install/isodir/home/user/iso-file-name: failed to setup loop device: No such file or directory
Warning: /run/install/isodir/home/user/iso-file-name has no suitable runtime
May I ask you some hints how to fix the problem?
Thank you.
centos grub2 iso
add a comment |
I could not get working a grub2 custom item menu for installing Centos 7 on a VM.
Actual scenario from lsblk command:
1 disk (sda), with two partitions: sda1 mounted on /BOOT, sda2 mounted on / (dev/sda2/centos-root) and the swap (dev/sda/centos-swap).
I have the ISO file loaded here: /home/user/CentOS-7-x86_64-Minimal-1708.iso.
I edited /etc/grub.d/40_custom as follows:
menuentry 'CentOS7_Test' --class centos --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 7ffca464-c438-4591-be4f-4a7d968087cb
else
search --no-floppy --fs-uuid --set=root 7ffca464-c438-4591-be4f-4a7d968087cb
fi
linux16 /vmlinuz inst.repo=hd:/dev/sda2:home/user/CentOS-7-x86_64-Minimal-1708.iso
initrd16 /initrd.img
}
Then, I ran the command grub2-mkconfig -o /boot/grub2/grub.cfg and rebooted.
Both vmlinuz and initrd.img have been extracted from the /isolinux directory within the ISO and placed into /BOOT directory.
When I select the CentOS7_Test as custom menu item, I finally get this error during installation:
mount: /run/install/isodir/home/user/iso-file-name: failed to setup loop device: No such file or directory
Warning: /run/install/isodir/home/user/iso-file-name has no suitable runtime
May I ask you some hints how to fix the problem?
Thank you.
centos grub2 iso
I could not get working a grub2 custom item menu for installing Centos 7 on a VM.
Actual scenario from lsblk command:
1 disk (sda), with two partitions: sda1 mounted on /BOOT, sda2 mounted on / (dev/sda2/centos-root) and the swap (dev/sda/centos-swap).
I have the ISO file loaded here: /home/user/CentOS-7-x86_64-Minimal-1708.iso.
I edited /etc/grub.d/40_custom as follows:
menuentry 'CentOS7_Test' --class centos --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 7ffca464-c438-4591-be4f-4a7d968087cb
else
search --no-floppy --fs-uuid --set=root 7ffca464-c438-4591-be4f-4a7d968087cb
fi
linux16 /vmlinuz inst.repo=hd:/dev/sda2:home/user/CentOS-7-x86_64-Minimal-1708.iso
initrd16 /initrd.img
}
Then, I ran the command grub2-mkconfig -o /boot/grub2/grub.cfg and rebooted.
Both vmlinuz and initrd.img have been extracted from the /isolinux directory within the ISO and placed into /BOOT directory.
When I select the CentOS7_Test as custom menu item, I finally get this error during installation:
mount: /run/install/isodir/home/user/iso-file-name: failed to setup loop device: No such file or directory
Warning: /run/install/isodir/home/user/iso-file-name has no suitable runtime
May I ask you some hints how to fix the problem?
Thank you.
centos grub2 iso
centos grub2 iso
asked 35 mins ago
R99PhotographyR99Photography
62
62
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505976%2fgrub2-centos-7-installation-from-iso-on-hard-disk-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505976%2fgrub2-centos-7-installation-from-iso-on-hard-disk-drive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown