Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you need to SSH to VM directly from compute node, just create and attach the management network to a VM as a second network interface. Management network name should include "management".

...

Code Block
languagebash
titleneutron net-create
$ neutron net-create management
$ neutron subnet-create management 172.27.0.0/24 --gateway 172.27.0.1

 

2. Create a VM with service network and management networkmanagement network. I added the management network as a second interface in the following example but it is not necessarily to be a second NIC.

Code Block
languagebash
titlenova boot
$ nova boot --image f04ed5f1-3784-4f80-aee0-6bf83912c4d0 --flavor 1 --nic net-id=aaaf70a4-f2b2-488e-bffe-63654f7b8a82 --nic net-id=0cd5a64f-99a3-45a3-9a78-7656e9f4873a net-A-vm-01

 3

. Once VM is up, login to the VM and enable DHCP for the second interfaceAll done. Now you can access the VM from the host machine. If the management network is not the primary interface, there's a possibility that the VM does not bring up the interface automatically. In that case, log in to the VM and bring up the interface manually.

Code Block
languagebash
titleinside a VM
$ sudo dhclient eth1

 

...

 

VLAN for connectivity between VM and underlay network

...