0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Redhat on vagrant

Posted at

redhat on vagrant

vagrant box add generic/rhel8 

For vagrant

Vagrantfile

  if Vagrant.has_plugin?("vagrant-vbguest") then
    config.vbguest.auto_update = false
  end
  config.cache.scope = :box
  config.vm.box_check_update = false
  config.vm.synced_folder "./", "/vagrant"
  config.vm.box = "generic/rhel8"
  config.vm.network "private_network", ip: "192.168.33.21"
  config.vm.hostname = "redhat8.local"
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2", "--ioapic", "on"]
  end

For Redhat

subscription-manager --help
subscription-manager register
dnf module list perl
dnf module list php
vim /etc/yum.repos.d/redhat.repo 
subscription-manager repos --list
subscription-manager list --available # ここで表示される poolid
subscription-manager attach --pool=<POOL_ID>
subscription-manager list --available
vim /etc/yum.repos.d/redhat.repo 
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?