I have an old HP ProLiant DL385 G5p server that I used to use only as a glorified NAS, but now I'd like to do something more with it, such as set up a caching DNS server for my network.
I'd like to be able to run my fileserver and the DNS (and anything else I may think of) on seperate virtual machines via the XCP-ng hypervisor.
I had started to set this up over the past couple of days, got two of my Debian VMs up and running and I even managed to get my caching DNS working. However, my problem came when I tried to connect via SSH to the Debian VM that I wanted to use for my fileserver. I put the IP of that VM into PuTTY (I had two ethernet connections to the server; one for the fileserver and one for everything else), and it connected fine - to the hypervisor. This is the problem and I'm really not sure whats going on here. How do I make PuTTY, and therefore SFTP Drive which I will be using for file transfers to my main PC, connect to the VM instead of the hypervisor.
One of my friends mentioned that I may need to use port forwarding on the hypervisor to be able to SSH into them and I've looked into this but not found anything that seems like it would help, although I'm not 100% sure what I'm looking for.
I have since reinstalled XCP-ng and set up the caching DNS and a tor relay node on one ethernet connection, but still need to create another Debian install for the fileserver.
Thanks in advance.
Edit: This is the output I get when I run route
on the hypervisor:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 xenbr0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 xenbr0
And this is the VM output:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
Hope this can be of use.
Edit(1): This is the output of running route -n
on the hypervisor:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 xenbr0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 xenbr0