2021-05-27 18:35:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
virt-install \
|
|
|
|
--connect=qemu:///system \
|
2021-05-31 19:49:08 +00:00
|
|
|
--name=vm-gentoo \
|
2021-05-27 18:35:28 +00:00
|
|
|
--vcpus=2 \
|
|
|
|
--memory=2048 \
|
|
|
|
--cdrom=/vm/images/archlinux-2021.05.01-x86_64.iso \
|
2021-05-31 19:49:08 +00:00
|
|
|
--disk path=/vm/disks/disk-vm-gentoo.disk,size=25 \
|
2021-05-31 15:17:40 +00:00
|
|
|
--boot uefi \
|
2021-05-27 18:35:28 +00:00
|
|
|
--os-variant=gentoo \
|
|
|
|
--noautoconsole
|
2021-05-31 19:49:08 +00:00
|
|
|
# --transient \
|
2021-05-31 15:17:40 +00:00
|
|
|
# --graphics none \
|
|
|
|
# --console pty,target.type=virtio \
|
|
|
|
# --serial pty \
|
|
|
|
# --extra-args 'console=ttyS0,115200n8 --- console=ttyS0,115200n8' \
|
2021-05-27 18:35:28 +00:00
|
|
|
|
|
|
|
# virsh
|