SlideShare a Scribd company logo
1 of 8
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

What's hot

UGS NX-7.5 Installation Guide
UGS NX-7.5 Installation GuideUGS NX-7.5 Installation Guide
UGS NX-7.5 Installation GuideSaad Alam
 
Google Chrome tips and tricks
Google Chrome tips and tricksGoogle Chrome tips and tricks
Google Chrome tips and tricksOradea Tech Hub
 
Drive space.45
Drive space.45Drive space.45
Drive space.45myrajendra
 
Tmux quick intro
Tmux quick introTmux quick intro
Tmux quick introdantleech
 
Gomeralcontin windows 7 installation
Gomeralcontin windows 7 installationGomeralcontin windows 7 installation
Gomeralcontin windows 7 installationgomeralcontin
 
Unicef-LaptopTrustIssues
Unicef-LaptopTrustIssuesUnicef-LaptopTrustIssues
Unicef-LaptopTrustIssuesMatt R
 
How to fight a nyc parking ticket online updated
How to fight a nyc parking ticket online updatedHow to fight a nyc parking ticket online updated
How to fight a nyc parking ticket online updatedLawrence Berezin
 

What's hot (9)

Windows 11
Windows 11Windows 11
Windows 11
 
Opening a project
Opening a projectOpening a project
Opening a project
 
UGS NX-7.5 Installation Guide
UGS NX-7.5 Installation GuideUGS NX-7.5 Installation Guide
UGS NX-7.5 Installation Guide
 
Google Chrome tips and tricks
Google Chrome tips and tricksGoogle Chrome tips and tricks
Google Chrome tips and tricks
 
Drive space.45
Drive space.45Drive space.45
Drive space.45
 
Tmux quick intro
Tmux quick introTmux quick intro
Tmux quick intro
 
Gomeralcontin windows 7 installation
Gomeralcontin windows 7 installationGomeralcontin windows 7 installation
Gomeralcontin windows 7 installation
 
Unicef-LaptopTrustIssues
Unicef-LaptopTrustIssuesUnicef-LaptopTrustIssues
Unicef-LaptopTrustIssues
 
How to fight a nyc parking ticket online updated
How to fight a nyc parking ticket online updatedHow to fight a nyc parking ticket online updated
How to fight a nyc parking ticket online updated
 

Similar to Clone a VM and change its hostname to blue

rgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab recordrgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab recordnaaaaz
 
BIG DATA LAB sahil today.docx
BIG DATA LAB  sahil today.docxBIG DATA LAB  sahil today.docx
BIG DATA LAB sahil today.docxabcxyz1337
 
Successfully Copied Windows 10 System to Kingston A1000 M2 SSD
Successfully Copied Windows 10 System to Kingston A1000 M2 SSDSuccessfully Copied Windows 10 System to Kingston A1000 M2 SSD
Successfully Copied Windows 10 System to Kingston A1000 M2 SSDelitey123
 
Secure your digital life - Part 1
Secure your digital life - Part 1Secure your digital life - Part 1
Secure your digital life - Part 1EmilRossing
 
Virtual box new_machine_creation
Virtual box new_machine_creationVirtual box new_machine_creation
Virtual box new_machine_creationsudhir singh yadav
 
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMPFROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMPParsons
 
ClusterDesktop how-to use from Android devices
ClusterDesktop how-to use from Android devicesClusterDesktop how-to use from Android devices
ClusterDesktop how-to use from Android devicesEmil Parashkevov
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _YvesYves Mukusa
 
Software industrialization
Software industrializationSoftware industrialization
Software industrializationBibek Lama
 
Raid 1 and raid 5 configuration in windows server
Raid 1 and raid 5 configuration in windows serverRaid 1 and raid 5 configuration in windows server
Raid 1 and raid 5 configuration in windows serversudhir singh yadav
 
ClusterDesktop manual how-to use for Linux clients
ClusterDesktop manual how-to use for Linux clientsClusterDesktop manual how-to use for Linux clients
ClusterDesktop manual how-to use for Linux clientsEmil Parashkevov
 
How to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerHow to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerKaushal Mewar
 
Wml step by step
Wml step by stepWml step by step
Wml step by stepRavi Malik
 

Similar to Clone a VM and change its hostname to blue (20)

Osr506on esx
Osr506on esxOsr506on esx
Osr506on esx
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
Windows 7
Windows 7Windows 7
Windows 7
 
