![]() First shutdown the VM and then on your own computer (i.e. The VM is now ready to be exported to a vagrant box. Type sudo visudo and change the following line Lastly, we have to allow users in the wheel group to run commands with sudo without the need to enter the password. ssh/ wget -O authorized_keys chmod 0600 authorized_keys Next setup the vagrant user with an insecure ssh keypair, so Vagrant is able to ssh into our VM. wget sudo mkdir /media/VBoxGuestAdditions sudo mount -o loop,ro VBoxGuestAdditions_5.1.6.iso /media/VBoxGuestAdditions/ sudo sh /media/VBoxGuestAdditions/n rm VBoxGuestAdditions_5.1.6.iso sudo umount /media/VBoxGuestAdditions sudo rmdir /media/VBoxGuestAdditions I installed the Guest Additions for Virtualbox version 5.1.6, but you should choose the one that matches your Virtualbox version. These are needed for example for the shared folders to work on Vagrant. Then install Virtualbox Guest Additions on the machine. ![]() ![]() Then install the needed dependencies # Needed for Vagrant sudo yum install -y openssh wget # Needed for Virtualbox Guest Additions sudo yum groupinstall 'Development Tools' sudo yum install -y kernel-devel When the machine has rebooted, register it with you Red Hat user account as shown below: sudo subscription-manager register -username -password -auto-attach sudo yum update After the installation the machine will be rebooted. All of these (username, password & admin password) should be set to vagrant. During the installation you will have to possibility to create a user account and set an admin password. Then start the VM from the downloaded RHEL iso and install it to the VM. For the hard disk file type choose VMDK and for the size 40gb dynamically allocated. When setting up the VM, also create a virtual hard disk for it. How to create a Vagrant Box running Red Hat Enterprise Linuxįirst download the Red Hat Enterprise Linux Developer Suite from Red Hat’s website ( ) and set up the VM in Virtualbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |