成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

在云端自動化設(shè)置和交付虛擬機

運維 服務(wù)器運維
Testcloud 是一個可以輕松的在幾分鐘之內(nèi)準備云鏡像測試的工具。它用幾個命令就可以在云端自動化設(shè)置并交付準備運行的虛擬機(VM)。

  • 通過使用 Testcloud 自動化設(shè)置過程并交付一個準備運行的虛擬機,在幾分鐘之內(nèi)準備好一個云鏡像。

如果你是一個在云端使用 Fedora qcow2 鏡像 的開發(fā)者或者愛好者,在一個鏡像準備使用之前,你總是不得不做一大堆初始化設(shè)置。我對此深有體會,所以我很想找到一種使設(shè)置過程更加簡單的方法。碰巧,整個 Fedora 質(zhì)量保證團隊也有同感,所以我們開發(fā)了 Testcloud 。

Testcloud 是一個可以輕松的在幾分鐘之內(nèi)準備云鏡像測試的工具。它用幾個命令就可以在云端自動化設(shè)置并交付準備運行的虛擬機(VM)。

Testcloud:

  • 下載 qcow2 鏡像
  • 用你選擇的名稱創(chuàng)建實例
  • 創(chuàng)建一個密碼為 passw0rd,用戶名為 fedora 的用戶
  • 分配一個 IP 地址,以便于你之后用 SSH 登錄到云端
  • 啟動、停止、刪除和列出一個實例

安裝 Testcloud

要開始你的旅程,首先你必須安裝 Testcloud 軟件包。你可以通過終端或者“軟件”應(yīng)用來安裝它。在這兩種情況下,軟件包的名字都是 testcloud 。用以下命令安裝:

    $ sudo dnf install testcloud -y

一旦安裝完成,將你所需要的用戶添加到 testcloud 用戶組,這有助于 Testcloud 自動完成設(shè)置過程的剩余部分。執(zhí)行這兩個命令,添加你的用戶到 testcloud 用戶組,并通過提升組權(quán)限重啟會話:

    $ sudo usermod -a -G testcloud $USER
$ su - $USER

添加用戶到 testcloud 組

像老手一樣玩轉(zhuǎn)云鏡像

一旦你的用戶獲得了所需的組權(quán)限,創(chuàng)建一個實例:

    $ testcloud instance create <instance name> -u <url for qcow2 image>

或者,你可以使用 fedora:latest/fedora:XX(XX 是你的 Fedora 發(fā)行版本)來代替 完整的 URL 地址:

$ testcloud instance create -u fedora:latest

這將返回你的虛擬機的 IP 地址:

    $ 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

你可以用默認用戶 fedora 登錄,密碼是 passw0rd(注意是零)。你可以使用 ssh、virt-manager 或者支持連接到 libvirt 虛擬機方式來連接到它。

另一種創(chuàng)建 Fedora 云的方式是:

    $ testcloud instance create testcloud193 -u fedora:33

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
------------------------------------------------------------

玩轉(zhuǎn)實例

Testcloud 可以用來管理實例。這包括像列出鏡像或者停止和啟動一個實例等活動。

要列出實例,使用 list 子命令:

    $ 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

要停止一個運行的實例:

    $ testcloud instance stop testcloud193  
DEBUG:stop instance: testcloud193
DEBUG:stopping instance testcloud193.

要刪除一個實例:

    $ testcloud instance destroy testcloud193  
DEBUG:remove instance: testcloud193
DEBUG:removing instance testcloud193 from libvirt.
DEBUG:Unregistering instance from libvirt.
DEBUG:removing instance /var/lib/testcloud/instances/testcloud193 from disk

要重啟一個運行中的實例:

    $ testcloud instance reboot testcloud93                                                                                        
DEBUG:stop instance: testcloud93
[...]
INFO:Successfully booted instance testcloud93
The IP of vm testcloud93: 192.168.122.152
usage: testcloud [-h] {instance,image} ...
責任編輯:未麗燕 來源: Linux中國
相關(guān)推薦

2020-12-08 05:58:57

CPU虛擬化虛擬機

2023-08-01 15:24:18

DevOps自動化軟件開發(fā)

2012-05-18 10:22:23

2011-05-12 11:35:32

Oracle VM V虛擬機

2013-09-12 09:33:43

Testin云端APP

2010-07-26 09:02:38

2013-07-17 09:32:58

2015-04-24 09:06:43

云存儲故障切換虛擬化

2012-05-18 10:11:10

虛擬機VM

2011-05-27 07:07:30

趨勢科技

2018-03-13 15:08:19

虛擬機CPU虛擬化

2010-01-05 18:00:16

2009-12-11 14:00:09

VMware虛擬機

2014-04-22 09:26:49

Ubuntu 14.0虛擬化

2013-04-07 09:52:40

Ubuntu虛擬機虛擬化軟件

2020-06-18 16:39:10

KVM虛擬化虛擬機

2022-10-27 13:16:54

Commvault

2010-10-27 10:06:20

XenServer 5虛擬機

2013-11-28 10:37:36

虛擬桌面環(huán)境

2013-03-22 15:15:28

自動化管理部署虛擬化
點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 欧美在线视频一区二区 | 亚洲综合色网 | 在线观看视频亚洲 | av网站在线免费观看 | 婷婷精品 | 大久| 欧美日韩国产精品一区 | 日韩激情视频一区 | 久久久国产一区 | 91精品一区二区三区久久久久 | 日韩欧美国产精品一区 | 国产精品久久777777 | 国产色网站 | 99一区二区 | 亚洲精品永久免费 | 国产91亚洲精品一区二区三区 | 在线精品亚洲欧美日韩国产 | 久久久久国产精品一区 | 97久久超碰 | 男人天堂99 | 毛片久久久 | 久久久精品国产 | 欧美日韩大陆 | 国产精品国产三级国产a | 天天色天天色 | 亚洲精品中文字幕av | 中文字幕欧美在线观看 | 青青草精品 | 精品九九 | 国产免费看 | a爱视频| 一区二区三区四区电影 | 久久美女网 | 国产精品视频在线播放 | 视频一区在线观看 | 紧缚调教一区二区三区视频 | 91精品福利| 免费看爱爱视频 | 精品国产乱码久久久久久久久 | 欧美视频一区二区三区 | 亚洲精品欧洲 |