public:kvm:access:remote_vhost
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
public:kvm:access:remote_vhost [2018/06/08 17:43] – adapted chapter links wiki.tk | public:kvm:access:remote_vhost [2018/06/08 19:53] (current) – strongly extended content wiki.tk | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Remote vhost access ==== | ||
+ | Every virtual host running on KVM can have a [[wp> | ||
+ | The spice interface was neither used nor tested so far and thus is not further described here.\\ | ||
+ | There are two opportunities to access the vnc interface of a vhost remotely: | ||
+ | * the program ' | ||
+ | * any other vnc client | ||
+ | === virt-viewer === | ||
+ | The program ' | ||
+ | == ssh access == | ||
+ | For ssh access to the KVM server the command line is: | ||
+ | virt-viewer -c qemu+ssh:// | ||
+ | The big advantage of ssh access: The command above tunnels the vnc access to the localhost address of the KVM server. The vnc interfaces of the vhosts need only to be bound to localhost which is the default. Thus the interfaces are not directly accessible over the network. As the ssh access can be also kerberized, neither ssh authorized keys or ssh passwords are necessary for this access. | ||
+ | == tcp access == | ||
+ | For tcp access to the KVM server the command line is: | ||
+ | virt-viewer -c qemu+tcp:// | ||
+ | Prerequisite for tcp access is the kerberization of ' | ||
+ | * vnc interfaces of the vhosts have to be bound to a public IP address to be accessible via TCP | ||
+ | * using public IP addresses for vnc access is a security risk | ||
+ | * while migrating vhosts among KVM servers the IP address for vnc is not properly adapted | ||
+ | * thus migration renders the vnc interface inaccessible | ||
+ | * on Debian 9 (squeeze) virt-viewer access to public IP addresses generates a segmentation fault | ||
+ | === vnc client === | ||
+ | When ssh access is possible from a client with GUI (Linux or Windows) to a KVM host, it is rather simple to access the vnc interface of a virtual host.\\ | ||
+ | |||
+ | While vhosts are defined, a distinct vnc port is assigned to every vhost. Therefore the vnc port has to be found out before accessing it: | ||
+ | root@kvm55: | ||
+ | root@kvm55: | ||
+ | The port displayed behind ' | ||
+ | root@client: | ||
+ | Afterwards vnc access is possible on an additional console: | ||
+ | root@client: | ||
+ | \\ | ||
+ | [[public: | ||