Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2017-10-11 00:51:44
Size: 772
Editor: shran
Comment:
Revision 9 as of 2021-02-21 12:30:59
Size: 677
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
When installing a KVM Guest, that KVM Guest needs to boot from an installation media. Create a partition that hold those installation medias. When installing a KVM Guest, that KVM Guest needs to boot from an installation media. Create a partition that holds those installation media.
Line 6: Line 6:
# lvcreate --name media --size 4G vg2
# mkfs.btrfs /dev/vg2/media
# mkdir /mnt/media
lvcreate --name media --size 4G vg_storage
mkfs.ext4 /dev/vg_storage/media
mkdir /mnt/media
Line 14: Line 14:
/dev/mapper/vg2-media /mnt/media btrfs defaults     0 0 /dev/vg_storage/media /mnt/media ext4 errors=remount-ro 0 1
Line 20: Line 20:
# mount /mnt/media mount /mnt/media
Line 26: Line 26:
# mkdir -p /mnt/media/debian/stretch
# cd /mnt/media/debian/stretch
# wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.1.0-amd64-netinst.iso
# wget https://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-9.1.0-i386-netinst.iso
mkdir -p /mnt/media/debian/buster
cd /mnt/media/debian/buster
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso

KVM Host Guest Installation Media

When installing a KVM Guest, that KVM Guest needs to boot from an installation media. Create a partition that holds those installation media.

lvcreate --name media --size 4G vg_storage
mkfs.ext4 /dev/vg_storage/media
mkdir /mnt/media

Add this to /etc/fstab.

/dev/vg_storage/media /mnt/media               ext4    errors=remount-ro 0       1

Mount the new partition.

mount /mnt/media

Get the installation media.

mkdir -p /mnt/media/debian/buster
cd /mnt/media/debian/buster
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.8.0-amd64-netinst.iso

None: KVM Host Guest Installation Media (last edited 2021-02-21 12:30:59 by Kristian Kallenberg)