Run virt-manager on Windows 10
-
You have Xming running?
Yes, it should be. Shows the icon in the taskbar after I "opened it".
-
@hobbit666 said in Run virt-manager on Windows 10:
OK so got a connection but got a few other problem.
First one was i got this.Unable to connect to libvirt.
You need to install openssh-askpass or similar to connect to this host.
Solved by running this
sudo virt-manager --no-fork
Or a permanent solution was to run
sudo apt-get install ssh-askpass ssh-askpass-gnome
OK so after playing and re-insyalling from scratch on both the KVM host and Ubuntu on my machine. This is because i'm running everything as root ... oops.
So added a "user" to the KVM while i was installing and now when i use Virt-Manager we are all good.
Also as @black3dynamite suggested i've generated a SSH key and now i can just connect and go.However i did get a error when creating the connection on Virt-Manager using the "users" account
authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'
This was solved by adding the user on the KVM host to the libvirt group.
-
Also i was finding that when i closed Virt-Manager on the Windows machine, then came back later the connection was lost and i had to re-add the connection and delete the default one that keeps coming back.
This was solved by running
sudo apt-get install dbus-x11
on ubuntuNow when i reboot my Windows machine and re-open virt-manager the default is gone and my KVM connects automatically
-
@hobbit666 said in Run virt-manager on Windows 10:
OK so got a connection but got a few other problem.
First one was i got this.Unable to connect to libvirt.
You need to install openssh-askpass or similar to connect to this host.
Solved by running this
sudo virt-manager --no-fork
Or a permanent solution was to run
sudo apt-get install ssh-askpass ssh-askpass-gnome
Oh, that's because you didn't set up your SSH keys. That's not part of virt-manager, just part of your OS. Do that and you never get that message and connections are automatic and instant.
-
@hobbit666 said in Run virt-manager on Windows 10:
My next issue/question
Once in Virt-Manager i can add my KVM host and connect. It asks for my users password twice? Should it?
Then once on (i've already got some VM's on there) when i click on a VM and open the console it asks for the password 5-6 times before displaying the console/desktop.
No, use keys and it never asks at all.
-
This post is deleted! -
@hobbit666 said in Run virt-manager on Windows 10:
Having a few issues getting this running.
-
So i've installed Xming.
Set the Display and Ran the program. -
Gone to the Windows Store and installed Ubuntu 18.04
-
Ran Ubuntu and done and
ap-get update
Thenapt-get install virt-manager
-
ran
virt-manager &
This is where i get the first problem.
I get the following message:-
Do i need to install or run anything else on the Windows Ubuntu instance?
To avoid seeing that message, you can do this instead.
virt-manager --connect=qemu+ssh://user@kvmhost/system &
-
-
Why Virt-manager over Hyper-V? For Windows 10 Home users?
-
@kamidon said in Run virt-manager on Windows 10:
Why Virt-manager over Hyper-V? For Windows 10 Home users?
It’s about managing KVM hosts.
-
my name jeff
-
-
-
@stacksofplates said in Run virt-manager on Windows 10:
@ecksdeexd said in Run virt-manager on Windows 10:
my name jeff
I read that with the accent.
Me too... I heard Borat in my head.
-
Just did this again tonight, and had 1 more step needed now.
apt-get install -y ssh-askpass-gnome
That is if you need to login. Might not need it if using a password protected ssh key instead.
-
@travisdh1 said in Run virt-manager on Windows 10:
Just did this again tonight, and had 1 more step needed now.
apt-get install -y ssh-askpass-gnome
That is if you need to login. Might not need it if using a password protected ssh key instead.
It’s probably still needed if your key has a pass phrase with it.
-
@ecksdeexd said in Run virt-manager on Windows 10:
my name jeff
-
I can not enter I get this error
Gtk-WARNING **: 18:15:17.802: cannot open display: :0
-
@sirs06 said in Run virt-manager on Windows 10:
I can not enter I get this error
Gtk-WARNING **: 18:15:17.802: cannot open display: :0
You probably need the
export DISPLAY=:0
first. -
Hi everyone. I got this error when i try to add connection.
Unable to connect to libvirt qemu+ssh://[email protected]/system.
End of file while reading data: nc: unix connect failed: No such file or directory
nc: /var/run/libvirt/libvirt-sock: No such file or directory: Input/output errorVerify that the 'libvirtd' daemon is running on the remote host.
Hope anyone could help me here. I am kinda new to wsl or even linux base.
Thanks.
-
@chipprel said in Run virt-manager on Windows 10:
Hi everyone. I got this error when i try to add connection.
Unable to connect to libvirt qemu+ssh://[email protected]/system.
End of file while reading data: nc: unix connect failed: No such file or directory
nc: /var/run/libvirt/libvirt-sock: No such file or directory: Input/output errorVerify that the 'libvirtd' daemon is running on the remote host.
Hope anyone could help me here. I am kinda new to wsl or even linux base.
Thanks.
does your user
chipprel
have access? make that user a member of the libvrt groupsudo gpasswd -a chipprel libvrt