LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2011, 08:11 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,333

Rep: Reputation: 54
What port does KVM listen on?


I just installed KVM on a new system and just found out the hard way that virt-manager cannot be installed on the same machine because of a library conflict, so I will have to manage my VMs from another machine. I will use a SSH tunnel to forward the port, but I don't know what it is.

Also, how do I start KVM? I tried service kvm start but it does not find it. Guessing it's something else.
 
Old 01-16-2011, 08:54 PM   #2
anotherlinuxuser
Member
 
Registered: Jan 2007
Location: Alberta Canada
Distribution: Fedora/Redhat/CentOS
Posts: 70

Rep: Reputation: 19
You didn't mention Distro, KVM or virt-manager versions, so I can only give info that I have learned from Fedora 10->14 and KVM.

On Fedora:
KVM/QEMU service name is libvirtd, so that's the name to use with service and chkconfig commands.

I have never had a problem using the current release versions of both virt-manager and KVM on the same system using the same Fedora repository for both packages, preventing library conflicts.

In virt-manager, selecting the connection method 'SSH' creates its own ssh connection to port 22, so you not need to create a separate ssh tunnel. Earlier versions of virt-manager, on Fedora, required that the root user from virt-manager system had already established a regular ssh session to the root user on the KVM machine to manually answer 'yes' to the acceptance of the RSA key, as the older virt-manager would often error out during that process.

Hope it helps

Last edited by anotherlinuxuser; 01-16-2011 at 10:14 PM.
 
Old 01-17-2011, 07:47 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,333

Original Poster
Rep: Reputation: 54
Using CentOS 5. I tried the option for SSH tunnel in virt-manager, but it does not even prompt me for a username or anything it just defaults as root. I don't want to ssh as root because that is a big security issue. I don't even turn that on. I also need to be able to specify a different port as I don't have ssh listening on port 22 due to all the bots out there. No matter how secure your password is, one will eventually get in.

I also can't find any references to libvirtd on my system. Is there anything else I need to install other then kvm? I just did yum install kvm.

Thanks in advance.

Last edited by Red Squirrel; 01-17-2011 at 07:52 PM.
 
Old 01-18-2011, 01:17 AM   #4
anotherlinuxuser
Member
 
Registered: Jan 2007
Location: Alberta Canada
Distribution: Fedora/Redhat/CentOS
Posts: 70

Rep: Reputation: 19
As far as I know, virt-manager will only work as root, the port number might be change-able from 22, although I don't where that change would be made.

Are these systems connected directly to the Internet, and if so, why? I don't use ssh at port 22 or allow remote root access on a system directly connected to the Internet either, but doing root to root ssh inside a firewalled, NAT'ed LAN is not terribly insecure. Bots should not be getting past a firewall.

Anyway, not sure about Centros, but on Fedora, these are the minimum packages required for a full virt-manager/KVM/QEMU system:
libvirt
libvirt-client
libvirt-python
python-virtinst
qemu
qemu-common
qemu-img
qemu-kvm
qemu-system-x86
qemu-user
virt-manager
virt-mem
virt-top
virt-viewer
 
Old 01-18-2011, 01:23 AM   #5
deepan
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Question Nagios installation and configuration details

Hi,

I want to learn about Nagios software, if anybody has proper documentation for nagios. Please let’s post it on request.

Thanks,

Deepan (Linux devotee)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: remote port forwarding failed for listen port 7869 windstory Linux - Newbie 1 08-02-2010 10:07 AM
MULTICAST address and port, socket listen only on port? jf.argentino Linux - Networking 2 03-09-2009 12:42 PM
Tomcat listen to port 80 thisObject Linux - Software 3 05-09-2006 01:38 AM
Port 80 listen without WebServer? hacinn Linux - Security 5 06-30-2004 09:52 PM
Port won't Listen dvong3 Linux - Networking 4 05-12-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration