diff options
author | Sakirnth Nagarasa <sakirnth@gmail.com> | 2022-03-09 16:13:09 +0000 |
---|---|---|
committer | Sakirnth Nagarasa <sakirnth@gmail.com> | 2022-03-09 16:13:09 +0000 |
commit | ed356361fd254a9e19eb29e18ce4396a450fe6c7 (patch) | |
tree | 58f2c0734865668be43093b947f508e7c0a65d3b /share/config | |
parent | Correcting path for debconf scripts. (diff) | |
download | compute-tools-ed356361fd254a9e19eb29e18ce4396a450fe6c7.tar.xz compute-tools-ed356361fd254a9e19eb29e18ce4396a450fe6c7.zip |
Linux VM should be created correctly with preseed file.
Diffstat (limited to '')
-rw-r--r-- | share/config/vm.conf.in | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/share/config/vm.conf.in b/share/config/vm.conf.in new file mode 100644 index 0000000..688fb97 --- /dev/null +++ b/share/config/vm.conf.in @@ -0,0 +1,39 @@ +# compute-tools: @NAME@ + +[start] +cnt.auto=false +cnt.container-server= +# FIXME bridge +cnt.network-bridge=tap-@SHORTNAME@-ma1:bridge-oob +cnt.overlay= +cnt.overlay-options= +bind= +bind-ro= +boot=yes +capability= +directory=/var/lib/machines/@NAME@ +drop-capability= +link-journal=no +machine=@NAME@ +private-users=no +register=yes + +[vm] +memory=4G +bios=/usr/share/OVMF/OVMF_CODE.fd +serial=mon:telnet::@PORT@,server,nowait +raw-options=-cpu host -smp cores=8,threads=2 +# FIXME: absolut path +drive=format=raw,file=/var/lib/machines/@NAME@.img,if=ide,index=0 +vm.netdev=tap,id=eno1,ifname=@PRIMARY_TAP@,script=no,downscript=no -device virtio-net-pci,netdev=eno1,addr=1 +#vm.netdev=user,id=slirp -device virtio-net-pci,netdev=slirp,addr=7 + +[limit] +BlockIODeviceWeight= +BlockIOReadBandwidth= +BlockIOWeight= +BlockIOWriteBandwidth= +CPUQuota= +CPUShares= +MemoryLimit= +TasksMax= |