[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to ssh to a QEMU XFCE desktop vm-image?
From: |
George myglc2 Clemmer |
Subject: |
How to ssh to a QEMU XFCE desktop vm-image? |
Date: |
Sun, 25 Feb 2018 22:37:22 -0500 |
User-agent: |
mu4e 1.0; emacs 25.3.1 |
I have ssh working to a server image ...
nemo:~ $ ssh address@hidden
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 address@hidden -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
desktop
Description: Binary data
server
Description: Binary data
- How to ssh to a QEMU XFCE desktop vm-image?,
George myglc2 Clemmer <=