Closed lord-kyron closed 5 years ago
Hello! Thank you for sharing this list of problems, I will look closer later
@subuk - yes, you can review all suggestions also, but can you tell me what to check regarding this console problem now?
If this vms were created and installed manually, you need to enable serial console, something like this: https://help.ubuntu.com/community/KVM/Access
@subuk - I already have:
`
</console>`
in the VM XML and also virsh ttyconsole <
Have you configured os inside vm?
And please send logs from vmango process output and browser console
Also try to attach to serial console using screen: screen /dev/pts/2 9600
, if it works but web interface doesn't, problem somewhere in websocket. Maybe you using nginx (or any other http proxy) in front of vmango?
Ah yes I am using nginx. What I newd to enable? Websockets ot which port?
It's on url /machines/{id}/console-ws/
Hmm I am not sure how to cofigure that in nginx. Do you have example or give me some?
And i assume {id} is dynamic per vm?
I think you can append the following lines to /
location:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
And this map to http block:
map $http_upgrade $connection_upgrade{
default upgrade;
`` close;
}
{id}
is current machine name, yes, dynamic per vm
I've enabled the websockets but still the browser console tells me: failed: Error during WebSocket handshake: Unexpected response code: 403
Check nginx error logs
@subuk - I've fixed it, but now it says only Connected! Type any key to start and when I am typing different keys nothing happens.
Does it work with screen?
screen /dev/pts/2 9600 opens a black screen and I cannot do anything it. It is not accepting commands or showing anything.
That means you should configure os inside vm
Cloud images are already configured
I was able to fix it. For the record - in the guest itself I had to run the following: sudo systemctl enable serial-getty@ttyS0.service sudo systemctl start serial-getty@ttyS0.service
Then after that all was working fine. @subuk - thank you very much for the help! Please, take a look at my suggestions!
glad to hear!
just to add a comment, when I installed from an iso using virt-install I had to specify
--extra-args console=ttyS0
About ip addresses see https://github.com/subuk/vmango/issues/25
In short, there is a button called "Enable guest agent" when vm is powered down. For all new vms guest agent will be enabled by default. After enablement, install qemu-guest-agent package inside vm and start the service.
And about suggestions:
Points 4, 5 and 7 are quite complex things, I want to postpone them for now.
Great, thank you!
Hi again, Problems:
Suggestions:
Please, share your thoughts! Thank you!