[Spce-user] New Install
Horace Miles
Horace.Miles at myit-solutions.com
Mon May 5 23:23:40 EDT 2014
Thank you Alexander, but I have done the full load on a new box. I am stuck at getting the subscribers authenticated. Do you know what log files I need to look at to figure out why they wont authenticate? I can access the dashboard with the administrator account, but can't authenticate as a subscriber. I will use your vigrant load to learn from. But I also want to be able to fix what I have already done. Any help would be appreciated?
-----Original Message-----
From: Alexander Lutay [mailto:alutay at sipwise.com]
Sent: Monday, May 05, 2014 5:43 AM
To: spce-user at lists.sipwise.com
Cc: Horace Miles
Subject: Re: [Spce-user] New Install
Dear Horace!
While you are using virtualbox, I suggest you to try our Vagrant image.
You can find the simple "how to" here:
> http://www.sipwise.com/doc/mr3.2.1/spce/ar01s04.html#_vagrant_box_for_
> virtualbox
1) you just need to install Vagrant from http://www.vagrantup.com/downloads.html (it has very simple installer).
2) run two commands to get the latest NGCP installation
> vagrant init spce-mr3.2.1
> http://deb.sipwise.com/spce/images/sip_provider_CE_mr3.2.1_vagrant.box
> vagrant up
Which will be automatically downloaded/installed/started VirtualBox VM and configured for your network on NGCP, also updated NGCP to the latest version, create a test accounts for you and report how use the system :-)
Real sample from my machine:
> 14:30:34 ✔ taurus:~$ cd /tmp/
> 14:30:36 ✔ taurus:/tmp$ vagrant init spce-mr3.2.1
> http://deb.sipwise.com/spce/images/sip_provider_CE_mr3.2.1_vagrant.box
> A `Vagrantfile` has been placed in this directory. You are now ready
> to `vagrant up` your first virtual environment! Please read the
> comments in the Vagrantfile as well as documentation on
> `vagrantup.com` for more information on using Vagrant.
> 14:30:40 ✔ taurus:/tmp$ vagrant up
> Bringing machine 'default' up with 'virtualbox' provider...
> ==> default: Box 'spce-mr3.2.1' could not be found. Attempting to find and install...
> default: Box Provider: virtualbox
> default: Box Version: >= 0
> ==> default: Adding box 'spce-mr3.2.1' (v0) for provider: virtualbox
> default: Downloading:
> http://deb.sipwise.com/spce/images/sip_provider_CE_mr3.2.1_vagrant.box
> ==> default: Successfully added box 'spce-mr3.2.1' (v0) for 'virtualbox'!
> ==> default: Importing base box 'spce-mr3.2.1'...
> ==> default: Matching MAC address for NAT networking...
> ==> default: Setting the name of the VM:
> tmp_default_1399293429922_92225 ==> default: Clearing any previously set network interfaces...
> ==> default: Available bridged network interfaces:
> 1) eth0
> 2) virbr0
> 3) tap2
> 4) wlan0
> 5) virbr1
> 6) docker0
> default: What interface should the network bridge to? 1 ==>
> default: Preparing network interfaces based on configuration...
> default: Adapter 1: nat
> default: Adapter 3: bridged
> ==> default: Forwarding ports...
> default: 1443 => 1443 (adapter 1)
> default: 2443 => 2443 (adapter 1)
> default: 443 => 3443 (adapter 1)
> default: 22 => 2222 (adapter 1)
> ==> 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: sipwise
> default: SSH auth method: private key
> default: Warning: Connection timeout. Retrying...
> ==> default: Machine booted and ready!
> ==> default: Checking for guest additions in VM...
> ==> default: Configuring and enabling network interfaces...
> ==> default: Mounting shared folders...
> default: /vagrant => /tmp
> default: /vagrant/provisioning.d =>
> /home/taurus/.vagrant.d/boxes/spce-mr3.2.1/0/virtualbox/include
> ==> default: Running provisioner: shell...
> default: Running: /tmp/vagrant-shell20140505-6134-1ejvhhr
> [vagrant-shell] Running custom scripts from '/vagrant/provisioning.d/' on VM ...
> [10_init_vm_network] Running
> /vagrant/provisioning.d/10_init_vm_network
> [10_init_vm_network] Moving default gw route from eth0 to eth1 ...
> [10_init_vm_network] Moving services from eth0 to eth1 (10.0.0.147)...
> [10_init_vm_network] Applying IP changes (it can take a few minutes)...
> [10_init_vm_network] (technical details are stored into
> '/var/log/vagrant-provision.log' on VM) [20_add_sip_account] Running
> /vagrant/provisioning.d/20_add_sip_account
> [20_add_sip_account] Adding SIP credentials...
> [20_add_sip_account] - removing domain 10.0.0.147 with subscribers
> [20_add_sip_account] - adding domain 10.0.0.147
> [20_add_sip_account] - adding subscriber 43991002 at 10.0.0.147 (pass: 43991002)
> [20_add_sip_account] - adding subscriber 43991003 at 10.0.0.147 (pass: 43991003)
> [20_add_sip_account] - adding subscriber 43991004 at 10.0.0.147 (pass: 43991004)
> [20_add_sip_account] - adding subscriber 43991005 at 10.0.0.147 (pass: 43991005)
> [20_add_sip_account] - adding subscriber 43991006 at 10.0.0.147 (pass: 43991006)
> [20_add_sip_account] - adding subscriber 43991007 at 10.0.0.147 (pass: 43991007)
> [20_add_sip_account] - adding subscriber 43991008 at 10.0.0.147 (pass: 43991008)
> [20_add_sip_account] - adding subscriber 43991009 at 10.0.0.147 (pass: 43991009)
> [20_add_sip_account] You can USE your VM right NOW:
> https://10.0.0.147:1443 [30_update_ngcp] Running
> /vagrant/provisioning.d/30_update_ngcp
> [30_update_ngcp] Updating list of packages...
> [30_update_ngcp] Checking NGCP for updates...
> [30_update_ngcp] Updating NGCP to the latest version (it may take some time)...
> [30_update_ngcp] (technical details are stored into
> '/var/log/vagrant-provision.log' on VM) [30_update_ngcp] Updating Debian packages...
> [30_update_ngcp] Updating NGCP database...
> [30_update_ngcp] Updating NGCP configs...
> [30_update_ngcp] Applying NGCP changes (it can take a few minutes)...
> [30_update_ngcp] NGCP has been updated successfully.
>
> Everything is OK, feel free to use VM: https://10.0.0.147:1443
>
> 14:40:10 ✔ taurus:/tmp$
Then you can access ssh console in one command:
> 14:40:10 ✔ taurus:/tmp$ vagrant ssh
> Linux spce 3.13-0.bpo.1-amd64 #1 SMP Debian 3.13.7-1~bpo70+1
> (2014-03-29) x86_64
>
> The programs included with the Debian GNU/Linux system are free
> software; the exact distribution terms for each program are described
> in the individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> sipwise at spce:~$ cat /etc/sipwise_ngcp_version System installed. NGCP
> version mr3.2.1 on 2014-05-05 sipwise at spce:~$
Feel free to share your feedback! Thank you!
On 02/05/14 20:29, Horace Miles wrote:
> I am new to all of this. I am having problems with step 7. I am
> unable to connect using a browser to configure the domain.
...
--
Alexander Lutay
Head of Quality Assurance
Sipwise GmbH, Campus 21/Europaring F15
AT-2345 Brunn am Gebirge
Office: +43(0)13012036
Email: alutay at sipwise.com
Website: http://www.sipwise.com
More information about the Spce-user
mailing list