Code: Select all
dnf install virt-install
Code: Select all
[nchambers@elixir ~]$ sudo virt-install --name spellbook --description "Test VM" --os-type=Linux --os-variant=generic --ram=1024 --vcpus=2 --disk path=/var/vm/spellbook.img,bus=virtio,size=10 --graphics none --network bridge:br0 --extra-args console=ttyS0 --location /var/lib/libvirt/images/crux-3.5.iso
Starting install...
ERROR Could not find an installable distribution at '/var/lib/libvirt/images/crux-3.5.iso'
The location must be the root directory of an install tree.
See virt-install man page for various distro examples.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start spellbook
otherwise, please restart your installation.
Code: Select all
--cdrom /var/lib/libvirt/images/crux-3.5.iso
Code: Select all
[nchambers@elixir ~]$ sudo virt-install --name spellbook --description "Test VM" --os-type=Linux --os-variant=generic --ram=1024 --vcpus=2 --disk path=/var/vm/spellbook.img,bus=virtio,size=10 --graphics none --network bridge:br0 --cdrom /var/lib/libvirt/images/crux-3.5.iso
WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media
Starting install...
Allocating 'spellbook.img' | 10 GB 00:00:01
Connected to domain spellbook
Escape character is ^]
ISOLINUX 6.03 2014-10-06 Copyright (C) 1994-2014 H. Peter Anvin et al
boot:
Loading /boot/vmlinuz... ok
Loading /boot/initramfs...ok
^]
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
Code: Select all
[nchambers@elixir ~]$ file /var/lib/libvirt/images/crux-3.5.iso
/var/lib/libvirt/images/crux-3.5.iso: DOS/MBR boot sector; partition 2 : ID=0xef, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 61648, 4096 sectors
[nchambers@elixir ~]$ md5sum /var/lib/libvirt/images/crux-3.5.iso
eb0c9b75322ba240f229ec9834feddfd /var/lib/libvirt/images/crux-3.5.iso
OS info:
Code: Select all
[nchambers@elixir ~]$ cat /etc/centos-release
CentOS Linux release 8.0.1905 (Core)
[nchambers@elixir ~]$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
[nchambers@elixir ~]$ uname -a
Linux elixir.naughtysysadmins.com 4.18.0-80.11.2.el8_0.x86_64 #1 SMP Tue Sep 24 11:32:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux