Advertisement
Guest User

Untitled

a guest
Apr 15th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. root@node-1:~# glance image-create --name='cirros-u14.04' --container-format=bare --disk-format=qcow2 < ./cirros-u14.04-kver-3.13.0-83-x86_64-disk.img
  2. +------------------+--------------------------------------+
  3. | Property | Value |
  4. +------------------+--------------------------------------+
  5. | checksum | 8c99e65b5e94b59ffae9349dababa07c |
  6. | container_format | bare |
  7. | created_at | 2016-04-15T09:41:36Z |
  8. | disk_format | qcow2 |
  9. | id | 73927561-fd7b-41a5-bf0e-231132383fba |
  10. | min_disk | 0 |
  11. | min_ram | 0 |
  12. | name | cirros-u14.04 |
  13. | owner | cc9bbab2e7e543c2b1f0c22502fe1d11 |
  14. | protected | False |
  15. | size | 16563200 |
  16. | status | active |
  17. | tags | [] |
  18. | updated_at | 2016-04-15T09:41:46Z |
  19. | virtual_size | None |
  20. | visibility | private |
  21. +------------------+--------------------------------------+
  22.  
  23. root@node-1:~# glance image-list
  24. +--------------------------------------+---------------+
  25. | ID | Name |
  26. +--------------------------------------+---------------+
  27. | a8f7ba2d-6457-49bb-9eb4-e5983d763bb5 | |
  28. | 73927561-fd7b-41a5-bf0e-231132383fba | cirros-u14.04 |
  29. | 9e007d76-c0a8-4554-84ac-49031996bd93 | TestVM |
  30. +--------------------------------------+---------------+
  31. root@node-1:~#
  32. root@node-1:~# nova boot --flavor m1.micro --image cirros-u14.04 --nic net-id=$(neutron net-list | awk '/inter/ {print $2}') test2
  33. +--------------------------------------+------------------------------------------------------+
  34. | Property | Value |
  35. +--------------------------------------+------------------------------------------------------+
  36. | OS-DCF:diskConfig | MANUAL |
  37. | OS-EXT-AZ:availability_zone | |
  38. | OS-EXT-SRV-ATTR:host | - |
  39. | OS-EXT-SRV-ATTR:hypervisor_hostname | - |
  40. | OS-EXT-SRV-ATTR:instance_name | instance-00000006 |
  41. | OS-EXT-STS:power_state | 0 |
  42. | OS-EXT-STS:task_state | scheduling |
  43. | OS-EXT-STS:vm_state | building |
  44. | OS-SRV-USG:launched_at | - |
  45. | OS-SRV-USG:terminated_at | - |
  46. | accessIPv4 | |
  47. | accessIPv6 | |
  48. | adminPass | 9iBuHqb6kDXk |
  49. | config_drive | |
  50. | created | 2016-04-15T09:42:48Z |
  51. | flavor | m1.micro (62158861-df49-42a0-bb8b-1f33d9a7f459) |
  52. | hostId | |
  53. | id | f187ff9e-e403-4eb5-a971-c1b06dd6705c |
  54. | image | cirros-u14.04 (73927561-fd7b-41a5-bf0e-231132383fba) |
  55. | key_name | - |
  56. | metadata | {} |
  57. | name | test2 |
  58. | os-extended-volumes:volumes_attached | [] |
  59. | progress | 0 |
  60. | security_groups | default |
  61. | status | BUILD |
  62. | tenant_id | cc9bbab2e7e543c2b1f0c22502fe1d11 |
  63. | updated | 2016-04-15T09:42:48Z |
  64. | user_id | ef0a60b73f584d17848f844d7f959138 |
  65. +--------------------------------------+------------------------------------------------------+
  66. root@node-1:~# ip netns exec qdhcp-8ba2d917-ccfb-4614-9585-c692586c0be5 ping 192.168.111.5
  67. PING 192.168.111.5 (192.168.111.5) 56(84) bytes of data.
  68. 64 bytes from 192.168.111.5: icmp_seq=1 ttl=64 time=9.07 ms
  69. 64 bytes from 192.168.111.5: icmp_seq=2 ttl=64 time=4.16 ms
  70. 64 bytes from 192.168.111.5: icmp_seq=3 ttl=64 time=2.02 ms
  71. ^C
  72. --- 192.168.111.5 ping statistics ---
  73. 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
  74. rtt min/avg/max/mdev = 2.023/5.090/9.079/2.953 ms
  75.  
  76. root@node-1:~# ip netns exec qdhcp-8ba2d917-ccfb-4614-9585-c692586c0be5 ssh cirros@192.168.111.5
  77. The authenticity of host '192.168.111.5 (192.168.111.5)' can't be established.
  78. ECDSA key fingerprint is 01:cc:05:c8:f4:89:7c:09:33:56:79:21:af:51:80:35.
  79. Are you sure you want to continue connecting (yes/no)? yes
  80. Warning: Permanently added '192.168.111.5' (ECDSA) to the list of known hosts.
  81. cirros@192.168.111.5's password:
  82. $
  83. $ sudo su -
  84. #
  85. # uname -a
  86. Linux test2 3.13.0-83-generic #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016 x86_64 GNU/Linux
  87.  
  88. # dmesg | egrep 'e1000e|igbvf|ixgbevf'
  89. [ 6.848925] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
  90. [ 6.848964] e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
  91. [ 6.889897] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.0.2-k
  92. [ 6.889940] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
  93. [ 6.928499] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver - version 2.11.3-k
  94. [ 6.928540] ixgbevf: Copyright (c) 2009 - 2012 Intel Corporation.
  95.  
  96. # lsmod | egrep 'e1000e|igbvf|ixgbevf'
  97. ixgbevf 50771 0
  98. igbvf 42173 0
  99. e1000e 254433 0
  100. ptp 18933 1 e1000e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement