ssh to qemu, with the Hurd
Follow-up to Hurd on qemu from Nothing to see here
Using sshd on the Hurd makes things relatively painless – with the normal qemu interface, you can’t (as far as I know) copy and paste to the console. However, connecting over the network gets you all kinds of benefits, such as the right keyboard layout locally.
The Hurd-specific bit is getting sshd to work – first you need to get /dev/random and /dev/urandom working (because they don’t by default – you may start laughing now). The Hurd Installation Guide from UWHUG still works.
# cd && mkdir tmp && cd tmp
# wget http://kilobug.free.fr/hurd/random-64.tar.gz
# tar xvfz random-64.tar.gz
# cp random/random /hurd/
# settrans -c /dev/random /hurd/random \
--seed-file /var/run/random-seed --secure
# settrans -c /dev/urandom /hurd/random \
--seed-file /var/run/urandom-seed --fast
# chmod 0644 /dev/random /dev/urandom
# apt-get install openssh-client openssh-server
Disable UsePrivilegeSeparation in /etc/ssh/sshd_config as well – I didn’t check, but I’m fairly sure that bug still exists. You’ll want to allow root logins, because su doesn’t work. (I forget whether that bug has a workaround.)
Then to actually connect to qemu, I’m using a command like this:
qemu -hda hurd.img -m 256 -redir tcp:2222::22
Then:
ssh -p 2222 user@localhost
Easy.
Add a comment
You are not allowed to comment on this entry as it has restricted commenting permissions.