{"id":1064,"date":"2018-12-20T14:20:26","date_gmt":"2018-12-20T13:20:26","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=1064"},"modified":"2018-12-20T14:20:35","modified_gmt":"2018-12-20T13:20:35","slug":"use-virt-viewer-from-osx-to-connect-to-remote-kvm-on-centos-7","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1064","title":{"rendered":"Use virt-viewer from OSX to connect to remote KVM on Centos 7"},"content":{"rendered":"<p>\n\tHere a simple howto to prepare the connection:\n<\/p>\n<ul>\n<li>\n\t\tInstall <a href=\"https:\/\/www.macports.org\/\" target=\"_blank\">MacPorts<\/a>\n\t<\/li>\n<li>\n\t\tInsrall <a href=\"https:\/\/www.xquartz.org\/\" target=\"_blank\">XQuartz<\/a>\n\t<\/li>\n<li>\n\t\tInstall virt-viewer<br \/>\n\t\t<code># sudo port install virt-viewer<\/code>\n\t<\/li>\n<li>\n\t\tCreate SSH id on OSX (used for passwordless login)<br \/>\n\t\t<code># ssh-keygen<\/code>\n\t<\/li>\n<li>\n\t\tThen copy this key to your remote server (~\/.ssh\/id_XXX.pub)<br \/>\n\t\t<code># ssh-copy-id root@server.machine<\/code>\n\t<\/li>\n<\/ul>\n<p>\n\tNow you can connect with the following URL:\n<\/p>\n<p>\n\t<code># virt-viewer -c qemu+ssh:\/\/root@server.machine\/system?socket=\/var\/run\/libvirt\/libvirt-sock<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here a simple howto to prepare the connection: Install MacPorts Insrall XQuartz Install virt-viewer # sudo port install virt-viewer Create SSH id on OSX (used for passwordless login) # ssh-keygen Then copy this key to your remote server (~\/.ssh\/id_XXX.pub) # ssh-copy-id root@server.machine Now you can connect with the following URL: # virt-viewer -c qemu+ssh:\/\/root@server.machine\/system?socket=\/var\/run\/libvirt\/libvirt-sock<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10,4,7],"tags":[],"class_list":["post-1064","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-mac-osx","category-programming","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1064"}],"version-history":[{"count":1,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":1065,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1064\/revisions\/1065"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}