Virtualize Multiple instances

2

1

I have this problem, I want open multiple instances of a portable software named hitleap (it is for ubuntu, I am not using wine) in ubuntu.

when I try open after is running the shows me enter image description here

How could I running multiple instances of the this program?

I want not VirtualMachines as virtualbox because I have low ram and processor (This ubuntu is a VPS)

NOTE: please do not suggest me networking solutions, my problem is that the program denied to execute more of one instance of self

IF someone want try resolve the problem, please download the files, in the web page Link of app only for ubuntu 64 bits linux and testing.

Milor123

Posted 2017-03-29T20:01:27.757

Reputation: 115

Answers

0

The HitLeap Support page says :

Can I run multiple HitLeap Viewers?

Yes, if you have access to multiple computers then you can run one instance of the HitLeap Viewer on each of them, assuming that they also have different IP addresses.

This means that only one instance is allowed for each IP address, so you cannot run more than one instance on one computer.

The VirtualBox solution

The simple solution would be to use VirtualBox to create multiple virtual machines that can each run one separate instance of HitLeap. This simple solution is not very convenient, but does not require deep knowledge of Linux.

The network namespaces solution (without VirtualBox)

More complex solutions that do not require virtual machines are described in the post Bind unix program to specific network interface.

The accepted answer uses a flexible feature called 'network namespaces' which is exposed through the ip program of Linux. The answer describes doing the following as root:

# Add a new namespace called test_ns
ip netns add test_ns

# Set test to use eth0, after this point eth0 is not usable by programs
# outside the namespace
ip link set eth0 netns test_ns

# Bring up eth0 inside test_ns
ip netns exec test_ns ip link set eth0 up

# Use dhcp to get an ipv4 address for eth0
ip netns exec test_ns dhclient eth0

# Ping google from inside the namespace
ip netns exec test_ns ping www.google.co.uk

It is also possible to manage network namespaces to some extent with the unshare and nsenter commands. This allows you to also create separate spaces for PIDs, users and mount points.

Further references contained in that post are :

harrymc

Posted 2017-03-29T20:01:27.757

Reputation: 306 093

thank you for you reply, I understand it, I have 4 virtual marchines with proxys for it (In my pc). but the problem it that I have a VPS i want run multiples instances without virtual machinas as virtualbox because I have not good processor in my VPS... I need can run multiples instances in the ubuntu of the VPS... – Milor123 – 2017-04-03T19:12:48.837

That depends if you can use network namespaces on the VPS. – harrymc – 2017-04-03T19:14:39.607

Really I could use proxychains for solved it. The problem is that the problem can not be opened in more of one instance – Milor123 – 2017-04-03T19:15:57.860

Proxychains only present an IP address to an external server. A program launched from inside the computer sees the real IP address associated with the default network interface. If the computer has multiple network interfaces then programs can be bound to them and therefore use differing IP addresses - this is also described in my above link, but the network namespaces method is easier to use. – harrymc – 2017-04-04T05:51:48.243

Thank you, but it don't solve the problem for open multiple instances in the software. – Milor123 – 2017-04-04T16:50:46.777

Why doesn't it solve the problem? – harrymc – 2017-04-04T17:48:26.320

Because I cant open multiple instances of the app without virtualbox. I need open with multiple instances, the networking problem are from another section – Milor123 – 2017-04-07T03:22:24.100

Please understand that there are two parts to my answer. VirtualBox is only the first part. The part using network namespaces does not use at all VirtualBox. With network namespaces you can have as many instances of a program running - each with its own IP address. This is a Linux feature and does not use VirtualBox. – harrymc – 2017-04-07T06:10:07.357