在 openstack 私有云平台上,基于“cirros”镜像、flavor 使用“Fmin”、 extnet 的网络,创建一台虚拟机 VM1,启动 VM1,并使用 PC 机能远程登录到 VM1。提交控制节点的用户名、密码和 IP 地址到答题框。
只演示命令行
上传的镜像
1 2 3 4 5 6
[root@controller ~]# openstack image list +--------------------------------------+---------+--------+ | ID | Name | Status | +--------------------------------------+---------+--------+ | 998692de-c2b7-4bef-a221-e420dbc8094f | cirros | active | +--------------------------------------+---------+--------+
创建的实例类型
1 2 3 4 5 6
[root@controller ~]# openstack flavor list +----+------+------+------+-----------+-------+-----------+ | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public | +----+------+------+------+-----------+-------+-----------+ | 1 | Fmin | 1024 | 10 | 0 | 1 | True | +----+------+------+------+-----------+-------+-----------+
创建的网络
1 2 3 4 5 6
[root@controller ~]# openstack network list +--------------------------------------+--------+--------------------------------------+ | ID | Name | Subnets | +--------------------------------------+--------+--------------------------------------+ | 6d38009c-7893-41bf-acd9-7f1c6dae2ba1 | extnet | 798c9069-dd33-417e-94dc-3a9381562cf3 | +------------------------
Disk /dev/vdb: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x5fa0c5d7
Device Boot Start End Blocks Id System
Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): First sector (2048-83886079, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-83886079, default 83886079): +5G Partition 1 of type Linux and of size 5 GiB is set
#分4个区 步骤重复即可
Command (m for help): p
Disk /dev/vdb: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x5fa0c5d7
Device Boot Start End Blocks Id System /dev/vdb1 204810487807524288083 Linux /dev/vdb2 1048780820973567524288083 Linux /dev/vdb3 2097356831459327524288083 Linux /dev/vdb4 3145932841945087524288083 Linux
Command (m for help): w The partition table has been altered!
Calling ioctl() to re-read partition table. Syncing disks.