Zones can talk to the outside world if you use NAT. It's only bridged networking with promiscuous mode that is disallowed by airport. The problem with NAT is that you can't talk directly to the zone from outside, even from the host computer, unless you manually set up virtualbox port tunneling.
I've heard some reports of getting bridged mode to work, but that it depends on the network you connect to. I've not verified this myself, though. Sent from my iPhone On Aug 3, 2014, at 1:47 AM, Duncan Groenewald via smartos-discuss < [email protected]> wrote: OK, I got most of it working, seems that it is not possible to get a zone to access the outside world when running VirtualBox on OSX unless you use a wired ethernet link. Now I can’t get nagios to run. I am trying to use the standard Smart OS package but their installation instructions seem to be missing large chunks, like: 1. Assumes you have Apache installed 2. Seems to assume you are logged in as a user other than root 3. If you do try installing as a user other than root then pkgin seems to fail 4. Installing as root seems to work but you have to separately install Apache (no mention of this in the installation guide!) and a whole bunch of manual configuration… 5. During installation you get a message indicating nagios can be managed using SMF but svcadm enable just gets nagios in maintenance mode! 5. And then if you start it manually you end up with a '403 Forbidden' error from Apache! frustrating… surely if you install package like nagios it should work. On 3 Aug 2014, at 2:41 pm, Tim Boudreau <[email protected]> wrote: With VirtualBox, it's much easier to use the ISO image. Set up a VirtualBox VM as Solaris, make sure you're using Bridged Adapter as in your NIC settings for the VM, mount the ISO image in the virtual cd rom drive, and boot. Go through the setup, and after it reboots, you'll be in your hypervisor (note you will not be able to run Linux VMs underneath VirtualBox). Run 'imgadm update' to get an up-to-date list of images for zones. Follow the instructions on the wiki for creating a zone - create an appropriate json file and pass it to 'vmadm create -f', specifying the UUID of the base image you want to use (the base64 images are a good place to start). Once your vm is created, 'vmadm list' to see that it's running, and then 'zlogin [UUID]'. Not much more to it. Sounds like you're getting tangled up with trying the USB image within VirtualBox - the cd rom image solves that. -Tim On Sat, Aug 2, 2014 at 12:41 AM, Duncan Groenewald via smartos-discuss < [email protected]> wrote: > Hi, I am trying to figure out if I can set up a desktop based SmartOS VM > for testing purposes and am not sure if I have correctly understood all the > basics. Hopefully someone can point me in the right direction if I am not. > > > Here is my understanding of how one would use SmartOS in a VM environment: > > 1. Download the USB image and convert to a VMDK image and set this as the > boot disk for the VirtualBox VM. > 2. Create another VMDK image which will be used as the SmartOS Zpool > where actual user data will be stored. > 3. Booting the SmartOS boots into the Global Zone - one should not > install anything in this zone! > 4. Create a Zone for your application (e.g. nagios, mysql, etc..) > 5. Log in to this Zone and install your applications > 6. The VirtualBox VM is not the same as a Joyent Smart OS cloud > environment (which I presume is actually a Zone) > > > I think my mistake has been assuming I can install applications > immediately in the VM thinking the VM would be the same as a SmartOS cloud > environment. However I kept getting errors during installation of > applications because configuration could not be changed. > > I would appreciate some feedback as to whether this understanding is in > fact correct, and if not then what is. > > Also how do I create a Zone that has a nic that can see the outside world > ? Seems that by default this is not the case. > > Thanks > > > > ------------------------------------------- > smartos-discuss > Archives: https://www.listbox.com/member/archive/184463/=now > RSS Feed: > https://www.listbox.com/member/archive/rss/184463/24549504-c4bff9d3 > Modify Your Subscription: https://www.listbox.com/member/?& > Powered by Listbox: http://www.listbox.com > -- http://timboudreau.com *smartos-discuss* | Archives <https://www.listbox.com/member/archive/184463/=now> <https://www.listbox.com/member/archive/rss/184463/24423351-9edae294> | Modify <https://www.listbox.com/member/?&> Your Subscription <http://www.listbox.com> ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
