From mboxrd@z Thu Jan 1 00:00:00 1970 From: George myglc2 Clemmer Subject: How to ssh to a QEMU XFCE desktop vm-image? Date: Sun, 25 Feb 2018 22:37:22 -0500 Message-ID: <86h8q4a0b1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq9bW-0002mM-Ah for help-guix@gnu.org; Sun, 25 Feb 2018 22:37:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq9bS-0001u2-DJ for help-guix@gnu.org; Sun, 25 Feb 2018 22:37:30 -0500 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]:37366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eq9bS-0001tj-6R for help-guix@gnu.org; Sun, 25 Feb 2018 22:37:26 -0500 Received: by mail-qt0-x235.google.com with SMTP id r16so8335253qtm.4 for ; Sun, 25 Feb 2018 19:37:25 -0800 (PST) Received: from g1 (c-73-167-118-254.hsd1.ma.comcast.net. [73.167.118.254]) by smtp.gmail.com with ESMTPSA id v57sm4896123qtv.7.2018.02.25.19.37.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Feb 2018 19:37:23 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --=-=-= Content-Type: text/plain I have ssh working to a server image ... nemo:~ $ ssh g1@server02.local Last login: Sun Feb 25 22:11:42 2018 from fe80::1ccf:c589:7e5f:a21f%eth0 ... but not to a similar xFCE desktop VM image ... nemo:~ $ ssh g1@desktop01.local -vvv OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /Users/glc/.ssh/config debug1: /Users/glc/.ssh/config line 48: Applying options for * debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to desktop01.local port 22. ssh: connect to host desktop01.local port 22: Connection refused The VMs are built like this ... time guix system vm-image -M 4 -c 4 \ --image-size=5GB $VMDIR/$NAME.scm The server runs this way ... sudo qemu-system-x86_64 \ -name $NAME \ -net tap,ifname=$NAME,script=$PWD/qemu-ifup,downscript=$PWD/qemu-ifdn \ -net nic,model=virtio,macaddr=$MACADDR \ -enable-kvm \ -m 5120 \ -daemonize \ -display none \ $VMDIR/vm.img I run the desktop this way ... sudo qemu-system-x86_64 \ -name $NAME \ -net tap,ifname=$NAME,script=$PWD/qemu-ifup,downscript=$PWD/qemu-ifdn \ -net nic,model=virtio,macaddr=$MACADDR \ -enable-kvm \ -m 5120 \ -k en-us \ -vga qxl \ -spice addr=127.0.0.1,port=3001,disable-ticketing \ -device virtio-serial \ -chardev spicevmc,id=vdagent,debug=0,name=vdagent \ -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \ -daemonize \ $VMDIR/vm.img ... and can log in using the SPICE remote-viewer. How do I enable ssh in to the desktop VM? TIA - George --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=desktop Content-Transfer-Encoding: base64 Ozs7IGRlc2t0b3AgdjEgY29uZmlnCih1c2UtbW9kdWxlcyAoZ251KSkKKHVzZS1tb2R1bGVzIChn bnUgc3lzdGVtIG5zcykpCih1c2Utc2VydmljZS1tb2R1bGVzIHNzaCkgOyBvcGVuc3NoLXNlcnZp Y2UtdHlwZQoodXNlLXNlcnZpY2UtbW9kdWxlcyBzcGljZSkKKHVzZS1zZXJ2aWNlLW1vZHVsZXMg ZGVza3RvcCkKKHVzZS1zZXJ2aWNlLW1vZHVsZXMgbmV0d29ya2luZykgOyBkaGNwLWNsaWVudC1z ZXJ2aWNlCih1c2UtcGFja2FnZS1tb2R1bGVzCiBiYXNlICAgICAgICAgICAgICAgICAgOyBnbGli Yy11dGY4LWxvY2FsZXMKIGNlcnRzICAgICAgICAgICAgICAgICA7IG5zcy1jZXJ0cwogZW1hY3MK IGdub21lICAgICAgICAgICAgICAgICA7IGd2ZnMKIGxpbnV4ICAgICAgICAgICAgICAgICA7IG1k YWRtCiBzY3JlZW4KIHNzaCAgICAgICAgICAgICAgICAgICA7IG9wZW5zc2ggbW9zaAogeG9yZwog KQoob3BlcmF0aW5nLXN5c3RlbQogIChob3N0LW5hbWUgInYxIikKICAodGltZXpvbmUgIkFtZXJp Y2EvTmV3X1lvcmsiKQogIChsb2NhbGUgImVuX1VTLnV0ZjgiKQogIChib290bG9hZGVyIChncnVi LWNvbmZpZ3VyYXRpb24gKHRhcmdldCAiL2Rldi9zZGEiKSkpCiAgKGZpbGUtc3lzdGVtcyAoY29u cyAoZmlsZS1zeXN0ZW0KCQkJKGRldmljZSAiZzFzZCIpCgkJCSh0aXRsZSAnbGFiZWwpCgkJCSht b3VudC1wb2ludCAiLyIpCgkJCSh0eXBlICJleHQ0IikpCgkJICAgICAgJWJhc2UtZmlsZS1zeXN0 ZW1zKSkKICAodXNlcnMgKGNvbnMqCgkgICh1c2VyLWFjY291bnQKCSAgIChuYW1lICJnMSIpCgkg ICAoZ3JvdXAgInVzZXJzIikKCSAgIChzdXBwbGVtZW50YXJ5LWdyb3VwcyAnKCJ3aGVlbCIgIm5l dGRldiIpKQoJICAgKGhvbWUtZGlyZWN0b3J5ICIvaG9tZS9nMSIpKQoJICAlYmFzZS11c2VyLWFj Y291bnRzKSkKICAocGFja2FnZXMKICAgKGNvbnMqCiAgICBlbWFjcy1uby14LXRvb2xraXQKICAg IGVtYWNzLWd1aXgKICAgIGd2ZnMgICAgICAgICAgICAgIDtmb3IgdXNlciBtb3VudHMKICAgIG5z cy1jZXJ0cyAgICAgICAgIDtmb3IgSFRUUFMgYWNjZXNzCiAgICBvcGVuc3NoCiAgICBzY3JlZW4K ICAgIHhhdXRoCiAgICAlYmFzZS1wYWNrYWdlcykpCiAgKHNlcnZpY2VzIChjb25zKgoJICAgICAo c2VydmljZSBvcGVuc3NoLXNlcnZpY2UtdHlwZQoJCSAgICAgIChvcGVuc3NoLWNvbmZpZ3VyYXRp b24KCQkgICAgICAgKHgxMS1mb3J3YXJkaW5nPyAjdCkKCQkgICAgICAgKHBlcm1pdC1yb290LWxv Z2luICN0KQoJCSAgICAgICAoYXV0aG9yaXplZC1rZXlzCgkJCWAoCgkJCSAgKCJnMSIgLChsb2Nh bC1maWxlICJnbGMucHViIikpCgkJCSAgKCJhbCIgLChsb2NhbC1maWxlICJnbGMucHViIikpCgkJ CSAgKCJyb290IiAsKGxvY2FsLWZpbGUgImdsYy5wdWIiKSkpKSkpCgkgICAgIChzcGljZS12ZGFn ZW50LXNlcnZpY2UpCgkgICAgICh4ZmNlLWRlc2t0b3Atc2VydmljZSkKCSAgICAgJWRlc2t0b3At c2VydmljZXMpKQogIChuYW1lLXNlcnZpY2Utc3dpdGNoICVtZG5zLWhvc3QtbG9va3VwLW5zcykp Cg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=server Content-Transfer-Encoding: base64 Ozs7IHNlcnZlciB2MSBjb25maWcKKHVzZS1tb2R1bGVzIChnbnUpKQoodXNlLW1vZHVsZXMgKGdu dSBzeXN0ZW0gbnNzKSkKKHVzZS1zZXJ2aWNlLW1vZHVsZXMgc3NoKSA7IG9wZW5zc2gtc2Vydmlj ZS10eXBlCih1c2Utc2VydmljZS1tb2R1bGVzIGF2YWhpKQoodXNlLXNlcnZpY2UtbW9kdWxlcyBu ZXR3b3JraW5nKSA7IGRoY3AtY2xpZW50LXNlcnZpY2UKKHVzZS1wYWNrYWdlLW1vZHVsZXMKIGJh c2UgICAgICAgICAgICAgICAgICA7IGdsaWJjLXV0ZjgtbG9jYWxlcwogY2VydHMgICAgICAgICAg ICAgICAgIDsgbnNzLWNlcnRzCiBlbWFjcwogZ25vbWUgICAgICAgICAgICAgICAgIDsgZ3Zmcwog bGludXggICAgICAgICAgICAgICAgIDsgbWRhZG0KIHNjcmVlbgogc3NoICAgICAgICAgICAgICAg ICAgIDsgb3BlbnNzaCBtb3NoCiB4b3JnCiApCihvcGVyYXRpbmctc3lzdGVtCiAgKGhvc3QtbmFt ZSAidjEiKQogICh0aW1lem9uZSAiQW1lcmljYS9OZXdfWW9yayIpCiAgKGxvY2FsZSAiZW5fVVMu dXRmOCIpCiAgKGJvb3Rsb2FkZXIgKGdydWItY29uZmlndXJhdGlvbiAodGFyZ2V0ICIvZGV2L3Nk YSIpKSkKICAoZmlsZS1zeXN0ZW1zIChjb25zIChmaWxlLXN5c3RlbQoJCQkoZGV2aWNlICJnMXNk IikKCQkJKHRpdGxlICdsYWJlbCkKCQkJKG1vdW50LXBvaW50ICIvIikKCQkJKHR5cGUgImV4dDQi KSkKCQkgICAgICAlYmFzZS1maWxlLXN5c3RlbXMpKQogICh1c2VycyAoY29ucyoKCSAgKHVzZXIt YWNjb3VudAoJICAgKG5hbWUgImcxIikKCSAgIChncm91cCAidXNlcnMiKQoJICAgKHN1cHBsZW1l bnRhcnktZ3JvdXBzICcoIndoZWVsIikpCgkgICAoaG9tZS1kaXJlY3RvcnkgIi9ob21lL2cxIikp CgkgICViYXNlLXVzZXItYWNjb3VudHMpKQogIChwYWNrYWdlcwogICAoY29ucyoKICAgIGVtYWNz LW5vLXgtdG9vbGtpdAogICAgZW1hY3MtZ3VpeAogICAgZ2xpYmMtdXRmOC1sb2NhbGVzCiAgICBn dmZzICAgICAgICAgICAgICA7Zm9yIHVzZXIgbW91bnRzCiAgICBuc3MtY2VydHMgICAgICAgICA7 Zm9yIEhUVFBTIGFjY2VzcwogICAgb3BlbnNzaAogICAgc2NyZWVuCiAgICB4YXV0aAogICAgJWJh c2UtcGFja2FnZXMpKQogIChzZXJ2aWNlcyAoY29ucyoKICAJICAgICAoZGhjcC1jbGllbnQtc2Vy dmljZSkKCSAgICAgKHNlcnZpY2Ugb3BlbnNzaC1zZXJ2aWNlLXR5cGUKCQkgICAgICAob3BlbnNz aC1jb25maWd1cmF0aW9uCgkJICAgICAgICh4MTEtZm9yd2FyZGluZz8gI3QpCgkJICAgICAgIChw ZXJtaXQtcm9vdC1sb2dpbiAjdCkKCQkgICAgICAgKGF1dGhvcml6ZWQta2V5cwoJCQlgKAoJCQkg ICgiZzEiICwobG9jYWwtZmlsZSAiZ2xjLnB1YiIpKQoJCQkgICgiYWwiICwobG9jYWwtZmlsZSAi Z2xjLnB1YiIpKQoJCQkgICgicm9vdCIgLChsb2NhbC1maWxlICJnbGMucHViIikpKSkpKQoJICAg ICAoYXZhaGktc2VydmljZSkKCSAgICAgKG50cC1zZXJ2aWNlKQoJICAgICAlYmFzZS1zZXJ2aWNl cykpCiAgKG5hbWUtc2VydmljZS1zd2l0Y2ggJW1kbnMtaG9zdC1sb29rdXAtbnNzKSkK --=-=-=--