Virtualization.pdf
Virtualization.pdfVirtualization.pdf
Virtualization.pdf
 
Tips n tricks
Tips n tricksTips n tricks
Tips n tricks
 
rgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab recordrgpv 7th sem for it & cs Cloud computing lab record
rgpv 7th sem for it & cs Cloud computing lab record
 
BIG DATA LAB sahil today.docx
BIG DATA LAB  sahil today.docxBIG DATA LAB  sahil today.docx
BIG DATA LAB sahil today.docx
 
Successfully Copied Windows 10 System to Kingston A1000 M2 SSD
Successfully Copied Windows 10 System to Kingston A1000 M2 SSDSuccessfully Copied Windows 10 System to Kingston A1000 M2 SSD
Successfully Copied Windows 10 System to Kingston A1000 M2 SSD
 
Secure your digital life - Part 1
Secure your digital life - Part 1Secure your digital life - Part 1
Secure your digital life - Part 1
 
Virtual box new_machine_creation
Virtual box new_machine_creationVirtual box new_machine_creation
Virtual box new_machine_creation
 
Os Virtualization
Os VirtualizationOs Virtualization
Os Virtualization
 
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMPFROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
FROM LOCAL TO LIVE: EXPORTING WORDPRESS FROM MAMP
 
ClusterDesktop how-to use from Android devices
ClusterDesktop how-to use from Android devicesClusterDesktop how-to use from Android devices
ClusterDesktop how-to use from Android devices
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
 
Https service mule
Https service muleHttps service mule
Https service mule
 
Software industrialization
Software industrializationSoftware industrialization
Software industrialization
 
Raid 1 and raid 5 configuration in windows server
Raid 1 and raid 5 configuration in windows serverRaid 1 and raid 5 configuration in windows server
Raid 1 and raid 5 configuration in windows server
 
ClusterDesktop manual how-to use for Linux clients
ClusterDesktop manual how-to use for Linux clientsClusterDesktop manual how-to use for Linux clients
ClusterDesktop manual how-to use for Linux clients
 
How to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerHow to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another Server
 
Wml step by step
Wml step by stepWml step by step
Wml step by step
 

More from Alexander Bitar

04 22-2018-tcpdump red-80
04 22-2018-tcpdump red-8004 22-2018-tcpdump red-80
04 22-2018-tcpdump red-80Alexander Bitar
 
04 18-2018--nmap port-80_blue_after_netcat
04 18-2018--nmap port-80_blue_after_netcat04 18-2018--nmap port-80_blue_after_netcat
04 18-2018--nmap port-80_blue_after_netcatAlexander Bitar
 
04 18-2018--netcat port-80_blue
04 18-2018--netcat port-80_blue04 18-2018--netcat port-80_blue
04 18-2018--netcat port-80_blueAlexander Bitar
 
04 12-2018-scp ubnetdef-to_blue
04 12-2018-scp ubnetdef-to_blue04 12-2018-scp ubnetdef-to_blue
04 12-2018-scp ubnetdef-to_blueAlexander Bitar
 
04 12-2018-scp ubnetdef-to_blue_tmp
04 12-2018-scp ubnetdef-to_blue_tmp04 12-2018-scp ubnetdef-to_blue_tmp
04 12-2018-scp ubnetdef-to_blue_tmpAlexander Bitar
 
04 09-2018--internal networkconnection
04 09-2018--internal networkconnection04 09-2018--internal networkconnection
04 09-2018--internal networkconnectionAlexander Bitar
 
04 09-2018--ssh red-to_blue
04 09-2018--ssh red-to_blue04 09-2018--ssh red-to_blue
04 09-2018--ssh red-to_blueAlexander Bitar
 
04 09-2018--ssh blue-to_red
04 09-2018--ssh blue-to_red04 09-2018--ssh blue-to_red
04 09-2018--ssh blue-to_redAlexander Bitar
 
04 02-2018--Slackware Wire Shark Installation
04 02-2018--Slackware Wire Shark Installation04 02-2018--Slackware Wire Shark Installation
04 02-2018--Slackware Wire Shark InstallationAlexander Bitar
 
3 27-2018--update slackware
3 27-2018--update slackware3 27-2018--update slackware
3 27-2018--update slackwareAlexander Bitar
 
3 26-2018--bridged networkcard
3 26-2018--bridged networkcard3 26-2018--bridged networkcard
3 26-2018--bridged networkcardAlexander Bitar
 
