open-switch / opx-docs

OpenSwitch OPX documentation.
https://openswitch.net
123 stars 35 forks source link

vagrant setup #7

Closed dkalog closed 6 years ago

dkalog commented 6 years ago

Hi *,

I have picked up opx/2.2.0-dev from the vagrant store. Do you know which architecture corresponds to ? I have used the following Vagrant file

-- mode: ruby --

vi: set ft=ruby :

Vagrant.configure("2") do |config|

# Configure switch, i.e., device under test (DUT)
config.vm.define "switch" do |switch|
    switch.vm.box = "opx/2.2.0-dev"

    switch.vm.network "private_network", ip: "172.16.0.10", netmask: "255.255.255.0", virtualbox__intnet: "gen-sw"
    switch.vm.network "private_network", ip: "172.16.0.11", netmask: "255.255.255.0", virtualbox__intnet: "sw-rcv"
    switch.vm.network "private_network", ip: "192.168.50.4"

    switch.vm.provider "virtualbox" do |virtualbox|
        # Customize the amount of memory on the VM:
        virtualbox.memory = "1024"
        virtualbox.cpus = "1"
        # Enable promiscuous mode
        virtualbox.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
        virtualbox.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
    end

end

which successfully executes boots up. This VM is not a S 6000 emulated switch though. How can I find to which architecture corresponds to ? What are the HW framework of the VMs in the vagrant store ?

Cheers, Dimitris

jghalam commented 6 years ago

You can use "opx-show-version” command to see the platform type.

vagrant@opx22_vm:~$ opx-show-version OS_NAME="OPX" OS_VERSION="2.2.0" PLATFORM="S6000-VM" ARCHITECTURE="x86_64" INTERNAL_BUILD_ID="OpenSwitch blueprint for Dell 1.0.0" BUILD_VERSION="2.2.0.0-dev" BUILD_DATE="2017-10-27T22:22:51+0000" INSTALL_DATE="2018-01-11T23:37:31+0000" Failed to get D-Bus connection: No such file or directory SYSTEM_STATE= UPGRADED_PACKAGES=no ALTERED_PACKAGES=no vagrant@opx22_vm:~$

On Jan 19, 2018, at 8:40 AM, dkalog notifications@github.com wrote:

Hi *,

I have picked up opx/2.2.0-dev from the vagrant store. Do you know which architecture corresponds to ? I have used the following Vagrant file

-- mode: ruby --

vi: set ft=ruby :

Vagrant.configure("2") do |config|

Configure switch, i.e., device under test (DUT)

config.vm.define "switch" do |switch| switch.vm.box = "opx/2.2.0-dev"

switch.vm.network "private_network", ip: "172.16.0.10", netmask: "255.255.255.0", virtualbox__intnet: "gen-sw"
switch.vm.network "private_network", ip: "172.16.0.11", netmask: "255.255.255.0", virtualbox__intnet: "sw-rcv"
switch.vm.network "private_network", ip: "192.168.50.4"

switch.vm.provider "virtualbox" do |virtualbox|
    # Customize the amount of memory on the VM:
    virtualbox.memory = "1024"
    virtualbox.cpus = "1"
    # Enable promiscuous mode
    virtualbox.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
    virtualbox.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
end

end

which successfully executes boots up. This VM is not a S 6000 emulated switch though. How can I find to which architecture corresponds to ? What are the HW framework of the VMs in the vagrant store ?

Cheers, Dimitris

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/open-switch/opx-docs/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AF15S_ZwMudt_kFeCIafkQI14txU7MpEks5tMMWXgaJpZM4RkvWU.

jeff-yin commented 6 years ago

@dkalog do you need more assistance with this? To add to the above message, make sure you run opx-* commands as sudo/root, otherwise you will get those "Failed to get D-Bus connection" errors.

jeff-yin commented 6 years ago

I'm going to close the issue for now, please feel free to reopen if you still have questions surrounding this.