Skip to content

Instantly share code, notes, and snippets.

@Axxon
Last active August 29, 2015 14:14
Show Gist options
  • Save Axxon/5be3e23bdf97b73a00f7 to your computer and use it in GitHub Desktop.
Save Axxon/5be3e23bdf97b73a00f7 to your computer and use it in GitHub Desktop.
SaltStack + VirtualBox + Vagrant issue

Here my problem, when i try to do:

sudo scp minion.p* [email protected]:~/saltvms

like in the tutorial, i've this issue (but tried with a empty file)

vagrant@master:~$ sudo scp filetext [email protected]:~/
ssh: connect to host 192.168.56.1 port 22: Connection refused
lost connection

Here in the master server:

vagrant@master:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:d5:ac:89  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fed5:ac89/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5778 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3159 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3242049 (3.2 MB)  TX bytes:253567 (253.5 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:f4:8c:49  
          inet addr:192.168.56.102  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fef4:8c49/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6494 (6.4 KB)  TX bytes:7468 (7.4 KB)

eth2      Link encap:Ethernet  HWaddr 08:00:27:61:d5:ba  
          inet addr:192.168.1.55  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe61:d5ba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3674 (3.6 KB)  TX bytes:1852 (1.8 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2280 (2.2 KB)  TX bytes:2280 (2.2 KB)

and in my host machine:

axxon@debian:~/.ssh$ sudo ifconfig

eth0      Link encap:Ethernet  HWaddr 50:46:5d:31:b1:59  
          inet adr:192.168.1.78  Bcast:192.168.1.255  Masque:255.255.255.0
         

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte

vboxnet0  Link encap:Ethernet  HWaddr 
          inet adr:192.168.56.1  Bcast:192.168.56.255  Masque:255.255.255.0

vmnet1    Link encap:Ethernet  HWaddr 
          inet adr:192.168.156.1  Bcast:192.168.156.255  Masque:255.255.255.0

wlan0     Link encap:Ethernet  HWaddr 
          inet adr:192.168.1.63  Bcast:192.168.1.255  Masque:255.255.255.0

Here my HostOnly details:

axxon@debian:~/Projets/virtual/saltvmx3$ VBoxManage list hostonlyifs
Name:            vboxnet0
GUID:            786f6276-656e-4074-8000-0a0027000000
DHCP:            Disabled
IPAddress:       192.168.56.1
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:0800:27ff:fe00:0000
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: ***
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet0

And finaly my bridges


axxon@debian:~/Projets/virtual/saltvmx3$ VBoxManage list bridgedifs
Name:            eth0
GUID:            30687465-0000-4000-8000-50465d31b159
DHCP:            Disabled
IPAddress:       192.168.1.78
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:5246:5dff:fe31:b159
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 50:46:5d:31:b1:59
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-eth0

Name:            vmnet8
GUID:            656e6d76-3874-4000-8000-005056c00008
DHCP:            Disabled
IPAddress:       192.168.54.1
NetworkMask:     255.255.255.0
IPV6Address:     
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 00:50:56:c0:00:08
MediumType:      Ethernet
Status:          Down
VBoxNetworkName: HostInterfaceNetworking-vmnet8

Name:            wlan0
GUID:            6e616c77-0030-4000-8000-844bf5608ed6
DHCP:            Disabled
IPAddress:       192.168.1.63
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:864b:f5ff:fe60:8ed6
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 84:4b:f5:60:8e:d6
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-wlan0

Name:            vmnet1
GUID:            656e6d76-3174-4000-8000-005056c00001
DHCP:            Disabled
IPAddress:       192.168.156.1
NetworkMask:     255.255.255.0
IPV6Address:     fe80:0000:0000:0000:0250:56ff:fec0:0001
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 00:50:56:c0:00:01
MediumType:      Ethernet
Status:          Up
VBoxNetworkName: HostInterfaceNetworking-vmnet1

I'm on a debian machine, and in the vagrant file i replaced:

minion.vm.network "public_network", :bridge => 'en0: Ethernet (AirPort)' by master.vm.network "public_network", :bridge => 'eth0'

In this tutorial we've got 3 adapters, a NAT, a HostOnlyAdapter and a bridged network interface. I'm studying now the meaning of there interfaces but it isn't clear for me, could you also (i'm asking a lot i know) explain me in surface what's the usage of there interfaces ?

Thanks you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment