New to Scale, VM hangs on boot

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
As mentioned in title, ive recently jumped over to scale, from core, and trying to set up my VM, all went ok in install (i think, i had to remake it a bunch of times due finding correct disk size), although i do think it kinda sux when your forced to use 20% off Zvol AND 20% off disk, so you lose 40% of your drive from the start?!!

regardless, once it started, i installed linux lite, then powered off the machine, and deleted the cdrom device, now when i start, the initial window comes up, asking if i want to launch ubuntu or advanced features etc, so i goto ubuntu (linux lite) and the window shrinks to a small box and several unsupported messages show at the bottom, and the system hangs. not being familiar with spice, i dont know what to expect.

If you cant tell already, not too savvy with all this, so go easy, if you can, and i'll try my best to provide what info i can find

heres the hang screen
 

Attachments

  • vm hang.jpg
    vm hang.jpg
    102.9 KB · Views: 483

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
Any help, anyone?
 

Patrick_3000

Contributor
Joined
Apr 28, 2021
Messages
167
Any help, anyone?
Spice Javascript client is a brand new viewer that only began appearing in SCALE within the past week or so, after the upgrade to 22.12.4 came out. Any VM created before then uses a different viewer (VNC Viewer), even now. So, you're using a viewer that most people on this forum know nothing about. I posted about this issue separately.

That being said, I think what's happening could be be that your VM itself isn't hanging, but the viewer times out after a minute or two, presumably for security reasons. This happens with both Spice Javascript client and VNC Viewer. When it happens, all you need to do is open a new viewer by selecting the Display button. For more robust access, I usually install a remote server on VMs, such as vino server, that allows me to access them from the network and avoid the problem of the viewer timing out, or else I ssh into them.

The other possibility is that your guest machine, Ubuntu, could be hanging for some reason. However, I run Linux Mint in VMs on SCALE with no problem, and Mint is based on Ubuntu, so my guess is it's not that but is just your viewer timing out.
 
Last edited:

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
If you use a spice client app, there is no need for vino server in the vms. I use reminna, but there are many others. That way you can access your VM over the network using spice protocol. The only savings I guess are installing vino server but I still think spice is faster.

It was however a strange thing to change in a minor scale release.
 

Patrick_3000

Contributor
Joined
Apr 28, 2021
Messages
167
If you use a spice client app, there is no need for vino server in the vms. I use reminna, but there are many others. That way you can access your VM over the network using spice protocol. The only savings I guess are installing vino server but I still think spice is faster.

It was however a strange thing to change in a minor scale release.
Interesting. I also use Remmina as a client app to connect to vino server installed in the VMs. It seems I could connect to the VMs using the Spice protocol without having to install vino server.
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Interesting. I also use Remmina as a client app to connect to vino server installed in the VMs. It seems I could connect to the VMs using the Spice protocol without having to install vino server.
Correct, in my case on my distribution, had to load a plugin for spice but works the same. On my linux distribution, the package is remmina-plugin-spice. There are other spice clients on various OSes.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
Spice Javascript client is a brand new viewer that only began appearing in SCALE within the past week or so, after the upgrade to 22.12.4 came out. Any VM created before then uses a different viewer (VNC Viewer), even now. So, you're using a viewer that most people on this forum know nothing about. I posted about this issue separately.

That being said, I think what's happening could be be that your VM itself isn't hanging, but the viewer times out after a minute or two, presumably for security reasons. This happens with both Spice Javascript client and VNC Viewer. When it happens, all you need to do is open a new viewer by selecting the Display button. For more robust access, I usually install a remote server on VMs, such as vino server, that allows me to access them from the network and avoid the problem of the viewer timing out, or else I ssh into them.

The other possibility is that your guest machine, Ubuntu, could be hanging for some reason. However, I run Linux Mint in VMs on SCALE with no problem, and Mint is based on Ubuntu, so my guess is it's not that but is just your viewer timing out.
oh, so it may still be buggy? tbh, i prefer, and still use VNC viewer to display my core VM, but i couldnt get it to work on scale. i wasnt sure if there was something fundamentally different, as they refer to it as display, instead of VNC in core?? i did try bind the vm to my nas ip (192.168.1.55) and added the port number displayed in the display device to vnc (so 192.168.1.55:5901) and didnt get picture, but now im thinking maybe its was just doing the same thing as spice?

i also tried making a mint-xfce vm but that wouldnt even get into the install.

i havent heard of vino/remina before so might have to do some more research

cheers for the input guys, at least gives me something to try
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
also, i recently tried v23 release candidate 1, and it actually got worse, cant install lite now
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
Managed to get linux lite reinstalled on the beta, but starting the VM gets the same issue, initial boot screen loads, then goes to small box, with error:permission denied. ive added root & livert-qemu to my user group, although that should only be for reading the iso, which has been done, and CD deleted. As far as i can tell zvols dont have permissions anywhere, so im not sure "what" is denying me, exactly?

