2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2024-06-04 23:09:52 +00:00
d2vm/virtinst
Adphi 20ba409039
d2vm: flatten docker image using github.com/google/go-containerregistry
This allows to preserve files like /etc/hostname or /etc/resolv.conf that will otherwise be overriden by running the container to extract rootfs

wip img entrypoint script

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
2022-04-24 15:49:01 +02:00

7 lines
211 B
Bash
Executable File

#!/usr/bin/env bash
IMG=${1:-disk0.qcow2}
virt-install --disk $IMG --import --memory 4096 --vcpus 4 --nographics --cpu host --channel unix,target.type=virtio,target.name='org.qemu.guest_agent.0' --transient