Skip to content

Instantly share code, notes, and snippets.

@bixu
Last active November 11, 2020 19:53
Embed
What would you like to do?
running an lx branded zone on SmartOS using Vagrant (lx branded zones are Linux user land on top of an emulated Linux kernel)
$ mkdir lx
$ cd lx
$ curl -O https://raw.githubusercontent.com/vagrant-smartos/vagrant-smartos-zones/master/examples/Vagrantfile.lx
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'livinginthepast/smartos-base64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'livinginthepast/smartos-base64' is up to date...
==> default: Setting the name of the VM: lx_default_1416607030661_76273
==> default: Configuring a port forward to talk to the Global Zone
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Fixed port collision for 2222 => 22022. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2200 (adapter 1)
default: 2222 => 2201 (adapter 1)
==> default: Remapping platform ISO
==> default: Downloading SmartOS platform image hourly-20141121
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: No guest additions were detected on the base box for this VM! Guest
default: additions are required for forwarded ports, shared folders, host only
default: networking, and more. If SSH fails on this machine, please install
default: the guest additions and repackage the box to continue.
default:
default: This is not an error message; everything may continue to work properly,
default: in which case you may ignore this message.
==> default: Installing vnic in global zone
==> default: Installing ZoneGate
==> default: Checking if machine supports zones: yes
==> default: Checking for zone image b7493690-f019-4612-958b-bab5f844283e: not installed
==> default: Importing...
==> default: Creating zone lx with image b7493690-f019-4612-958b-bab5f844283e
==> default: Enabling ZoneGate
$ vagrant ssh
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.16 i686)
* Documentation: https://help.ubuntu.com/
System information as of Fri Nov 21 15:06:42 MST 2014
System load: 0.0 Memory usage: 0% Users logged in: 0
Usage of /home: unknown Swap usage: 7%
=> There were exceptions while processing one or more plugins. See
/var/log/landscape/sysinfo.log for more information.
Graph this data and manage this system at:
https://landscape.canonical.com/
76 packages can be updated.
34 updates are security updates.
vagrant@ubuntu14:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment