WELCOME!

What is Pinoy? It's a slang for Filipino, a person who comes from the Republic of the Philippines, or commonly known as the Philippine Islands (PI). I am a Filipino and works as an Oracle DBA in the United States. Whenever an issue arises or just for experiments, I usually forget what I did to solve/conduct them. There must be a central location where I can put everything. Thus, this blog was born. It's a collection of ideas, tips and tricks, scripts, or anything interesting that happened to me on an Oracle database or any other stuff.

The simpler, the better! has always been my motto. You don't have to complicate things. Simple things, for me, is always easier, just like my site.

FYI, anything that is written here is based on my personal experiences and is not endorsed by any other party. Also, I will not be held liable for issues that can arise by following whatever I did. Just like any other good DBA would say... ALWAYS TEST!

Hope you can find this site helpful in whatever you need and remember, I am not a guru.

Jun 3, 2013

Cloning an Ubuntu VM using Virtualbox

I was able to install Ubuntu on a virtual machine that I created with Oracle Virtualbox.  I installed Oracle XE, SOLR, and MongoDB. Since I will be testing master-slave for SOLR and MongoDB, I decided to clone my first VM. Here's what I did when cloning a VM and any issue that I encountered.

  1. Open Oracle VM Virtualbox Manager.
  2. Click on the VM that you want to clone.
  3. Click on Machine > Clone.
  4. Enter the new machine name.
  5. Check reinitialize the MAC address of all network cards.
  6. Click clone.
  7. After the machine is cloned, I had to change some settings. This step depends on your requirements:
    1. Click on settings.
    2. Click on Network.
    3. Change Adapter 1 Attached to: to Bridged Adapter.
    4. Change Name to the wired connection.
  8. Start the machine by double-clicking on the name.
At this point, your machine should be up and running with a different IP address that you the source.

However, there might be an instance where you forgot to put a check to reinitialize the MAC Address. Here's the solution:
  1. Start the VM.
  2. Log into the machine.
  3. Delete the file /etc/udev/rules.d/70-persisten-net.rules
  4. Shutdown the VM.
  5. In the Virtualbox Manager, click on the VM name.
  6. Click Settings > Network.
  7. Click on MAC Address refresh (the two-arrows at the end of the MAC address field).
  8. Click OK.
  9. Start the VM.
This helped me resolved the issue.


No comments:

Post a Comment