4
This commit is contained in:
parent
62d860fb58
commit
4e06b87cfd
@ -1,6 +1,9 @@
|
|||||||
### From DISK to QCOW2 image
|
### From DISK to QCOW2 image
|
||||||
qemu-img convert -p -f raw -O qcow2 /dev/sda /mnt/images/disk.qcow2
|
`qemu-img convert -p -f raw -O qcow2 /dev/sda /mnt/images/disk.qcow2`
|
||||||
|
|
||||||
### From QCOW2 to raw DISK
|
### From QCOW2 to raw DISK
|
||||||
qemu-img convert -p -f qcow2 -O raw /mnt/images/disk.qcow2 /dev/sda
|
`qemu-img convert -p -f qcow2 -O raw /mnt/images/disk.qcow2 /dev/sda`
|
||||||
|
|
||||||
|
### Kali linux live DVD iso
|
||||||
|
* https://www.kali.org/get-kali/#kali-live
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
install-dependencies:
|
stall-dependencies-rhel:
|
||||||
dnf install -y wget qemu-img
|
dnf install -y wget qemu-img
|
||||||
|
|
||||||
|
install-dependencies-kali:
|
||||||
|
apt update
|
||||||
|
apt install -y qemu-utils wget parted
|
||||||
|
|
||||||
download-10-image:
|
download-10-image:
|
||||||
wget https://cloud.debian.org/images/cloud/buster/latest/debian-10-generic-amd64.qcow2 -O /tmp/debian-cloudimg-amd64.qcow2
|
wget https://cloud.debian.org/images/cloud/buster/latest/debian-10-generic-amd64.qcow2 -O /tmp/debian-cloudimg-amd64.qcow2
|
||||||
|
|
||||||
|
@ -1,11 +1,21 @@
|
|||||||
install-dependencies:
|
stall-dependencies-rhel:
|
||||||
dnf install -y wget qemu-img
|
dnf install -y wget qemu-img
|
||||||
|
|
||||||
download-image:
|
install-dependencies-kali:
|
||||||
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img -O /tmp/jammy-server-cloudimg-amd64.img
|
apt update
|
||||||
|
apt install -y qemu-utils wget parted
|
||||||
|
|
||||||
|
download-ubuntu-2204-image:
|
||||||
|
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img -O /tmp/ubuntu-server-cloudimg-amd64.img
|
||||||
|
|
||||||
|
download-ubuntu-2004-image:
|
||||||
|
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-disk-kvm.img -O /tmp/ubuntu-server-cloudimg-amd64.img
|
||||||
|
|
||||||
|
download-ubuntu-1804-image:
|
||||||
|
wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img -O /tmp/ubuntu-server-cloudimg-amd64.img
|
||||||
|
|
||||||
write-image-to-sda:
|
write-image-to-sda:
|
||||||
qemu-img convert -p -f qcow2 -O raw /tmp/jammy-server-cloudimg-amd64.img /dev/sda
|
qemu-img convert -p -f qcow2 -O raw /tmp/ubuntu-server-cloudimg-amd64.img /dev/sda
|
||||||
|
|
||||||
fix-gpt:
|
fix-gpt:
|
||||||
/bin/sh fix-gpt-free-space.sh
|
/bin/sh fix-gpt-free-space.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user