lost and found ( for me ? )

KVM : build Ubuntu 14.04 VM via CLI(virt-install)

You can easily build VMs with virt-install ( no GUI )

The procedures are:

Download ISO
Mount ISO locally
Build VM with virt-install

Here are logs when building Ubuntu 14.04 VMs within Ubuntu13.10 KVM host.

KVM host
# tail -1 /etc/lsb-release ; uname -ri
DISTRIB_DESCRIPTION="Ubuntu 13.10"
3.11.0-20-generic x86_64

#  qemu-system-x86_64 -version
QEMU emulator version 1.5.0 (Debian 1.5.0+dfsg-3ubuntu5.4), Copyright (c) 2003-2008 Fabrice Bellard

download ISO
ubuntu-14.04-server-amd64.iso

mount ISO
# mount -t iso9660 -o loop ubuntu-14.04-server-amd64.iso /var/iso-mnt

build VM. ( memory 512M, vHDD 10GB )
# virt-install --connect qemu:///system -n ubuntu1404-vm1 -s 10 -r 512 -f /var/lib/KVM_images/ubuntu1404-vm1.img --vcpus=1 --os-type linux --os-variant ubuntutrusty --nographics  --location /var/iso-mnt  --extra-args='console=tty0 console=ttyS0,115200n8' --keymap ja



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.