3 11-2018--restore snapshot
3 11-2018--restore snapshot3 11-2018--restore snapshot
3 11-2018--restore snapshotAlexander Bitar
 
3 07-2018--add studenttosudo
3 07-2018--add studenttosudo3 07-2018--add studenttosudo
3 07-2018--add studenttosudoAlexander Bitar
 
3 11-2018--change desktoptoxfce
3 11-2018--change desktoptoxfce3 11-2018--change desktoptoxfce
3 11-2018--change desktoptoxfceAlexander Bitar
 
3 11-2018--take snapshot
3 11-2018--take snapshot3 11-2018--take snapshot
3 11-2018--take snapshotAlexander Bitar
 
3 06-2018--add newuserstudent
3 06-2018--add newuserstudent3 06-2018--add newuserstudent
3 06-2018--add newuserstudentAlexander Bitar
 
3 05-2018-install slackwarelinux
3 05-2018-install slackwarelinux3 05-2018-install slackwarelinux
3 05-2018-install slackwarelinuxAlexander Bitar
 

More from Alexander Bitar (20)

04 22-2018-tcpdump red-80
04 22-2018-tcpdump red-8004 22-2018-tcpdump red-80
04 22-2018-tcpdump red-80
 
04 18-2018--nmap port-80_blue_after_netcat
04 18-2018--nmap port-80_blue_after_netcat04 18-2018--nmap port-80_blue_after_netcat
04 18-2018--nmap port-80_blue_after_netcat
 
04 18-2018--nmap blue
04 18-2018--nmap blue04 18-2018--nmap blue
04 18-2018--nmap blue
 
04 18-2018--netcat port-80_blue
04 18-2018--netcat port-80_blue04 18-2018--netcat port-80_blue
04 18-2018--netcat port-80_blue
 
04 16-2018--nmap blue
04 16-2018--nmap blue04 16-2018--nmap blue
04 16-2018--nmap blue
 
04 12-2018-scp ubnetdef-to_blue
04 12-2018-scp ubnetdef-to_blue04 12-2018-scp ubnetdef-to_blue
04 12-2018-scp ubnetdef-to_blue
 
04 12-2018-scp ubnetdef-to_blue_tmp
04 12-2018-scp ubnetdef-to_blue_tmp04 12-2018-scp ubnetdef-to_blue_tmp
04 12-2018-scp ubnetdef-to_blue_tmp
 
04 09-2018--internal networkconnection
04 09-2018--internal networkconnection04 09-2018--internal networkconnection
04 09-2018--internal networkconnection
 
04 09-2018--ssh red-to_blue
04 09-2018--ssh red-to_blue04 09-2018--ssh red-to_blue
04 09-2018--ssh red-to_blue
 
04 09-2018--ssh blue-to_red
04 09-2018--ssh blue-to_red04 09-2018--ssh blue-to_red
04 09-2018--ssh blue-to_red
 
04 02-2018--Slackware Wire Shark Installation
04 02-2018--Slackware Wire Shark Installation04 02-2018--Slackware Wire Shark Installation
04 02-2018--Slackware Wire Shark Installation
 
3 27-2018--update slackware
3 27-2018--update slackware3 27-2018--update slackware
3 27-2018--update slackware
 
3 26-2018--bridged networkcard
3 26-2018--bridged networkcard3 26-2018--bridged networkcard
3 26-2018--bridged networkcard
 
3 26-2018--ping google
3 26-2018--ping google3 26-2018--ping google
3 26-2018--ping google
 
3 11-2018--restore snapshot
3 11-2018--restore snapshot3 11-2018--restore snapshot
3 11-2018--restore snapshot
 
3 07-2018--add studenttosudo
3 07-2018--add studenttosudo3 07-2018--add studenttosudo
3 07-2018--add studenttosudo
 
3 11-2018--change desktoptoxfce
3 11-2018--change desktoptoxfce3 11-2018--change desktoptoxfce
3 11-2018--change desktoptoxfce
 
3 11-2018--take snapshot
3 11-2018--take snapshot3 11-2018--take snapshot
3 11-2018--take snapshot
 
3 06-2018--add newuserstudent
3 06-2018--add newuserstudent3 06-2018--add newuserstudent
3 06-2018--add newuserstudent
 
3 05-2018-install slackwarelinux
3 05-2018-install slackwarelinux3 05-2018-install slackwarelinux
3 05-2018-install slackwarelinux
 

Recently uploaded

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 

Clone a VM and change its hostname to blue

  • 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!