Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8544909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:40:27+00:00 2026-06-11T12:40:27+00:00

I am creating two CentOS Boxes with a Vagrantfile, and using two unique host

  • 0

I am creating two CentOS Boxes with a Vagrantfile, and using two unique host names for them, in their respectibe blocks

box1_config.vm.host_name = "Base1"
box1_config.vm.network:hostonly, "192.168.50.4"

box2_config.vm.host_name = "Base2"
box2_config.vm.network:hostonly, "192.168.50.5"

The OS starts without any issues, but I don’t know what hostname to use to access them.

I tried following as argument to “vagrant ssh”, but none worked and I get error: “This command requires a specific VM name to target in a multi-VM environment”

Tried with:

  • host_name
  • IP Address
  • The VM Name in VirtualBox

Any clues where I might be going wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:40:29+00:00Added an answer on June 11, 2026 at 12:40 pm

    The argument for vagrant ssh is the symbol attached to the vm definition block. For example (from the vagrant docs):

    Vagrant::Config.run do |config|
      config.vm.define :web do |web_config|
        web_config.vm.box = "web"
        web_config.vm.forward_port 80, 8080
      end
    
      config.vm.define :db do |db_config|
        db_config.vm.box = "db"
        db_config.vm.forward_port 3306, 3306
      end
    end
    

    you would do

    vagrant ssh web
    

    or

    vagrant ssh db
    

    since those are the names of the box as defined in the config.

    HTH.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating two tables in Visual Web Developer 2010 Express using the following
In Excel vba, I am creating two shapes in excel using vba. An arrow,
I'm using Reportlab to create PDFs. I'm creating two PDFs which I want to
After Using the Display Estimated Execution Plan on two queries, I ended up creating
My app is creating two sessions for a user dependent on whether the user
I'm trying to create a simple two labeled list by creating two label label
Essentially, I am just creating two classes where one class, in this case class
I am creating a registration form which contains two submit buttons. I need to
I need UNION two tables with creating new field, where 1 for first table,
hey I'm creating an app with two switches on it that change the background

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.