{"id":20398752,"url":"https://github.com/bcambl/vmclone","last_synced_at":"2026-04-19T00:02:19.353Z","repository":{"id":19750140,"uuid":"23007111","full_name":"bcambl/vmclone","owner":"bcambl","description":"A virtual machine cloning script written in python","archived":false,"fork":false,"pushed_at":"2015-03-13T02:04:04.000Z","size":304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T11:28:47.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcambl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-16T00:36:20.000Z","updated_at":"2015-03-13T02:04:05.000Z","dependencies_parsed_at":"2022-07-22T13:02:06.843Z","dependency_job_id":null,"html_url":"https://github.com/bcambl/vmclone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fvmclone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fvmclone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fvmclone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fvmclone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcambl","download_url":"https://codeload.github.com/bcambl/vmclone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945530,"owners_count":20046870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T04:23:57.222Z","updated_at":"2025-12-04T02:06:31.618Z","avatar_url":"https://github.com/bcambl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vmclone.py\nThis is a script that I use for creating multiple virtual machines clones.\nCreate a minimal CentOS VM and clone this project to your /root directory. Now\nshutdown the VM and clone. Once the new clone has booted, execute the script to \nchange the hostname and IP addresses.\n\nAssumptions:\n-----------\n- Linux distribution is CentOS/RHEL 6/7 (script may require tweaks for others)\n\n#### The following files will be modified:\n\n/etc/hosts - PRIMARY IP, BACKUP IP, HOSTNAME, DOMAIN\n\n/etc/sysconfig/network - HOSTNAME\n\n/etc/sysconfig/network-scripts/ifcfg-\u003cinterface\u003e - IP, NETMASK, GATEWAY, MAC, UUID\n\n/etc/ntp.conf - NTP SERVERS (ntp servers specified in settings)\n\n/ect/resolv.conf - NAMESERVERS (nameservers specified in settings)\n\n\n#### Un-Identify Host for Cloning\n\nYou will be prompted whether you would like to un-identify the server and\nshutdown. This will remove the following files:\n\n/etc/udev/rules.d/70-persistent-net.rules (CentOS 6)\n\n/etc/ssh/ssh_host_*\n\nThis will allow the system to re-generate the files upon next (re)boot.\n\n##### Usage Notes\n\n```\n# sudo ./vmclone.py \u003ccheck|clone\u003e\n```\n\n**Available parameters:**\n\n*none* - Display current interface names and associated MAC addresses\n\n*check* - Tests Nameservers and NTP servers outlined in settings (no files written)\n\n*clone* - Prompts for new Hostname and IP information, Checks available nameservers\nand ntp servers, writes configuration files, and prompts for un-identify/shutdown.\n\n\n\n*The script requires root or sudo to execute.*\n\n*Comment out the 'development' variables and uncomment the 'production' variables \nin the settings.py file*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcambl%2Fvmclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcambl%2Fvmclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcambl%2Fvmclone/lists"}