mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-10 18:16:24 +00:00
Adphi
20ba409039
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>
7 lines
211 B
Bash
Executable File
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
|