OpenSolaris on VirtualBox


 
Thread Tools Search this Thread
Operating Systems Solaris OpenSolaris on VirtualBox
# 1  
Old 03-24-2009
OpenSolaris on VirtualBox

I've just installed VirtualBox on my PC and installed OpenSolaris as a virtual machine within it. The PC connects to the internet via a router and uses DHCP to get its IP address. How do I configure the OpenSolaris virtual machine to use the same DHCP server so I can connect it to the net. At the moment ifconfig says that the interface is up and DHCP enabled but has a strange IP address. Automatic configuration doesn't seem to want to work.

Any help appreciated.

Jerry
# 2  
Old 03-24-2009
If you go into your settings-network part of the guest os, I.E. your OpenSolaris VM, you see a few options. In paticular when you just run a default VM with little configuration it is set to operate on an internal NAT. This will allow the VM to share your primary network address with your host machine, although it is behind an internal gateway.

If you want your VM to have a "real" IP address from your DHCP server, you need to configure it to bind to a virtual network device. This involves you installing a virtual network device. Under Windows, the Virtual Box can give you precise details how to do this, but the program is shipped with a driver that you can add which is a virtual network card to your hosts. Then you bind the VM (in the settings) to that paticular Virtual network card.

I hope this helps. I will dig into the VirtualBox docs later tonight and try to get specific details for you.
# 3  
Old 03-25-2009
follow these steps
  • go to virtual box
  • Click on the network that you see on the right hand side
  • select host network interface
  • Now start the machine
  • After coming to the prompt give the following commands:
  • ifconfig <ethernet card name> plumb
  • ifconfig <ethernet card name> dhcp
This will take IP address from the internet. And will be in the same subnet as your host machine. I hope this helps. Let me know if it worksSmilie
# 4  
Old 03-25-2009
The default configuration which is using NAT should allow you to connect to the Internet without any tweaking.
# 5  
Old 03-29-2009
Finally got a chance to check it out...With a NAT setting, it didn't want to work. Changing the setting the DHCP as suggested by amult worked without me needing to make any further changes once I'd started the VM.

Thanks everyone.

Jerry
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing

VirtualBox

I want to change my virtual box disk to immutable. When I try to do that I get the following error. Error changing medium type from Normal to Immutable. Cannot change the type of medium '/root/VirtualBox VMs/fedora13/fedora13.vmdk' because it is attached to 1 virtual machines Please help me... (2 Replies)
Discussion started by: Ankur Goyal
2 Replies

2. UNIX for Dummies Questions & Answers

Questions regarding OpenSolaris, VirtualBox, and UNIX

I'm sorry for the vague title, but I am a complete newbie to UNIX and whatnot. I literally just tried to learn it 3 hours ago so please bear with me. I'll just try and start from the top. I downloaded VirtualBox and used that to open OpenSolaris. As far as I can tell, it is working fine, but... (2 Replies)
Discussion started by: vlay2
2 Replies

3. Virtualization and Cloud Computing

Nexenta (OpenSolaris kernel) + VirtualBox [weird host crashes]

I don't suppose anyone has experienced any weird host crashes in Nexenta (host) using VirtualBox 3.0.x (in headless mode)? It seems the host stays alive (I can even type text into the box if I have a keyboard hooked up) but it drops all user connections and network connections (so i can't ssh /... (0 Replies)
Discussion started by: laumars
0 Replies

4. High Performance Computing

Building a Solaris Cluster Express cluster in a VirtualBox on OpenSolaris

Provides a description of how to set up a Solaris Cluster Express cluster in a VirtualBox on OpenSolaris. More... (0 Replies)
Discussion started by: Linux Bot
0 Replies
Login or Register to Ask a Question