This question about Installation of Foswiki: Answered

VirtualMachineImages misleading? How to get ssh access.

Access to the VM through ssh

I have installed the Foswiki VM under VirtualBox. Works a treat. After I had installed it all, I followed the instructions at HowToRunVirtualMachineImageOnVirtualBox

I use the NAT access method. And set up the port forwarding using:
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki/Protocol" TCP
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki/GuestPort" 80
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki/HostPort" 8888
And now http://localhost:8888 brings up the Foswiki front page.

I would like to use ssh to perform actions on the VM, and understood from VirtualMachineImages that ssh root@10.0.2.15 would do the job. Well, it did not.

Thinking about it I decided that I should probably forward a port from localhost to port 22 on the VM. So I did:
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki-ssh/Protocol" TCP
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki-ssh/GuestPort" 22
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki-ssh/HostPort" 8822
And tried ssh root@localhost:8822

But I did not get a response. Any suggestions how to get ssh access to the VM?

I do appreciate the VirtualMachineImages page. It has lots of useful info. But it does not align with the installation instructions in HowToRunVirtualMachineImageOnVirtualBox. And I don't quite understand what is missing.

-- BramVanOosterhout - 16 Apr 2009

OK, I know what is missing. The VirtualMachineImages page assumes Host Interface Networking for the virtual machine. In the Network setup on Virtualbox, you select: Host Interface and the appropriate Network Card boot up the VM and you get network IP address from the DHCP server. I got 192.168.1.163. Then I can use ssh root@192.168.1.163 too login. Too easy!

The Virtualbox manual says that what I described above should work as well. I must have done something wrong. I'll figure out what some other time. Thanks for listening.

-- BramVanOosterhout - 20 Apr 2009

Hi BramVanOosterhout. May I ask you to update the docs? smile Its a wiki.

-- OliverKrueger - 03 May 2009

QuestionForm edit

Subject Installation of Foswiki
Extension
Version
Status Answered
Topic revision: r3 - 03 May 2009, OliverKrueger
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy