Skip to content

Commit

Permalink
added run-vm to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hanthor committed Dec 18, 2024
1 parent a73d4a3 commit 73393dd
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,21 @@ build-vm image type="qcow2":
-v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \
--type {{ type }} \
--rootfs btrfs \
--local \
$TARGET_IMAGE

sudo chown -R $USER:$USER output
echo "making the image biggerer"
sudo qemu-img resize output/qcow2/disk.qcow2 80G

run-vm image type="qcow2":
@echo WIP
run-vm:
virt-install --import \
--name centos-workstation-main \
--disk output/qcow2/disk.qcow2,format=qcow2,bus=virtio \
--memory 4096 \
--vcpus 4 \
--os-variant centos-stream9 \
--network bridge:virbr0 \
--graphics vnc

virsh start centos-workstation-main

0 comments on commit 73393dd

Please sign in to comment.