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
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

Reply via email to