How to access a KVM VM via SSH over the host?

dan

New Member
Jan 16, 2009
21
0
1
Hi,

I'm running Ubuntu in an KVM VM. I can access the internet within the VM. The internal IP (over NAT) is 10.0.2.15. I have full access to the host machine. How can I access the guest?
From the host machine, I have tried to ping the VM on its IP address (10.0.2.15) but got an timeout.

It must me simple but I could not find anything in the wiki or the forums.

EDIT:
I have also tried to use vnc:
nc -l -p 5900 -c "qm vncproxy 102 <password>"
But getting this error as soon as a VNC client tries to connect:
400 too many arguments
qm vncproxy <vmid>

Thanks for any help.

(I'm using Proxmox 2.0 beta)
 
Last edited:
I just moved your thread in the right forum.
 
Like this

ip route add your.ip dev vmbr0(in my case the bridge interface is vmbr0)