VMWare workstation - ova import not working

2022-07-06 1 min read Virtualization VMWare Workstation
VMWare workstation - ova import not working When importing ova and/or ovf files, if Workstation does not give any error but does not import the file as well, try importing the file in VMWare Player. When you do that, you will see that if the import fails, player will show a dialogue with log file name similar to /tmp/vmaware-<amitag>/. From there, I was able to find out that, it was running ovftool. Continue reading

virt-install with cloud-init

2022-02-09 2 min read Learning bash Virtualization Qemu libvirtd
If you have not heard about cloud-init then you should definately search for it and learn about cloud-config as well. You can find the documentation for cloud-config here. It is used for configuring VMs when running in cloud environments. Specially useful to inject the ssh keys or set the root password but you can do anything in the cloud-config as there is a section where you can run bash commands. While this is useful for cloud instances, you can make use of this feature when running your vm with qemu or libvirtd. Continue reading

Podman repositories on ubuntu like distros

2020-08-01 2 min read Learning Virtualization
Recently I installed podman on ubuntu based dervative. I like podman a lot but to my distress I found that after installation, I was not able to search or run any containers. Found out that the repositories were not configured. So, if you run into such issues, then here is what you need to do. You need to create a file /etc/containers/registries.conf. And the contents of the file for just one docker hub registries would be - Continue reading

Fix display size on libvirt/Qemu guest

2017-05-22 2 min read Learning Vurtualization
Lot of times I find myself of VM that does not correctly resize the screen display and that is literally nuisance. So, here is quick and dirty fix for this. First you need to find out information about your display with following command: xrandr -q And you will see output like this: Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 Virtual-0 connected primary 1920×1080+0+0 0mm x 0mm Continue reading

Install virtual machines in one line

2016-07-25 1 min read Vurtualization
To install a VM from command line, you can use the following command. Change the required parameters as need but you need to change at-least CDROM iso image and disk-path. virt-install \ -n myVM \ --description "Test VM" \ --os-type=Linux \ --os-variant=centos7 \ --ram=2048 \ --vcpus=2 \ --disk path=./myVM.img,bus=virtio,size=10 \ --graphics none \ --cdrom <Image installtion CDROM>.iso \ --net user

Python script to manage virtual machines with python API for libvirt.

2016-07-04 4 min read Vurtualization
Most of times I use virt-manager to manage VMs but sometimes, I have to manage VMs on other hosts over ssh when connected over VPN or while I am working remotely. GUI like virt-manager thus becomes slow, and hence I like to use cli commands and nothing is better than virsh. But here is simple script that I use sometimes to manage the VMs with CLI based menu. Hope you find it useful. Continue reading
Older posts