1
0
Fork 0
myserver-configuration/prepare_test_env.sh

20 lines
670 B
Bash
Raw Normal View History

2023-05-03 21:13:44 +02:00
#!/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