issue with linux vm's

marinusx

Dabbler
Joined
Jan 6, 2021
Messages
11
hello,

whenever i install any linux OS, after install or before, like with ubuntu, i get prompted with this:
1609961443839.png



and add the iso files like this:
1609961474764.png



what am i doing wrong?
 

blanchet

Guru
Joined
Apr 17, 2018
Messages
516
Debian-based distribution does not install the EFI boot file in the right location, but it is easy to fix

This is the procedure for Debian, adapt for Ubuntu

Exit the shell
Shell> exit

Navigate in the menu of the EFI boot manager
  • Boot Maintenance Manager
  • Boot from file
    • <NO VOLUME LABEL ... GPT ...>
    • <EFI>
    • <debian>
    • <grubx64.efi>
Now GRUB appears and the system boots
  • Login as root and type the following commands to fix the EFI boot issue
Code:
mkdir -p /boot/efi/EFI/BOOT/
cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/BOOT/bootx64.efi


More details on this thread
 

marinusx

Dabbler
Joined
Jan 6, 2021
Messages
11
Debian-based distribution does not install the EFI boot file in the right location, but it is easy to fix

This is the procedure for Debian, adapt for Ubuntu

Exit the shell
Shell> exit

Navigate in the menu of the EFI boot manager
  • Boot Maintenance Manager
  • Boot from file
    • <NO VOLUME LABEL ... GPT ...>
    • <EFI>
    • <debian>
    • <grubx64.efi>
Now GRUB appears and the system boots
  • Login as root and type the following commands to fix the EFI boot issue
Code:
mkdir -p /boot/efi/EFI/BOOT/
cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/BOOT/bootx64.efi


More details on this thread

  • Boot Maintenance Manager
  • Boot from file
    • <NO VOLUME LABEL ... GPT ...>
    • <EFI>
    • <debian>
    • <grubx64.efi>
From this step, i just press ENTER?
 

marinusx

Dabbler
Joined
Jan 6, 2021
Messages
11
Debian-based distribution does not install the EFI boot file in the right location, but it is easy to fix

This is the procedure for Debian, adapt for Ubuntu

Exit the shell
Shell> exit

Navigate in the menu of the EFI boot manager
  • Boot Maintenance Manager
  • Boot from file
    • <NO VOLUME LABEL ... GPT ...>
    • <EFI>
    • <debian>
    • <grubx64.efi>
Now GRUB appears and the system boots
  • Login as root and type the following commands to fix the EFI boot issue
Code:
mkdir -p /boot/efi/EFI/BOOT/
cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/BOOT/bootx64.efi


More details on this thread
i only get this
1610019458860.png
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
whenever i install any linux OS, after install or before, like with ubuntu, i get prompted with this:

@marinusx If you have this problem when running a live ubuntu CD, before any installation takes place, thats suggest some other config problem when creating a VM in FreeNAS. Your ISO location is a bad choice, keep your VM iso out of the iocage dataset as that's intended or FreeNAS jails. Create separate dataset(s) as necessary for VM ISOs and zvols. For Ubuntu at least, your shouldn't need the post-install fix metioned above. For debian, it's not necessary if you choose the advanced install and say yes when prompted to install GRUB on the removable media path.
 

marinusx

Dabbler
Joined
Jan 6, 2021
Messages
11
@marinusx If you have this problem when running a live ubuntu CD, before any installation takes place, thats suggest some other config problem when creating a VM in FreeNAS. Your ISO location is a bad choice, keep your VM iso out of the iocage dataset as that's intended or FreeNAS jails. Create separate dataset(s) as necessary for VM ISOs and zvols. For Ubuntu at least, your shouldn't need the post-install fix metioned above. For debian, it's not necessary if you choose the advanced install and say yes when prompted to install GRUB on the removable media path.

[mod note: merged several posts -JG]

so i jsut gotta change the install location?

and how do i remove files in that location? i am new to truenas

could this also be a cause of a slow VM?
 
Last edited by a moderator:

blanchet

Guru
Joined
Apr 17, 2018
Messages
516
If you do not see the grubx64.efi file in the EFI Boot manager, it may comes from the virtual hard disk sector size.
Edit the Disk Sector Size and try to force the sector size to 512 or 4096 (try both to see that is the good value).
You have to power off the VM before changing the sector size.
zvol_sector_size.gif
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
[mod note: merged several posts -JG]

so i jsut gotta change the install location?

and how do i remove files in that location? i am new to truenas

could this also be a cause of a slow VM?

Keep your ISO files out of the iocage dataset path. Choose an install location of a dataset whose properties you can set on its creation. Slow VM? Define slow, that's a relative trem and will depend on your hardware and pool layout etc. List your hardware config as forum rules suggest if you want further comment.

( Last post re: sector size of virtual disk should make no diffrence ot a linux VM booting or not. )
 
Top