New to Scale, VM hangs on boot

probain

Patron
Joined
Feb 25, 2023
Messages
211
ok, i'll give it a look, but what do you mean by "Char" ? i havent changed it, but its pretty basic password
Two characters e.g. Aa (works).
One character e.g A (allowed to be set but won't work).

This also means that if you had displays previously that didn't have a password set. They kind of do now with spice. So removing the display device and adding anew would probably be the easiest way to change this. And to make sure no old password is borking things up.

But as I mentioned. This is only an alternate idea. And might be an unintentional red herring/rabbit hole. The underlying issue might be completely different.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
I also had weird locking/freezing issues when installing a with VMs, when trying newer Ubuntu releases. They would freeze up during different times during the setup. But Debian 12 and Rocky Linux installed smoothly. So maybe this would be an avenue to check as well?
That's what I was indirectly getting at, try a different distribution. Linux Lite from what I saw had a very new kernel. Debian 12 would be a good test, not a bleeding edge version.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
That's what I was indirectly getting at, try a different distribution. Linux Lite from what I saw had a very new kernel. Debian 12 would be a good test, not a bleeding edge version.
Well i managed to get ubuntu 23.10 installed, and working, but i will say its kinda sluggish and delayed. Usable but not great. Not sure if its my nas (it is a 8 core 16T cpu, on 10G, with nothing else running, so should be good), or Spice. Hope them getting rid of VNC, was an oversight, and not permanent. Thanks guys!!
 

probain

Patron
Joined
Feb 25, 2023
Messages
211
VMs don't really perform the greatest on RaidZ's. Mirrored VDEVs are the way to go for them.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Well i managed to get ubuntu 23.10 installed, and working, but i will say its kinda sluggish and delayed. Usable but not great. Not sure if its my nas (it is a 8 core 16T cpu, on 10G, with nothing else running, so should be good), or Spice. Hope them getting rid of VNC, was an oversight, and not permanent. Thanks guys!!

I didn't see your hardware posted, but, one thing is to run the VMs on a pool that is SSDs not hard drives. That will provide a performance boost. Also, I hope you used host passthrough as the cpu and it should be faster than the other options. Also, you could learn about cpu pinning. You also used 4GB ram at least originally, a very minimal setup for ubuntu even on a real machine depending on which desktop environment you are using, say Gnome for example which consumes the most.

If you are just displaying in a web browser, try a spice client on some other computer on your network. My Windows vm and my ubuntu vm perform pretty well. I think a benchmark test put them at 80 or 90% of native, don't recall exactly the number.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
VMs don't really perform the greatest on RaidZ's. Mirrored VDEVs are the way to go for them.
its on its own stand alone nvme ssd, samsung evo 970 for memory.

Yeh might bump up the ram (as theres no Z pool atm, i think theres 55gb free !!)

So you can use clients, similiar to RealVNC viewer, but for spice? any suggestions? i prefer standalone, over launching from the UI, ive just been using RealVNC on core
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
So you can use clients, similiar to RealVNC viewer, but for spice? any suggestions? i prefer standalone, over launching from the UI, ive just been using RealVNC on core
Absolutely! Depends on what client platform, so, the only one I know is Linux and for that I am using remmina with the spice addon. It's fast.
 

chuck32

Guru
Joined
Jan 14, 2023
Messages
623
So heres a copy of edit device, disk, nic and display, and a shot of the dataset, and the icon on the right says its for liteNEz (my VM)

A few remarks:

You set 2 cores and 4 threads. It's number of cores and then threads per core, so you can only set a max of 2 threads. If you want 4 threads you need to set 2 cores with 2 threads.

And I always use virtio for the disks not ahci, but I doubt it's that.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
A few remarks:

You set 2 cores and 4 threads. It's number of cores and then threads per core, so you can only set a max of 2 threads. If you want 4 threads you need to set 2 cores with 2 threads.

And I always use virtio for the disks not ahci, but I doubt it's that.
yeh i tried Virtio all round, originally, although this mess had switching everything around. Thats really helpful with the threads, i was thinking it was overall threads, not per core threads, might try switching that too!! i also added 4gb of ram, so 8gb, and gave it 4 cores instead of 2, but was still lagging in ubuntu

It would seem to me theres an issue with XFCE and spice, cuz i think linux lite is on xfce, and i had issues with mint-xfce too. After spinning up a few distro's on my server on virtualbox, i think i might give Lubuntu a try, seems pretty lightweight, just what im after.

@sfatula will look into remmina, cheers, ideally something that has linux and windows clients (or even android, like RealVNC) would be ideal, as i have combo of these OS's, will have a hunt around, cheers man
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
yeh i tried Virtio all round, originally, although this mess had switching everything around. Thats really helpful with the threads, i was thinking it was overall threads, not per core threads, might try switching that too!! i also added 4gb of ram, so 8gb, and gave it 4 cores instead of 2, but was still lagging in ubuntu

It would seem to me theres an issue with XFCE and spice, cuz i think linux lite is on xfce, and i had issues with mint-xfce too. After spinning up a few distro's on my server on virtualbox, i think i might give Lubuntu a try, seems pretty lightweight, just what im after.

@sfatula will look into remmina, cheers, ideally something that has linux and windows clients (or even android, like RealVNC) would be ideal, as i have combo of these OS's, will have a hunt around, cheers man
My suggestion is before you keep changing distros, in case you like xfce, just use reminna from one machine (not as a permanent solution), it's a simple install from package manager (be sure if it's extra to install the spice addon also) and see if it doesn't lag.
 

