I have ssh working to a server image ...

nemo:~ $ ssh [email protected]
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 [email protected] -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

Attachment: desktop
Description: Binary data

Attachment: server
Description: Binary data

Reply via email to