i was really looking forward to using scale, but if this very basic task is this difficult, it may be worth sticking with core, til scale matures?!
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
VMs should work fine, most people here on the forums use them on Scale, including me. Been using Scale for a year, no issues at all with it. So, it's not that. Is your Scale install on bare metal or on Proxmox or vm? You've given very little to go on here, here's what I would want to see:

1. The Storage screen, with the zvol selected so we can see on the right how that is setup.Does the roles box say it's for the VM in question?
2. The VM creation screen, all the boxes you have filled in. Even devices.

So, a lot of screen captures would be useful. For me at least, it's hard to wild guess based on minimal info provided.

If you are on the Beta, I likely can't help you as I am not running the Beta but maybe it's mostly the same. The Beta isn't necessary to run a VM and it's more likely to have bugs.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
VMs should work fine, most people here on the forums use them on Scale, including me. Been using Scale for a year, no issues at all with it. So, it's not that. Is your Scale install on bare metal or on Proxmox or vm? You've given very little to go on here, here's what I would want to see:

1. The Storage screen, with the zvol selected so we can see on the right how that is setup.Does the roles box say it's for the VM in question?
2. The VM creation screen, all the boxes you have filled in. Even devices.

So, a lot of screen captures would be useful. For me at least, it's hard to wild guess based on minimal info provided.

If you are on the Beta, I likely can't help you as I am not running the Beta but maybe it's mostly the same. The Beta isn't necessary to run a VM and it's more likely to have bugs.
Awesome, thanks for the help, i am on beta, but the only reason i went up is because of this issue. i stupidly upgraded the flags so cant go back, straight after i done it i regretted it. Im just out an about next few hours but will get back to you asap with all that info
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
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)
 

Attachments

  • VM1.jpg
    VM1.jpg
    55.3 KB · Views: 396
  • VM2.jpg
    VM2.jpg
    30.6 KB · Views: 234
  • VM-Disk.jpg
    VM-Disk.jpg
    32 KB · Views: 222
  • VM-Display.jpg
    VM-Display.jpg
    39.3 KB · Views: 200
  • VM-NIC.jpg
    VM-NIC.jpg
    37.1 KB · Views: 230
  • dataset.jpg
    dataset.jpg
    121.5 KB · Views: 281

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
oh, also heres the Spice error box
 

Attachments

  • error.jpg
    error.jpg
    44.4 KB · Views: 418

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
and logs
 

Attachments

  • 11_LitNEz-1 log.txt
    51 KB · Views: 132

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
I am not up to Speed on Cobia and new kernel, changes, etc. Maybe post over in Cobia forums. I wouldn't use CPU mode custom though. Host Passthrough is preferred.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
I am not up to Speed on Cobia and new kernel, changes, etc. Maybe post over in Cobia forums. I wouldn't use CPU mode custom though. Host Passthrough is preferred.
Ok no probs, i have tried host pass through too, i tried changing nearly all these settings, to no avail. Thanks for taking a look though
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Yeah, there's a number of new bugs in Cobia and I just am not familiar. I've also never used Linux lite distribution, I have ubuntu VMs and they run and install fine. I'd be curious if it would work with an ubuntu or debian distributed distribution, not seen any linux lite users here but it doesn't mean there are not any.
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
Yeah, there's a number of new bugs in Cobia and I just am not familiar. I've also never used Linux lite distribution, I have ubuntu VMs and they run and install fine. I'd be curious if it would work with an ubuntu or debian distributed distribution, not seen any linux lite users here but it doesn't mean there are not any.
Well i did try mint-xcfe and same thing, but i always thought linux lite was ubuntu based anyways, even that initial load screen, which still comes up, asks if i want to boot into ubuntu, not linux lite. Might try later. I think i just have to wait till stable catches up, or do a full wipe (system doesnt have any drives, or anything significant, im just testing things while a save for 80tb of storage). Thanks for the help anyways man, appreciate it
 

probain

Patron
Joined
Feb 25, 2023
Messages
211
Thinking outside of the box here. With a few errors I got, when I was "upgraded" over into Spice. Have you set or changed password on the display device? Spice doesn't like it when you change password on the device willy-nilly. And there seems to be a two-char minimum for it to work. But I believe you can set a one char password, that won't work.

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?
 

CH4Pz

Explorer
Joined
Aug 24, 2017
Messages
59
Thinking outside of the box here. With a few errors I got, when I was "upgraded" over into Spice. Have you set or changed password on the display device? Spice doesn't like it when you change password on the device willy-nilly. And there seems to be a two-char minimum for it to work. But I believe you can set a one char password, that won't work.

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?
ok, i'll give it a look, but what do you mean by "Char" ? i havent changed it, but its pretty basic password
 
Top