SlideShare a Scribd company logo
How do I clone my virtual
machine, so that the clone
has the following
specifications?
{hostname: blue, new_vm_can_ping_google?: yes}
1. Open Virtual Box, and right click on the box you want to
clone. Enter a name for the cloned machine.
2. After hitting next, we want to select ‘Full
clone’
3. Next, select ‘Everything’ When asking which
snapshots to be cloned as well. Press Clone after.
4. Once completed we should see our new VM.
5. Now start the VM. We want to change the
host name permanently to ‘blue’.
• To do this we need to edit the ‘HOSTNAME’ file in the /etc/ directory
as the root user.
• Execute ‘cd /etc/’ to get to the /etc/ directory.
• Next execute ‘vim HOSTNAME’
• Our file will appear as so :
6. Now we edit the file to change the ‘red’ to
‘blue’
• Type in ‘:e’ to edit the file.
• Ensure you are in ‘insert’ mode ( click on the insert button ) you
should see “– INSERT –” bolded in the bottom left corner.
• Edit ‘red.lab.ubnetdef’ to ‘blue.lab.ubnetdef’
• Once edited, escape out of insert mode ( hit escape 3 times ) and
then enter in ‘:wq’ to save the file once done
7. Reboot the system by executing ‘reboot’
• Once rebooted you can execute the command ‘hostname’ and it
should print ‘blue’. You have successfully cloned and changed the
hostname of a machine!

More Related Content

PPSX
Create your vm
PPTX
Programming Variables
PPT
Windows 7 Instalation
ODP
ClusterDesktop how-to install on computer with Linux
PPTX
Programming Adding Interupts
PPTX
english project! by arifpraca.blogspot.com
PPTX
LaptopTrustIssues
Create your vm
Programming Variables
Windows 7 Instalation
ClusterDesktop how-to install on computer with Linux
Programming Adding Interupts
english project! by arifpraca.blogspot.com
LaptopTrustIssues

What's hot (9)

PPTX
Windows 11
PPTX
Opening a project
DOCX
UGS NX-7.5 Installation Guide
PDF
Google Chrome tips and tricks
PPT
Drive space.45
PDF
Tmux quick intro
PPT
Gomeralcontin windows 7 installation
PDF
Unicef-LaptopTrustIssues
PDF
How to fight a nyc parking ticket online updated
Windows 11
Opening a project
UGS NX-7.5 Installation Guide
Google Chrome tips and tricks
Drive space.45
Tmux quick intro
Gomeralcontin windows 7 installation
Unicef-LaptopTrustIssues
How to fight a nyc parking ticket online updated
Ad

More from Alexander Bitar (20)

PPTX
04 22-2018-tcpdump red-80
PPTX
04 18-2018--nmap port-80_blue_after_netcat
PPTX
04 18-2018--nmap blue
PPTX
04 18-2018--netcat port-80_blue
PPTX
04 16-2018--nmap blue
PPTX
04 12-2018-scp ubnetdef-to_blue
PPTX
04 12-2018-scp ubnetdef-to_blue_tmp
PPTX
04 09-2018--internal networkconnection
PPTX
04 09-2018--ssh red-to_blue
PPTX
04 09-2018--ssh blue-to_red
PPTX
04 02-2018--Slackware Wire Shark Installation
PPTX
3 27-2018--update slackware
PPTX
3 26-2018--bridged networkcard
PPTX
3 26-2018--ping google
PPTX
3 11-2018--restore snapshot
PPTX
3 07-2018--add studenttosudo
PPTX
3 11-2018--change desktoptoxfce
PPTX
3 11-2018--take snapshot
PPTX
3 06-2018--add newuserstudent
PPTX
3 05-2018-install slackwarelinux
04 22-2018-tcpdump red-80
04 18-2018--nmap port-80_blue_after_netcat
04 18-2018--nmap blue
04 18-2018--netcat port-80_blue
04 16-2018--nmap blue
04 12-2018-scp ubnetdef-to_blue
04 12-2018-scp ubnetdef-to_blue_tmp
04 09-2018--internal networkconnection
04 09-2018--ssh red-to_blue
04 09-2018--ssh blue-to_red
04 02-2018--Slackware Wire Shark Installation
3 27-2018--update slackware
3 26-2018--bridged networkcard
3 26-2018--ping google
3 11-2018--restore snapshot
3 07-2018--add studenttosudo
3 11-2018--change desktoptoxfce
3 11-2018--take snapshot
3 06-2018--add newuserstudent
3 05-2018-install slackwarelinux
Ad

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation theory and applications.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Machine Learning_overview_presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Electronic commerce courselecture one. Pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Big Data Technologies - Introduction.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation theory and applications.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Assigned Numbers - 2025 - Bluetooth® Document
Digital-Transformation-Roadmap-for-Companies.pptx
Machine Learning_overview_presentation.pptx
sap open course for s4hana steps from ECC to s4
MIND Revenue Release Quarter 2 2025 Press Release
Electronic commerce courselecture one. Pdf
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25-Week II
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Empathic Computing: Creating Shared Understanding
Big Data Technologies - Introduction.pptx
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf

04 09-2018--clone vm

  • 1. How do I clone my virtual machine, so that the clone has the following specifications? {hostname: blue, new_vm_can_ping_google?: yes}
  • 2. 1. Open Virtual Box, and right click on the box you want to clone. Enter a name for the cloned machine.
  • 3. 2. After hitting next, we want to select ‘Full clone’
  • 4. 3. Next, select ‘Everything’ When asking which snapshots to be cloned as well. Press Clone after.
  • 5. 4. Once completed we should see our new VM.
  • 6. 5. Now start the VM. We want to change the host name permanently to ‘blue’. • To do this we need to edit the ‘HOSTNAME’ file in the /etc/ directory as the root user. • Execute ‘cd /etc/’ to get to the /etc/ directory. • Next execute ‘vim HOSTNAME’ • Our file will appear as so :
  • 7. 6. Now we edit the file to change the ‘red’ to ‘blue’ • Type in ‘:e’ to edit the file. • Ensure you are in ‘insert’ mode ( click on the insert button ) you should see “– INSERT –” bolded in the bottom left corner. • Edit ‘red.lab.ubnetdef’ to ‘blue.lab.ubnetdef’ • Once edited, escape out of insert mode ( hit escape 3 times ) and then enter in ‘:wq’ to save the file once done
  • 8. 7. Reboot the system by executing ‘reboot’ • Once rebooted you can execute the command ‘hostname’ and it should print ‘blue’. You have successfully cloned and changed the hostname of a machine!