SAK

Dabbler
Joined
Dec 9, 2022
Messages
20
I'm having this issue with Ubuntu Desktop. Disappointing as it is my first time trying to run a VM in Scale. :( I hope it get fixed soon. I was really hoping to replace the need to use Proxmox.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
I'm having this issue with Ubuntu Desktop. Disappointing as it is my first time trying to run a VM in Scale. :( I hope it get fixed soon. I was really hoping to replace the need to use Proxmox.
Yeh, it was super laggy for me, even with 4cores and 16gb ram, Lubuntu worked really good though !!

I did try reminna on a linux vm but was unable to connect, even with my password and server, with spice plugin. I changed to spice then put 192.168.1.55:5903 but would open a sec and close. Lubuntu does what i need so happy with that, actually suprised at how quick it was!!
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
There appears to be a number of bugs dealing with the vnc to spice change, it's as simple as you noted for me in Remmina. Some have had luck deleting the display and then re-adding via the devices screen. Might be worth a try if it matters much to you. I'm running 2560x1440 and it's great. My VM is older so didn't have the need to create a new one yet.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
There appears to be a number of bugs dealing with the vnc to spice change, it's as simple as you noted for me in Remmina. Some have had luck deleting the display and then re-adding via the devices screen. Might be worth a try if it matters much to you. I'm running 2560x1440 and it's great. My VM is older so didn't have the need to create a new one yet.
Yeh, its so weird, to actually remove features without having something rock solid before doing so. Tbh i had never heard of spice before this, but then again i am on the beta (even though it was there b4), so to be expected i guess. Im definitely not excluding user error either !!
 

thecrownguy

Dabbler
Joined
Sep 18, 2022
Messages
11
I have been digging for days to try and find an answer. I an not running Cobia but thge lastest release bofore it. My VM has been rock solid for over a year and now when Ubuntu 22.04 Desktop starts to load it looks like its all good, but hangs with the Ubuntu logo in the NoVNC screen. However It still boots, I can access it through Putty, and if I plug a Monitor in the GPU that Ubuntu uses I get the desktop. But I cant see it in Novnc. Now if I delete the GPU passthrough it will work. I have no cluse what triggered this as it has been working for over a year.
 

JustToAnswer

Cadet
Joined
Nov 16, 2023
Messages
2
Just to mention I'm suffering from the same behaviour. Very tempted to downgrade to a version that still uses vlc as it seemed to work without issue. Exactly as described by others. Tried changing multiple sessions (virt vs onboard nic, vcpu/threads, amount of ram) but none of it seems to have an impact. Installing Ubuntu freezes at different stages.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
Just to mention I'm suffering from the same behaviour. Very tempted to downgrade to a version that still uses vlc as it seemed to work without issue. Exactly as described by others. Tried changing multiple sessions (virt vs onboard nic, vcpu/threads, amount of ram) but none of it seems to have an impact. Installing Ubuntu freezes at different stages.
I didnt even try vlc on scale, but it still feels like a downgrade!! Lubuntu worked good for me, i also started using pin 1234 instead of the previous 1212, not sure if played a difference. Ubuntu, even though it installed was soooo slow, even moving mouse across screen. Hope they address it soon.
 
Top