Differences between revisions 2 and 3
Revision 2 as of 2017-10-11 00:52:10
Size: 772
Editor: shran
Comment:
Revision 3 as of 2017-11-11 20:09:31
Size: 756
Editor: shran
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
# lvcreate --name media --size 4G vg2
# mkfs.btrfs /dev/vg2/media
# mkdir /mnt/media
lvcreate --name media --size 4G vg2
mkfs.btrfs /dev/vg2/media
mkdir /mnt/media
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/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

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 vg2
mkfs.btrfs /dev/vg2/media
mkdir /mnt/media

Add this to /etc/fstab.

/dev/mapper/vg2-media /mnt/media               btrfs   defaults        0       0

Mount the new partition.

mount /mnt/media

Get the installation media.

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

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