First of all, you need to install VirtualBox, which is found here. Then download one of the prebuilt VirtualBox images for the Developer Days. You can choose your one here. Download the ova file and then import your VM into VirtualBox.
To import, choose File> Import Appliance in VirtualBox and click choose to select the directory where you want the VM to live, then select your ova file. In this example, I'm using @krisrice's Oracle DeveloperDays VM. Once you click finish, and agree to the licenses, you'll see the 'Oracle Developer Days' VM in VirtualBox with a powered off state.
Great. We're ready to fire up the box and play inside it. All passwords for this are 'oracle', so you cant go wrong. In this, the database is all setup automatically, as is this list of stuff.
- Oracle Linux 5
- Oracle Database 11g Release 2 Enterprise Edition
- Oracle TimesTen In-Memory Database Cache
- Oracle XML DB
- Oracle SQL Developer
- Oracle SQL Developer Data Modeler
- Oracle Application Express
- Oracle JDeveloper
- Hands-On-Labs (accessed via the Toolbar Menu in Firefox)
So now, login to the vm with oracle/oracle and a terminal window will show you whats available and the network profiles you setup in the VM settings. The network settings I setup for this is here
These two adapters do separate things. The bridged adapter will assign an IP address from the wireless NIC. This is setup by default when you install the VM and allows you to get access to the internet from the VM. The NAT adapter will allow you to access the VM from the host machine when you have no physical NIC or internet available. This happened me yesterday when presenting some SQLDeveloper functionality. By enabling the NAT adapter and setting up a few port forwarding rules, we can ssh into the VM and connect SQL Developer to the normal LISTENER port.
The NAT adapter looks like this.
and setting up two port forwarding rules, gives us this
When you login to the VM, you'll see this on the terminal window.
This setup will allow you to spark up firefox in the VM and connect to the internet using the local network ip 192.168.1.42. Now, if we switch off the Airport and disable the bridging adapter, we should still be able to connect to the VM from outside. Restarting the VM, gives us this terminal window on login to the oracle account
Now, we have no external IP, but we have our port forwarding rules set up to get access to the VM from outside. Now, we have two rules, one which maps anything on port 2222 to port 22 on the guest. this means we can ssh into the VM on port 2222 on the host. So, connecting with this
and we get the login terminal from the VM
Brilliant. Now, Lets see SQL Developer connect to the VM too. We setup the connection like a connection to xe on localhost, except the SID is orcl on the VM.
and we can look at the database version report which shows us what database we are connected to
And now, you're connected and good to go. This is great for doing demos in a canned environment, especially when you dont have access to an internet connection when doing a demo or showing something off.
View comments