Fix VM management
This commit is contained in:
parent
a4f981506f
commit
65e686409c
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
2
run.sh
2
run.sh
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "START VM"
|
||||
sudo virsh --connect qemu:///system start FedoraServer --console
|
||||
virsh --connect qemu:///session start FedoraServer --console
|
Loading…
Reference in a new issue