Problems with ubuntu 20.04 VM after booting

tibblist

Dabbler
Joined
Apr 15, 2020
Messages
28
So I have managed to get my vm to boot properly instead of reinstalling each time except now after I login or before I login the disk seems to start to error out. Initially with this https://i.imgur.com/T4oBO5r.png then moving onto a ton of errors https://i.imgur.com/4xAfp4d.png. This basically makes the VM unusable, I have a 30 GB zvol for it inside of a crucial mx500 240gb disk, is it possible that its just a hardware issue? The disk is brand new.

Edit: After it finishes with a bunch of errors attempting to do anything that modifies the disk appears to fail https://i.imgur.com/e15qS75.png.
 

tibblist

Dabbler
Joined
Apr 15, 2020
Messages
28
I changed the disk i/o type to virtIO, this broke booting and now it wants to install again but I can just go to boot from file manually and get in. This appeared to let me do IO but actually turns out the nic broke now and it cannot access the internet to even run sudo apt-get update, and given about a minute goes back to the same revalidation failed (errno=-5) errors as before...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Have you done something like this?
 

bignellrp

Dabbler
Joined
Mar 12, 2020
Messages
18
I changed the disk i/o type to virtIO, this broke booting and now it wants to install again but I can just go to boot from file manually and get in. This appeared to let me do IO but actually turns out the nic broke now and it cannot access the internet to even run sudo apt-get update, and given about a minute goes back to the same revalidation failed (errno=-5) errors as before...

hi, I’m also getting similar IO errors on my VMs since upgrading from Freenas U1 to U2.

I read through the post above but it doesn’t seem to be related as my grub is booting but hangs with errors similar to yours.

what version of Freenas are you running?
 

bignellrp

Dabbler
Joined
Mar 12, 2020
Messages
18
I fixed my issue with Ubuntu 19.04 by switching the disk type to virtIO. Still can’t solve the Ubuntu 20.04 as that as an IRQ error but there is a suggested fix in another post
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
@bignellrp For Ubuntu 20.04 server try the legacy installer iso, ubuntu-20.04-legacy-server-amd64.iso
 

ecarter

Cadet
Joined
May 3, 2020
Messages
2
> I’m also getting similar IO errors on my VMs since upgrading from Freenas U1 to U2

Same thing here. Really frustrating. One peculiar thing I notice is that I only get these errors when my VM has more than 2 virtual CPUs.
 

liquidpower

Cadet
Joined
Mar 15, 2018
Messages
5
yes this more the 2 virtual cpu's. iv been messing around all day only way i could get my 20.04 install stable was to drop it down to 1 core. super funky
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
When you switch to VirtIO, remember to update your /etc/fstab to use /dev/vdxx from /dev/sdxx devices. Likewise, you may need to update your grub.cfg, if your boot string includes any references to /dev/sdxx.
 
Last edited:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Also, it may be worth hard-coding the sector size in the disk devices attached to the VM to 512.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
When you switch to VirtIO, remember to update your /etc/fstab to use /dev/vdxx from /dev/sdxx devices. Likewise, you may need to update your grub.cfg, if your boot string includes any references to /dev/sdxx.
Ubuntu by default uses UUIDs for /etc/fstab entries instead of device names. These should not change when the disk type does. At least since 16.04 which is the oldest I still run anywhere.
 
Top