Same ip addresses for several virtual hosts when two marionnet are running

Bug #723439 reported by em
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
marionnet
New
Undecided
Unassigned

Bug Description

When several marionnet are running on the same machine, the same ip address on interface eth42 may be given to differents virtual machines (for example if you save a marionnet project, make a copy and open this copy with another marionnet).

It would be great if for example marionnet-daemon had a list of all the ip address already used and when marionnet opens a project, it check this list and possibly change the ips addresses of the new virtual machines.

Revision history for this message
Franck Butelle (franck-butelle) wrote :

May be the first question is: do we need to be able to run multiple instances of marionnet
on the same machine? If the answer is no, the daemon (anyway unique) must block in some way creation of new
instances. If the answer is yes, the above requirement is mandatory.
Actually, addresses used are 172.23.x.y for the virtual machines
and 172.23.0.254 for the host. We can use other class B private addresses from 172.16 to 172.31.
Of course it may be a problem if the user choose the same kind of address for one of its network,
since it must be fixed before user's choice -- this is the price of the magic !
Ghostifiy interface for marionnet management/display is a nice idea to help beginners to start using marionnet,
but I think there is at least a need of an explicit warning at the virtual machine level (may be in /etc/motd).

Revision history for this message
em (emmanuel-motchane) wrote :

In fact, at IUT-Orsay, we used this year Marionnet for exams with an automatic scoring system (I can publish the scripts in a "contrib" section of Marionnet when it will be really usable).
Several students pass their examination on the same machine, one after another.
To overcome a possible problem with the scoring system, we used several X servers so when a student finished, we switched the screen on another X server and let all the Marionnet instances running (in order to eventually connect with ssh on the machines to check).
So running several instances of Marionnet can be sometimes useful, but in this case we manually (i.e. with a script) add another ip address on eth42 on the virtual machine to overcome this difficulty.

May be the easiest change would be adding a parameter for the management network in the config file (/etc/marionnet/marionnet.conf or ~/.marionnet, ...) :

MARIONNET_ADMIN_NETWORK = 172.23.0.0/24

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.