![]() Let's create a disk for our box, in my case I just chose to create a 20G disk, the installation size will be less than 1G, the disk is also thin-provisioned, so we won't waste any space creating a larger disk. PLEASE NOTE: in this example I'll show you how to create a rhel72 vagrant box, anyway you can change the kickstart file according to your needs. Just one: Red Hat Enterprise Linux ISO. The process requires only a Linux system with libvirt installed. The process requires only a dvd or ISO image pre-downloaded on your system. I've started experimenting on automating the build process of RHEL based vagrant boxes. You can obtain it through the following commands on your Fedora system (userspace or through yum): ![]() This short how to requires Vagrant plugin named: vagrant-libvirt. This key will be automatically replaced by Vagrant itself at first boot. ![]() Vagrant tool can easily login as "vagrant" user thanks to a public insecure key placed inside. Vagrant uses a well-known user called "vagrant" created with default password "vagrant", this user has been added to /etc/sudoers file (previously by the author) so he can obtain super-user access to the whole machine without password. A default Vagrantfile is generated through the command "vagrant init box_name" directly in the current user dir. You can control vm memory, network etc, for more information about a Vagrantfile I suggest you take a look into the online documentation. Vagrant is a system tool that lets you easily start and stop a virtual machine exposing the only thing you need: ssh console.Įvery vagrant box is composed by a disk image file, some metadata related to the hypervisor chosen by the author and a default Vagrantfile.Ī Vagrantfile is nothing more than a vm descriptor file. How many times you needed a fast-way to test your POC?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |