Kali Linux の OVA ファイルを作成する
Kali Linux の vSphere 用イメージは 7zip 形式で配布されていますが、OVA ファイルは配布されていません。 OVA 化する手順自体は Converting VMX to an OVA で説明されているので、この手順に従って OVA ファイルを作成してみます。 作業は Rocky Linux8 上で行いました。
作成した OVA イメージ
今回作成した OVA イメージは下記からダウンロード出来ます。
ハッシュ値は以下の通りです。
アルゴリズム |
値 |
MD5 |
949e9141f88ef9569aa5582d77c3f410 |
SHA512 |
3cd0ecb5397215e9f3cf4de1c0c2f070f614c96b7eb6e76bc6f5921db31565597e5af310b8a2acb0c59d1e7b8ea0d11c3dc906371aa8a709fa49b1234ad5f91a |
作業の流れ
作業は以下の流れで実施します。
- ovftool のインストール
- 7zip のインストール
- Kali Linux のイメージを展開
- OVA 化する
ovftool をインストールします。 libnsl が未インストールであれば、予めインストールしておきます。
VMware 社のサイトから ovftool をダウンロードし、インストールします。
| chmod +x VMware-ovftool-4.4.3-18663434-lin.x86_64.bundle
./VMware-ovftool-4.4.3-18663434-lin.x86_64.bundle --eulas-agreed
|
7zip のインストール
7zip をインストールします。
| curl -O https://www.7-zip.org/a/7z2106-linux-x64.tar.xz
tar xf 7z2106-linux-x64.tar.xz
mv 7zz 7zzs /usr/local/bin
|
Kali Linux のイメージを展開
公式サイトから Kali Linux のイメージをダウンロードします。
| curl -O https://kali.download/virtual-images/kali-2021.4/kali-linux-2021.4-vmware-amd64.7z
|
イメージを展開します。
| 7zz x kali-linux-2021.4-vmware-amd64.7z
|
以下のファイル群が展開されました。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 | # du -ah Kali-Linux-2021.4-vmware-amd64.vmwarevm/
0 Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64.vmsd
3.3G Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s001.vmdk
3.4G Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s002.vmdk
1.2G Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s003.vmdk
445M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s004.vmdk
174M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s005.vmdk
195M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s006.vmdk
191M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s007.vmdk
203M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s008.vmdk
142M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s009.vmdk
645M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s010.vmdk
113M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s011.vmdk
357M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s012.vmdk
80M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s013.vmdk
210M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s014.vmdk
52M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s015.vmdk
960K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s016.vmdk
832K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s017.vmdk
1.1M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s018.vmdk
640K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s019.vmdk
22M Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s020.vmdk
128K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64-s021.vmdk
12K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64.nvram
4.0K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64.vmdk
4.0K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64.vmx
4.0K Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64.vmxf
11G Kali-Linux-2021.4-vmware-amd64.vmwarevm/
|
OVA 化する
OVA 化します。
| ovftool \
Kali-Linux-2021.4-vmware-amd64.vmwarevm/Kali-Linux-2021.4-vmware-amd64.vmx \
kali-linux-2021.4-vmware-amd64.ova
|
約 4GB の OVA ファイルが完成しました。
| # du -h kali-linux-2021.4-vmware-amd64.ova
4.1G kali-linux-2021.4-vmware-amd64.ova
|
参考
Kali-Linux-2021.4-vmware-amd64.vmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91 | Kali-Linux-2021.4-vmware-amd64.vmx
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "8"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
nvram = "Kali-Linux-2021.4-vmware-amd64.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "soft"
powerType.suspend = "soft"
powerType.reset = "soft"
displayName = "Kali-Linux-2021.4-vmware-amd64"
usb.vbluetooth.startConnected = "TRUE"
guestOS = "debian10-64"
tools.syncTime = "TRUE"
sound.autoDetect = "TRUE"
sound.fileName = "-1"
sound.present = "TRUE"
numvcpus = "4"
cpuid.coresPerSocket = "2"
vcpu.hotadd = "TRUE"
memsize = "2048"
scsi0.virtualDev = "lsilogic"
scsi0.present = "TRUE"
scsi0:0.fileName = "Kali-Linux-2021.4-vmware-amd64.vmdk"
scsi0:0.present = "TRUE"
ide1:0.deviceType = "cdrom-raw"
ide1:0.fileName = "auto detect"
ide1:0.present = "TRUE"
usb.present = "TRUE"
ehci.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.addressType = "generated"
ethernet0.virtualDev = "e1000"
serial0.fileType = "thinprint"
serial0.fileName = "thinprint"
ethernet0.present = "TRUE"
extendedConfigFile = "Kali-Linux-2021.4-vmware-amd64.vmxf"
isolation.tools.hgfs.disable = "FALSE"
floppy0.present = "FALSE"
usb.generic.allowHID = "TRUE"
chipset.useAcpiBattery = "TRUE"
chipset.useApmBattery = "TRUE"
uuid.bios = "56 4d af c5 02 43 11 30-39 39 3c 7c a9 c5 0f d0"
uuid.location = "56 4d af c5 02 43 11 30-39 39 3c 7c a9 c5 0f d0"
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
svga.vramSize = "134217728"
vmotion.checkpointFBSize = "134217728"
ethernet0.generatedAddress = "00:0c:29:c5:0f:d0"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "1834882282"
monitor.phys_bits_used = "40"
cleanShutdown = "TRUE"
softPowerOff = "FALSE"
usb:1.speed = "2"
usb:1.present = "TRUE"
usb:1.deviceType = "hub"
usb:1.port = "1"
usb:1.parent = "-1"
guestInfo.detailed.data = "architecture='X86' bitness='64' distroName='Kali' distroVersion='2021.4' familyName='Linux' kernelVersion='5.14.0-kali4-amd64' prettyName='Kali GNU/Linux Rolling'"
annotation = "Kali Rolling (2021.4) x64|0D|0A2021-12-08|0D|0A|0D|0A- - - - - - - - - - - - - - - - - -|0D|0A|0D|0AUsername: kali|0D|0APassword: kali|0D|0A(US keyboard layout)|0D|0A|0D|0A- - - - - - - - - - - - - - - - - -|0D|0A|0D|0A* Kali Homepage:|0D|0Ahttps://www.kali.org/|0D|0A|0D|0A* Documentation:|0D|0Ahttps://www.kali.org/docs/|0D|0A|0D|0A* Kali Tools:|0D|0Ahttps://www.kali.org/tools/|0D|0A|0D|0A* Forum/Community Support:|0D|0Ahttps://forums.kali.org/|0D|0A|0D|0A* IRC Channel: |0D|0Aircs://irc.oftc.net:6697/#Kali-Linux|0D|0Ahttps://www.kali.org/docs/community/kali-linux-irc-channel/|0D|0A|0D|0A"
ide1:0.autodetect = "TRUE"
ide1:0.startConnected = "FALSE"
usb:0.present = "TRUE"
usb:0.deviceType = "hid"
usb:0.port = "0"
usb:0.parent = "-1"
|