Mounting local drive with guest extensions

In the last entry we created a Linux install by creating a new virtual machine and booting from an iso image. This works but is very time consuming every time we want a playground. In this entry we will clone an existing machines using thin cloning, modify the clone, add guest services extensions, mount the E:\ drive to reading, and stage an installation of the 11g Oracle database.

The first step is to clone our existing machine. We don’t want to create a new one because the first one took almost two hours. If we left click on the oel6u5 example and right click we can select Clone…

Screenshot 2015-07-02 17.36.32

 

We are given the option of a full clone or a linked clone. A full clone takes all of the files that we created (the 40G root disk which is thin provisioned) and makes a new copy of it. The linked clone tracks differences from the old instance and the clone instance. As changes are made to the new instance, they are recorded in a new directory. The old instance is forked and any new changes happen in a new file. The old file preserves a spot in time where the two were the same. Screenshot 2015-07-02 17.36.45

 

The linked clone comes back almost immediately since no files are copied to create the new instance.

Screenshot 2015-07-02 17.36.51

 

What we want to do is mount the E:\ drive as a media folder inside of our guest operating system. To do this we must go to the settings and select shared folders. We Add a shared folder access point and map it to the E:\ drive. We automount it and make it read-write.

Screenshot 2015-07-02 17.36.59 Screenshot 2015-07-02 17.37.10 Screenshot 2015-07-02 17.37.18

 

While we are in the setting we also need to remote the CD/DVD since we are finished installing the operating system and want to boot off our new instance. We do this by selecting Storage, selecting iso file that we mapped, and clicking on the blue icon at the bottom with a minus sign in it. This removes the CD from our mapping and we boot from the hard drive that we used for our installation.

Screenshot 2015-07-02 17.37.51 Screenshot 2015-07-02 17.40.30 Screenshot 2015-07-02 17.40.33

Once we reboot, we log in as the user oracle and add the guest services extensions. This is done by going to the top menu bar in the VirtualBox window and selecting Insert Guest Additions CD image from the Devices menu. This mounts the CD and asks you if you want auto-run the content.

Screenshot 2015-07-02 17.41.00 Screenshot 2015-07-02 17.41.50 Screenshot 2015-07-02 17.42.05 Screenshot 2015-07-02 17.42.15 Screenshot 2015-07-02 17.42.23 Screenshot 2015-07-02 17.43.13

Note that kernel modifications were made to map the local drive to a mounted resource. We can eject the guest services CD and verify that the file system is mounted.

Screenshot 2015-07-02 17.43.27 Screenshot 2015-07-02 17.43.49

It is important to note that the /media/sf_E_DRIVE is readable only by root. We can copy data from this location to a local location as is needed for database installation or just access the data as root.

Screenshot 2015-07-02 17.44.16 Screenshot 2015-07-02 17.45.58

Before we install the 11g database we will want to change the hostname of this machine. We will keep the ip address the same but change the hostname by editing the /etc/hosts and /etc/sysconfig/network files. We will also need to change ownership of the staging directory back to oracle with the chmod -R command to make it owned by oracle for the installation.

Screenshot 2015-07-02 17.49.42 Screenshot 2015-07-02 17.50.13 Screenshot 2015-07-02 17.51.12 Screenshot 2015-07-02 17.52.13

In this example we change the hostname from oel6u5ex to db11g since we are staging to install the 11g instance of the database. We could have changed it to db12c if we were going to stage the 12c instance of the database. The process and procedure is the same with the exception of the hostnames and which database binaries we put into the staging area.

up next: installing the 11g database into our sandbox

4,000 thoughts on “Mounting local drive with guest extensions”

  1. high school argumentative essay samples creative writing on how i spent my summer vacation narrative essay for graduate school creative writing on picnic at seaside essay write my paper craigslist university of east anglia creative writing online writing a personal essay you do your homework after school essay online order creative writing in singapore battle of gettysburg essay how to stop procrastinating and do your homework essay on lets help the environment by cv creative writing pay to write dissertation uk cover letter for help desk job ma in english and creative writing jobs

  2. essays health and social care use of bone marrow transplants health and social care essay doing my homework fja ancient egyptian essay topics creative writing jobs mumbai writing opinion essay prompts cover letter writing service perth writing a personal essay creative writing news article juan marichal essay medical creative writing do not go gentle into that good night analysis essay creative writing story idea the best essay writing website the best essay writing websites creative writing uc berkeley pharmacy dissertation help define essay written

  3. Thanks for your entire labor on this website. Kate enjoys conducting investigation and it is easy to understand why. Most people hear all of the powerful manner you create worthwhile guidance through this web site and inspire participation from visitors on this subject matter so my daughter is undoubtedly starting to learn so much. Take pleasure in the remaining portion of the year. You’re conducting a good job.

  4. I really wanted to develop a brief remark in order to say thanks to you for the precious solutions you are showing at this site. My prolonged internet lookup has now been paid with high-quality insight to talk about with my relatives. I would express that we readers are really fortunate to live in a fantastic site with very many brilliant people with insightful secrets. I feel very lucky to have used your entire website page and look forward to plenty of more pleasurable moments reading here. Thanks once again for all the details.

  5. I wish to show my appreciation for your kindness in support of those people that require help with this particular niche. Your personal commitment to getting the solution all through had become especially important and have in every case allowed regular people just like me to get to their endeavors. Your helpful advice entails a lot to me and far more to my office colleagues. Best wishes; from everyone of us.

  6. Thanks a lot for providing individuals with such a brilliant possiblity to read from this website. It’s usually very sweet and jam-packed with a lot of fun for me personally and my office fellow workers to search your website on the least three times in one week to read the new issues you have. And of course, I’m at all times impressed with the effective secrets you serve. Some 2 ideas on this page are clearly the finest we have had.

  7. I wish to point out my love for your generosity in support of visitors who really need help with this one topic. Your very own dedication to passing the solution across had been wonderfully valuable and has constantly empowered individuals just like me to reach their objectives. Your helpful publication means much to me and substantially more to my office workers. Many thanks; from all of us.

  8. Thank you a lot for giving everyone an exceptionally splendid chance to read articles and blog posts from this web site. It is always very great and as well , packed with a good time for me personally and my office friends to search your blog nearly 3 times per week to study the latest secrets you have. And of course, I’m just actually astounded considering the great tricks you serve. Certain 2 ideas in this posting are indeed the simplest I have had.

  9. I simply desired to thank you very much once again. I do not know what I would have sorted out without the tips revealed by you concerning such a subject. It was an absolute distressing condition in my circumstances, however , spending time with a well-written mode you solved the issue forced me to jump with joy. Extremely happy for the guidance as well as trust you know what a powerful job you were getting into training people by way of your web page. Most probably you haven’t met all of us.

  10. My spouse and i felt so happy Emmanuel managed to conclude his investigations through the ideas he received from your web pages. It’s not at all simplistic to just continually be giving for free procedures that many people may have been trying to sell. And we all recognize we have got you to thank for this. Those illustrations you made, the easy blog menu, the relationships you can assist to engender – it is all unbelievable, and it is leading our son and our family reason why that article is amusing, which is certainly particularly serious. Thanks for everything!

  11. Pingback: 2magazine
  12. cialis prices Your healthcare provider may suggest using Cialis 5mg if you experience significant side effects from the 10 or 20mg dosages, or if you think that these dosages are more than needed in order to treat your erectile dysfunction