Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 10
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1132 times and has 9 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
shock Two virtual machines sharing one identity

Hi,

I've got one machine running two VirtualBox virtual machines, with in them running Ubunutu with Boinc running on them. When running both VM's simultaniously (VirtualBox doesn't support multi-core, so to use both cores you need to run 2 VM's) I noticed both clients appear to identify them to WCG identically, resulting in the Hostname in the Results Status changing depending on which was last to connect.

I've tried uninstalling & reinstalling Boinc, detaching & attaching WCG, but all to no result. They keep on stealing eachothers id.

I suspect there is a hidden id somewhere which is used in the communication with BOINC which isn't reset, even on reinstallation and even detaching.

For now I have shut down one of the VM's. However I would like to turn the other one on again, so it appears as itself in the Results Status, and it doesn't interfere with its sibling VM. Hopefully somebody can tell me how to force one of my VM's to get a new id somehow.
[Dec 30, 2008 4:13:08 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

Different hostnames should be enough to get them different IDs. Did they have different hostnames at the time you attached them?

Uninstalling may not actually remove the files you need. Detaching and reattaching ought to do it, but the hostname (domain name) must be different.
[Dec 30, 2008 4:36:10 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

The hostnames are different as far as I can see. It definately shows a different hostname in the Terminal window and on the Results Status screen (that is, it shows the name of the VM that last connected to WCG)

It seems to think it is the same computer with a changed hostname, and picks up the new hostname, rather than seeing it as a new computer.

Btw, I created the second VM by copying the virtual disk of the first VM (rather than installing Ubuntu all over again). However I would expect that should not matter.
----------------------------------------
[Edit 1 times, last edit by Former Member at Dec 30, 2008 5:56:39 PM]
[Dec 30, 2008 5:54:42 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

This is why it has to have the changed hostname when you first attach, before the computer has been assigned a host ID. If it has an ID already, you need to wipe that clean (and make sure the hostname is different, otherwise the server will just assign the old ID again).

As you correctly observed, once it has a host ID assigned it will happily follow changes to the hostname.
[Dec 30, 2008 6:19:44 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

Ok, so how do I wipe this host id clean? I assume there is an easier way than reinstalling Ubuntu confused
[Dec 30, 2008 7:10:40 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

As I said, it should be enough to detach from WCG, change the hostname, and reattach.

If you want to be more cautious, you can detach from WCG, completely uninstall BOINC, delete the remaining files (specifically the client_state files), change the hostname, reinstall and reattach.
[Dec 30, 2008 7:29:01 PM]   Link   Report threatening or abusive post: please login first  Go to top 
twilyth
Master Cruncher
US
Joined: Mar 30, 2007
Post Count: 2130
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

I'm curious about something. When you set up a virtual machine, do you set up individual storage for each one so boinc is isolated or do you share storage maintained outside the VM's. If the later, that might explain the problem - if I understand it correctly.
----------------------------------------


[Jan 3, 2009 2:17:14 PM]   Link   Report threatening or abusive post: please login first  Go to top 
andyarmstrong
Cruncher
Joined: Jun 25, 2008
Post Count: 22
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

WHy bother - presumably when ur running the virtual machine its training cpu time from the original boinc installation. Surely its more worthwile just to concentrate all cpu time on the one client?
[Jan 5, 2009 8:12:08 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

I'm curious about something. When you set up a virtual machine, do you set up individual storage for each one so boinc is isolated or do you share storage maintained outside the VM's. If the later, that might explain the problem - if I understand it correctly.

Both virtual machines were completely contained. No shared storage, sorry wink

WHy bother - presumably when ur running the virtual machine its training cpu time from the original boinc installation. Surely its more worthwile just to concentrate all cpu time on the one client?

If I would have Boinc running on the original client, you would be completely right. However I don't have Boinc running on on the machine itself (I can't) so it should be possible to run Boinc in a VM.

Anyway, during some googling I found that VMWare Player supports 2-way SMP, meaning I should be able use both cores with one VM/Boinc installation. That should save some overhead, aswell as avoiding this problem. I think I'll dry out the VirtualBox Boinc client (no new tasks) and install a VMWare VM with Boinc so I can start up that one once the VirtualBox has finished its work.
----------------------------------------
[Edit 1 times, last edit by Former Member at Jan 6, 2009 6:49:38 PM]
[Jan 6, 2009 6:48:05 PM]   Link   Report threatening or abusive post: please login first  Go to top 
andyarmstrong
Cruncher
Joined: Jun 25, 2008
Post Count: 22
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Two virtual machines sharing one identity

ahh gotcha!
[Jan 6, 2009 7:12:35 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread