$ testcloud instance create testcloud272593 -u https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cloud/x86_64/images/Fedora-Cloud-Base-33-1.2.x86_64.qcow2 [...] INFO:Successfully booted instance testcloud272593 The IP of vm testcloud272593: 192.168.122.202 ------------------------------------------------------------ To connect to the VM, use the following command (password is 'passw0rd'): ssh fedora@192.168.122.202
WARNING:Not proceeding with backingstore cleanup because there are some testcloud instances running. You can fix this by following command(s): testcloud instance stop testcloud272593
DEBUG:Local downloads will be stored in /var/lib/testcloud/backingstores. DEBUG:successfully changed SELinux context for image /var/lib/testcloud/backingstores/Fedora-Cloud-Base-33-1.2.x86_64.qcow2 DEBUG:Creating instance directories DEBUG:creating seed image /var/lib/testcloud/instances/testcloud193/testcloud193-seed.img INFO:Seed image generated successfully INFO:Successfully booted instance testcloud193 The IP of vm testcloud193: 192.168.122.225 ------------------------------------------------------------ To connect to the VM, use the following command (password is 'passw0rd'): ssh fedora@192.168.122.225 ------------------------------------------------------------
玩转实例
Testcloud 可以用来管理实例。这包括像列出镜像或者停止和启动一个实例等活动。
要列出实例,使用 list 子命令:
1 2 3 4 5 6 7 8
$ testcloud instance list Name IP State ------------------------------------------------------------ testcloud272593 192.168.122.202 running testcloud193 192.168.122.225 running testcloud252793 192.168.122.146 shutoff testcloud93 192.168.122.152 shutoff