{
"builders":
[
{
"type": "qemu",
"iso_checksum": "d23eab94eaa22e3bd34ac13caf923801",
"iso_checksum_type": "md5",
"output_directory": "output_centos_tdhtest",
"shutdown_command": "shutdown -P now",
"disk_size": 50000,
"format": "qcow2",
"accelerator": "kvm",
"headless": true,
"qemuargs": [
[ "-m", "8192M" ],
[ "-smp", "cpus=1,maxcpus=2,cores=2" ]
],
"http_directory": "http",
"ssh_username": "root",
"ssh_password": "password",
"ssh_timeout": "2m",
"vm_name": "centos-test",
"output_directory": "centos7",
"net_device": "virtio-net",
"disk_interface": "virtio",
"boot_wait": "10s",
"boot_command": [
]
}
]
}
It sets it up to run on a non-default port on 127.0.0.1, however, when I try to ssh to it:
[root@menzoberranzan ~]# ssh -vvv -o PreferredAuthentications=password -o PubkeyAuthentication=no -l root 127.0.0.1 -p 3037
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "127.0.0.1" port 3037
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 3037.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/identity type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/identity-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
ssh_exchange_identification: Connection closed by remote host
Not sure what I'm missing here. I tried to set communicator to "none", but apparently, that doesn't really work.