Create a VM
This section describes steps required to build an image of Linux Virtual Machine which could be used with Murano. There are two possible ways to create it - from CLI or using GUI tools. We describe both in this section.
Note
Run all commands as root.
Way 1: Using CLI Tools
This section describes the required step to launch a VM using CLI tools only.
Preallocate disk image
># qemu-img create -f qcow2 /var/lib/libvirt/images/cloud-linux.img 10G
Start the VM
># virt-install --connect qemu:///system --hvm --name cloud-linux \ --ram 2048 --vcpus 2 --cdrom /PATH_TO_YOUR_LINUX.ISO \ --disk path=/var/lib/libvirt/images/cloud-linux.img, \ format=qcow2,bus=virtio,cache=none \ --network network=default,model=virtio \ --memballoon model=virtio --vnc --os-type=linux \ --accelerate --noapic --keymap=en-us --video=cirrus --force
Way 2: Using virt-manager UI
A VM also could be lauched via GUI tools like virt-manager.
Launch virt-manager from shell as root
Set a name for VM and select Local install media
Add one cdrom and attach your linux ISO image to it
Select OS type Linux and it's version choose yours
Set CPU and RAM amount
Deselect option Enable storage for this virtual machine
Select option Customize configuration before install
Add (or create new) HDD image with Disk bus VirtIO and storage format QCOW2
Set network device model VirtIO
Start installation process and open guest vm screen through Console button