19 lines
670 B
Bash
Executable file
19 lines
670 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#echo "DOWNLOAD FEDORA IMAGE"
|
|
#mkdir -p work
|
|
#wget --show-progress -nc -c -O work/image.qcow2 https://download.fedoraproject.org/pub/fedora/linux/releases/38/Server/x86_64/images/Fedora-Server-KVM-38-1.6.x86_64.qcow2
|
|
|
|
#echo "PREPARE IMG"
|
|
#qemu-img resize work/image.qcow2 30G
|
|
|
|
echo "COPY BASE IMG"
|
|
cp work/base.qcow2 work/image.qcow2
|
|
|
|
sudo virt-install --name FedoraServer \
|
|
--memory 8192 --cpu host --vcpus 4 --graphics none \
|
|
--os-variant fedora-unknown \
|
|
--import \
|
|
--disk work/image.qcow2,format=qcow2,bus=virtio \
|
|
--network type=direct,source=enp8s0,source_mode=bridge,model=virtio \
|
|
--network bridge=virbr0,model=virtio
|