How can I host several VPS's on my Ubuntu computer? I have all ports open, and want to host several virtual private servers for a few people. They need to be able to connect to a VPS on my computer through SSH. How can I do this? I tried proxmox and Didn't have much success. I would like to run Ubuntu 64Bit on all the Servers. Thank you
1 Answer
You need a hypervisor to run each guest OS. The hypervisor is in charge of managing the other virtual machines (VPSs) it is running.
KVM is the natural opensource choice for Ubuntu.
You can read how to install KVM here
But the following command will get you everything you need:
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
I would also suggest you look at virt-manager which will help you manage your vm's in a nice graphical interface.
you can install it with sudo apt-get install virt-manager
Good luck!
-
Isn't that just for Virtual machines? I am wanting to run a VPS so others outside my network on a different computer can connect to there own server. Such as Openvz but Openvz never works for some reason. @stemartin– C.c.hNov 27, 2015 at 22:55
-
@C.c.h A VPS is just server that is running in a virtual machine, install a server operating system in the VM. Nov 27, 2015 at 23:07
-
Right, But I am trying to setup a VPS like you can buy from a host, but home host it myself that way I can give someone on a different computer a IP Address, username and password to connect. @stemartin– C.c.hNov 27, 2015 at 23:08
-
Yes you can do all that with KVM a router and a block of IP from your ISP. Nov 27, 2015 at 23:12
-
Seem to have got it working, But how can I set a username and password for others to connect outside my network with KVM? Thank you. @stemartin– C.c.hNov 27, 2015 at 23:47