- Joined
- Nov 25, 2013
- Messages
- 7,776
Anything interesting when you enter these into your EFI shell?
Code:
fs0: dir
fs0: dir
Thanks. That worked.
Just in case this helps anyone else with this issue here are the steps i followed;
I wish i had tried this before messing with trying to copy data the hard way. This in the end was a pretty straightforward job.
- Follow steps from this guide to create the raw file of your VM.
- Create the zvol slightly larger that the raw image.
- DD the raw into the zvol.
- Create a VM with the zvol as the disk and Ubuntu Desktop live cd as the cdrom.
- Boot into Ubuntu Desktop
- Open a search and type "disks" or you can open a terminal and use gparted instead.
- Create a 200Mb fat32 partition and label it boot. Luckily ubuntu leaves some free space by default at the end to save you having to resize the other data partition.
- I deleted my other Grub boot partition from the start although i think the next step would have done this for me.
- Install boot-repair
- sudo add-apt-repository ppa:yannubuntu/boot-repair
- sudo apt-get update
- sudo apt-get install -y boot-repair && boot-repair
- Click advanced and check the new fat32 partition is showing "Separate EFI boot" under grub location.
- Click apply and follow the steps.
- One guide also said mount the data partition from disks and check the /etc/fstab to see if it has a different mount point for /boot but i didnt
- Shutdown the VM and delete the cdrom from devices
- Start the VM and check the nic has an IP. I had to edit my netplan config as the adaptor had changed from enpos3 to 4
One last niggle to tidy is that apt upgrade is complaining about grub as its now changed to uefi. I guess i just have to remove it.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub-legacy-ec2: line 1101: read: read error: 0: Bad file descriptor
run-parts: /etc/kernel/postrm.d/x-grub-legacy-ec2 exited with return code 1
dpkg: error processing package linux-image-4.15.0-76-generic (--remove):
installed linux-image-4.15.0-76-generic package post-removal script subprocess returned error exit status 1
Removing linux-modules-4.15.0-76-generic (4.15.0-76.86) ...
Errors were encountered while processing:
linux-image-4.15.0-76-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reference: Ubuntu UEFI
root@freenas[~]# zfs create -V 1G hdd/testvol root@freenas[~]# dd if=/dev/zero of=/dev/zvol/hdd/testvol bs=1m dd: /dev/zvol/hdd/testvol: end of device 1025+0 records in 1024+0 records out 1073741824 bytes transferred in 0.765429 secs (1402796906 bytes/sec) root@freenas[~]# zfs destroy hdd/testvol
zfs create -V 32G CrucialVM/hassOs
/mnt/CrucialVM/hassOs
in your dd command./dev/zvol/CrucialVM/hassOs
like in my example.zfs get volmode CrucialVM/CrucialVM/HAssOs