Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- +------------------+--------------------------------------+
- | Property | Value |
- +------------------+--------------------------------------+
- | checksum | 8c99e65b5e94b59ffae9349dababa07c |
- | container_format | bare |
- | created_at | 2016-04-15T09:41:36Z |
- | disk_format | qcow2 |
- | id | 73927561-fd7b-41a5-bf0e-231132383fba |
- | min_disk | 0 |
- | min_ram | 0 |
- | name | cirros-u14.04 |
- | owner | cc9bbab2e7e543c2b1f0c22502fe1d11 |
- | protected | False |
- | size | 16563200 |
- | status | active |
- | tags | [] |
- | updated_at | 2016-04-15T09:41:46Z |
- | virtual_size | None |
- | visibility | private |
- +------------------+--------------------------------------+
- root@node-1:~# glance image-list
- +--------------------------------------+---------------+
- | ID | Name |
- +--------------------------------------+---------------+
- | a8f7ba2d-6457-49bb-9eb4-e5983d763bb5 | |
- | 73927561-fd7b-41a5-bf0e-231132383fba | cirros-u14.04 |
- | 9e007d76-c0a8-4554-84ac-49031996bd93 | TestVM |
- +--------------------------------------+---------------+
- root@node-1:~#
- root@node-1:~# nova boot --flavor m1.micro --image cirros-u14.04 --nic net-id=$(neutron net-list | awk '/inter/ {print $2}') test2
- +--------------------------------------+------------------------------------------------------+
- | Property | Value |
- +--------------------------------------+------------------------------------------------------+
- | OS-DCF:diskConfig | MANUAL |
- | OS-EXT-AZ:availability_zone | |
- | OS-EXT-SRV-ATTR:host | - |
- | OS-EXT-SRV-ATTR:hypervisor_hostname | - |
- | OS-EXT-SRV-ATTR:instance_name | instance-00000006 |
- | OS-EXT-STS:power_state | 0 |
- | OS-EXT-STS:task_state | scheduling |
- | OS-EXT-STS:vm_state | building |
- | OS-SRV-USG:launched_at | - |
- | OS-SRV-USG:terminated_at | - |
- | accessIPv4 | |
- | accessIPv6 | |
- | adminPass | 9iBuHqb6kDXk |
- | config_drive | |
- | created | 2016-04-15T09:42:48Z |
- | flavor | m1.micro (62158861-df49-42a0-bb8b-1f33d9a7f459) |
- | hostId | |
- | id | f187ff9e-e403-4eb5-a971-c1b06dd6705c |
- | image | cirros-u14.04 (73927561-fd7b-41a5-bf0e-231132383fba) |
- | key_name | - |
- | metadata | {} |
- | name | test2 |
- | os-extended-volumes:volumes_attached | [] |
- | progress | 0 |
- | security_groups | default |
- | status | BUILD |
- | tenant_id | cc9bbab2e7e543c2b1f0c22502fe1d11 |
- | updated | 2016-04-15T09:42:48Z |
- | user_id | ef0a60b73f584d17848f844d7f959138 |
- +--------------------------------------+------------------------------------------------------+
- root@node-1:~# ip netns exec qdhcp-8ba2d917-ccfb-4614-9585-c692586c0be5 ping 192.168.111.5
- PING 192.168.111.5 (192.168.111.5) 56(84) bytes of data.
- 64 bytes from 192.168.111.5: icmp_seq=1 ttl=64 time=9.07 ms
- 64 bytes from 192.168.111.5: icmp_seq=2 ttl=64 time=4.16 ms
- 64 bytes from 192.168.111.5: icmp_seq=3 ttl=64 time=2.02 ms
- ^C
- --- 192.168.111.5 ping statistics ---
- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms
- rtt min/avg/max/mdev = 2.023/5.090/9.079/2.953 ms
- root@node-1:~# ip netns exec qdhcp-8ba2d917-ccfb-4614-9585-c692586c0be5 ssh cirros@192.168.111.5
- The authenticity of host '192.168.111.5 (192.168.111.5)' can't be established.
- ECDSA key fingerprint is 01:cc:05:c8:f4:89:7c:09:33:56:79:21:af:51:80:35.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added '192.168.111.5' (ECDSA) to the list of known hosts.
- cirros@192.168.111.5's password:
- $
- $ sudo su -
- #
- # uname -a
- Linux test2 3.13.0-83-generic #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016 x86_64 GNU/Linux
- # dmesg | egrep 'e1000e|igbvf|ixgbevf'
- [ 6.848925] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
- [ 6.848964] e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
- [ 6.889897] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.0.2-k
- [ 6.889940] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
- [ 6.928499] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver - version 2.11.3-k
- [ 6.928540] ixgbevf: Copyright (c) 2009 - 2012 Intel Corporation.
- # lsmod | egrep 'e1000e|igbvf|ixgbevf'
- ixgbevf 50771 0
- igbvf 42173 0
- e1000e 254433 0
- ptp 18933 1 e1000e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement