Closed bixu closed 9 years ago
Doh! I have a fix, but won't be able to get my laptop onto a wireless network until late tonight.
I'll add a basic test suite as well. All it needs to do is spin up a smartos zone and an lx zone.
Sent from my iPhone
On Dec 24, 2014, at 4:46 AM, Blake Irvin notifications@github.com wrote:
Looks like we are incorrectly doing smartos-y things to lx-y zones:
blake › cat Vagrantfile
!/usr/bin/ruby
^ syntax highlighting
Vagrant.configure('2') do |config| config.vm.provider 'virtualbox' do |v| v.memory = 2048 end
See https://vagrantcloud.com/livinginthepast for SmartOS boxes
config.vm.box = 'livinginthepast/smartos-base64' config.vm.synced_folder '.', '/vagrant', disabled: true config.vm.communicator = 'smartos'
config.global_zone.platform_image = 'hourly' config.global_zone.platform_image_url = 'https://us-east.manta.joyent.com/nahamu/public/smartos/platform-hourly.iso'
config.zone.name = 'lx_64' config.zone.brand = 'lx' config.zone.image = 'a14216b9-5060-4cc0-830e-d7e1bf95b236' config.zone.memory = 1536 config.zone.disk_size = 5 end
~/vagrants/lx64 @yetu blake › 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: lx64_default_1419423789817_99275 ==> default: Configuring a port forward to talk to the Global Zone ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (adapter 1) default: 2222 => 22022 (adapter 1) ==> default: Remapping platform ISO ==> default: SmartOS platform image hourly exists ==> 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:2222 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: 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 a14216b9-5060-4cc0-830e-d7e1bf95b236: not installed ==> default: Importing... ==> default: Creating zone lx_64 with image a14216b9-5060-4cc0-830e-d7e1bf95b236 The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!
pfexec zlogin d226b971-c450-43d5-ae6c-aac71d02c271 projadd -c "Vagrant" -U vagrant vagrant
Stdout from the command:
Stderr from the command:
bash: projadd: command not found — Reply to this email directly or view it on GitHub.
I just released 0.0.2, which has a fix for this issue.
I also added test-kitchen with a bit of bludgeoning (I got it to run serverspecs without actually having to install chef, yay!)
Looks like we are incorrectly doing smartos-y things to lx-y zones: