February 12, 201412 yr Forked from owncloud VM thread. When building a VM to share or run more than once there are a number of things that need dealt with. For instance SSH keys are typical created on first install of sshd (aka bad if lots of people have same) The purpose of this thread is to identify these and potentially come up with simple generic solutions: So far these come to mind (some may be covered by some virtual software): *SSH keys *SSL keys *All python usenet tools that have API keys e.g. sab, sickbeard etc *apt-cache or similar *bash history *virtual MAC
February 20, 201412 yr Author ... I generated a unique mac address. I would suggest that you generate a random mac address for yourself and not use the mac address configured in the package. Here's a perl script to generate a random mac address: #!/bin/bash perl -e 'printf "00:16:3E:%02X:%02X:%02X\n", rand 0xFF, rand 0xFF, rand 0xFF' ...
February 20, 201412 yr i think you can do something like this in the cfg file to give you a random mac address:- vif = [ 'mac=00:16:3e:XX:XX:XX,bridge=xenbr0' ] this should then give you a random mac address, disclaimer - untested as waiting on b4 personally i like to identify the machine via mac by including the ip address in the mac, so for me i use 192.168.1.0/24 network, and if i say allocated my vm an ip of 192.168.1.10 then i would change my mac to be 00:16:3e:00:01:10, just my own personal preferenace but i thought i would put it out there obviously this would not work if the ip for the vm is > 99 :-)
February 20, 201412 yr Author That might be a good approach at the OS and application level as well i.e. SSH keys get generated if they arent there on most distros. I would hope that apps that require an API key would do similar.
February 20, 201412 yr i think you can do something like this in the cfg file to give you a random mac address:- vif = [ 'mac=00:16:3e:XX:XX:XX,bridge=xenbr0' ] this should then give you a random mac address, disclaimer - untested as waiting on b4 personally i like to identify the machine via mac by including the ip address in the mac, so for me i use 192.168.1.0/24 network, and if i say allocated my vm an ip of 192.168.1.10 then i would change my mac to be 00:16:3e:00:01:10, just my own personal preferenace but i thought i would put it out there obviously this would not work if the ip for the vm is > 99 :-) If you are going to reserve an IP address with your router, you would want a fixed mac address for the VM. This method would generate a new mac address every time the VM was started. Once you generated a mac address though, you could then go back and change the .cfg file for the fixed mac address.
Archived
This topic is now archived and is closed to further replies.