T
T
TranceFM2021-11-26 18:41:04
Virtualization
TranceFM, 2021-11-26 18:41:04

How to create 10 virtual machines on 1 PC for my own use?

I would like to create my own analogue of VPS for myself. Those. you need to work, say 10 virtual machines on 1 PC in your network. How to implement this and whether each virtual machine needs its own white IP. I rather have a question about IP, since there is information on how to start the server. Now about the purposes of use. Let's say you need 10 people on the internal network to be able to log into their VPS and surf the Internet through a browser using third-party proxies. If the entrance to the VPS is only inside the local network, then the IP for each virtual machine will be on this local network, right? And how does it happen with connecting a network cable to such a PC? Is there only one network cable? If there are 10 VPS, there is de RDP, you need to specify the IP, Login and password. So, there will be 10 network IPs from the router or what?

PS I did not install or configure virtual machines, I only used Windows VPS and third-party services.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-11-26
@Drno

What will you lift virtual machines on?
In the network settings, the virtual machine has 2 options. Or use NAT with the host. or use a “network bridge” then the virtual machines will receive ip from the router (more precisely, from the same place where the hostPC comes from)
The cable can be 1. IP addresses can be assigned many
External ip they will have 1 for all

R
rPman, 2021-11-26
@rPman

About a lot of ip addresses:
You go to your provider and ask for another ip address (buy), you will be given the requirements for the router (or the router itself) and instructions on how to use it (with a high probability this will not be a real ip distribution, but a normal NAT translation), ip addresses on the network will be distributed to machines by mac address, the settings of which are in the properties of the virtual machine, in the network settings (if you choose the network type - network bridge, then the virtual machine from the point of view of the network will be just another machine on your local network, but if you want let strangers on the machines, then isolate them from each other with separate networks, for example, by allocating a special machine for a router, set up a firewall on it and let all the internal networks of virtual machines go to it).
About creating an 'analogue of vps', drinking automation scripts or taking it ready-made (probably not under windows), for virtualbox there is a VBoxManage console utility that allows you to do whatever you want, plus hidden functions in addition.
As for the organization of virtual machines, there are the following options:
* prepare scripts for automatic installation of the system on a virtual machine (I saw an implementation when a virtual or real machine in the 'installation' mode was launched with boot over the network or from a CD, where unattended/automated install was waiting for it (such iso images can be made almost regularly from most popular distributions), which partitioned partitions, copied the system and prescribed network settings (I saw those that were prescribed with static, don’t do it like that) and little things
* you prepare ready-made images of virtual machines, which are starting templates, and do a simple copy (use cp --reflink=autothen the copy will not physically take up disk space until the recordings start there, i.e. only changes will take up space), then you change the uuid of the disk to virtualbox did not swear at dubbing

VBoxManage internalcommands sethduuid диск.vdi/vhd/vmdk

* you use the standard vitualbox snapshot tool when template systems are a bit tedious to manage, but they are very fast and allow many scenarios for efficient work with data (for example, backup can be a snapshot)
ps Based on the virtualbox functionality, you can file a very powerful cloud hosting, but within one machine (more precisely, without cluster functionality, for example, no migration), qemu kvm has more advanced functions, it allows you to implement a lot of interesting things, on its basis redhat saws its paid product for this, competing with vmware / xen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question