LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2016, 12:36 PM   #1
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Is there a Vagrant Box for Slackware (,preferable) current?


Hello,

Like the title say, the question is if you know a location for a Vagrant Box like that.

Preferable, using Slackware Current (and 32bit).

All the best!
 
Old 05-24-2016, 04:48 PM   #2
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
I have some boxes created with minimal configuration: just the Vagrant insecure SSH keypair and sudoers suggestion from here . I use vagrant with the vagrant-libvirt plugin for KVM support instead of the default VirtualBox provider. If you run libvirt, virt-manager and qemu from SBo these boxes should work with no extra configuration needed.

These are 32bit and 64bit Slackware-current boxes, up to Fri May 20 21:20:29 UTC 2016 with the A/, AP/, D/, L/, and N/ package series installed.

I don't have any boxes that use the VirtualBox provider because I don't use -current myself on my desktop and I need a recent version of VirtualBox to create them. Once 14.2 is out, I'll populate this box repository with some other provider versions.

Note that the URLs below are a temporary setup while I get the real server ready.

1. Add the box (use slackware64-current for 64bit)
Code:
gzamudio@hades:~ $ mkdir vagrant
gzamudio@hades:~ $ cd vagrant
gzamudio@hades:~/vagrant $ vagrant box add https://mirrors.slackware.mx/vagrant.../metadata.json
==> box: Loading metadata for box 'https://mirrors.slackware.mx/vagrant/boxes/slackware-current/metadata.json'
==> box: Adding box 'slackware32-current' (v2016.05.20) for provider: libvirt
    box: Downloading: https://mirrors.slackware.mx/vagrant...2016.05.20.box
    box: Calculating and comparing box checksum...
==> box: Successfully added box 'slackware32-current' (v2016.05.20) for 'libvirt'!
2. Create the box
Code:
gzamudio@hades:~/vagrant $ vagrant init slackware32-current
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.

gzamudio@hades:~/vagrant $ vagrant up --provider libvirt
Bringing machine 'default' up with 'libvirt' provider...
==> default: Uploading base box image as volume into libvirt storage...
==> default: Creating image (snapshot of base box volume).
==> default: Creating domain with the following settings...
==> default:  -- Name:              vagrant_default
==> default:  -- Domain type:       kvm
==> default:  -- Cpus:              1
==> default:  -- Memory:            512M
==> default:  -- Management MAC:
==> default:  -- Loader:
==> default:  -- Base box:          slackware32-current
==> default:  -- Storage pool:      default
==> default:  -- Image:             /var/lib/libvirt/images/vagrant_default.img (15G)
==> default:  -- Volume Cache:      default
==> default:  -- Kernel:
==> default:  -- Initrd:
==> default:  -- Graphics Type:     vnc
==> default:  -- Graphics Port:     5900
==> default:  -- Graphics IP:       127.0.0.1
==> default:  -- Graphics Password: Not defined
==> default:  -- Video Type:        cirrus
==> default:  -- Video VRAM:        9216
==> default:  -- Keymap:            en-us
==> default:  -- TPM Path:
==> default:  -- INPUT:             type=mouse, bus=ps2
==> default:  -- Command line :
==> default: Creating shared folders metadata...
==> default: Starting domain.
==> default: Waiting for domain to get an IP address...
==> default: Waiting for SSH to become available...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Configuring and enabling network interfaces...
==> default: Rsyncing folder: /home/gzamudio/vagrant/ => /home/vagrant/sync
3. SSH into it
Code:
gzamudio@hades:~/vagrant $ vagrant ssh
Last login: Tue May 24 19:04:33 2016
Linux 4.4.11-smp.

vagrant@slackware32-current:~$ uname -a
Linux slackware32-current 4.4.11-smp #2 SMP Thu May 19 00:50:37 CDT 2016 i686 Westmere E56xx/L56xx/X56xx (Nehalem-C) GenuineIntel GNU/Linux
 
4 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Vagrant: Sharing folders with vagrant-sshfs LXer Syndicated Linux News 0 04-05-2016 01:53 PM
Vagrant+Ansible playbooks. How to use same playbook on non vagrant provision markotitel Linux - Virtualization and Cloud 1 12-06-2013 09:00 AM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
firefox 2.0 "save as box" problem on Slackware Current davimint Slackware 5 05-25-2007 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration