diff --git a/prepare_test_env.sh b/prepare_test_env.sh index 771d157..35254ac 100755 --- a/prepare_test_env.sh +++ b/prepare_test_env.sh @@ -10,10 +10,12 @@ echo "COPY BASE IMG" cp work/base.qcow2 work/image.qcow2 -sudo virt-install --name FedoraServer \ +# sudo systemctl enable --now libvirtd +# sudo virsh --connect qemu:///session net-start default + +virt-install --connect qemu:///session --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 diff --git a/run.sh b/run.sh index 1403036..709cdd7 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ #!/bin/sh echo "START VM" -sudo virsh --connect qemu:///system start FedoraServer --console \ No newline at end of file +virsh --connect qemu:///session start FedoraServer --console \ No newline at end of file