Cloning Fedora 25 with BOINC Preinstalled

Message boards : Server programs : Cloning Fedora 25 with BOINC Preinstalled
Message board moderation

To post messages, you must log in.

AuthorMessage
Natasha

Send message
Joined: 1 Dec 16
Posts: 2
United States
Message 74541 - Posted: 1 Dec 2016, 18:53:51 UTC

I have a VM with Fedora 25 and BOINC installed. I'd like to clone a couple of copies but when I do every copy of the app has the same computer account ID. Is there a way to reset the ID?
ID: 74541 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 74544 - Posted: 1 Dec 2016, 21:24:21 UTC - in response to Message 74541.  
Last modified: 1 Dec 2016, 21:25:34 UTC

What if you remove the ID from client_state.xml and set the host_ID to zero before restarting BOINC?
Just taking a guess here... I would think the moment that copy then made contact with the server that it would get appointed a new ID.
ID: 74544 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 74553 - Posted: 2 Dec 2016, 9:50:13 UTC
Last modified: 2 Dec 2016, 9:50:38 UTC

It's usually better to just remove the entire client_state.xml and provide a pre configured account_URL.xml file if you want the host to attach to a specific project at start. If you are using a recent version the Client uses the MAC of the computer to reuse any old hostid on the server. So you don't end up with new hosts everytime you reimage a computer.
ID: 74553 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 74554 - Posted: 2 Dec 2016, 11:39:27 UTC - in response to Message 74553.  

Yes, I suppose you're right in that removing the client_state.xml and client_state_prev.xml files will remove all that info, giving it essentially a factory reset. But are you sure about the MAC address?
ID: 74554 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 74555 - Posted: 2 Dec 2016, 12:36:13 UTC

Yes, we are using an initial account_*.xml to install BOINC on the compute nodes in the ATLAS Cluster. In the past we had problems with such kind of installations but since changing to a BOINC version that generates the host CPID using the MAC of the host we have no problems. The server can find the previous host entry in the DB based on the CPID granted that you always use the same user.
ID: 74555 · Report as offensive
HAL9000
Help desk expert
Avatar

Send message
Joined: 13 Jun 14
Posts: 81
United States
Message 74561 - Posted: 3 Dec 2016, 21:12:40 UTC

When I've done that previously I start BOINC, let it run benchmarks, and then copy the VM form that point.
Once you start adding projects the client CPID is created.
ID: 74561 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 74562 - Posted: 3 Dec 2016, 21:50:52 UTC - in response to Message 74561.  

When I've done that previously I start BOINC, let it run benchmarks, and then copy the VM form that point.
Once you start adding projects the client CPID is created.

That works too but you need to remember to add projects once you started a fresh VM. That is just an extra step that you might want to prevent if you already know which project or account manager will be attached.
ID: 74562 · Report as offensive
Natasha

Send message
Joined: 1 Dec 16
Posts: 2
United States
Message 74577 - Posted: 5 Dec 2016, 1:54:06 UTC

Thanks,

I ended up just installing BOINC after the clone.

Natasha
ID: 74577 · Report as offensive
HAL9000
Help desk expert
Avatar

Send message
Joined: 13 Jun 14
Posts: 81
United States
Message 74578 - Posted: 5 Dec 2016, 2:31:40 UTC - in response to Message 74562.  

When I've done that previously I start BOINC, let it run benchmarks, and then copy the VM form that point.
Once you start adding projects the client CPID is created.

That works too but you need to remember to add projects once you started a fresh VM. That is just an extra step that you might want to prevent if you already know which project or account manager will be attached.

I made a .bat with the projects I wanted to attach to. So once the system was up I just ran attach.bat and was done. That was the easiest way for me at the time. As I was doing 10 VMs attaching to the same 6 projects.
ID: 74578 · Report as offensive

Message boards : Server programs : Cloning Fedora 25 with BOINC Preinstalled

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.