Run ansible on WSL

Run ansible on WSL what is Ansible? basic fact: open-source configuration management/deployment tool written by Michael DeHaan and acquired by Red Hat in 2015 run as python as agentless on all Unix-like via SSH not running on window but can manage window host via winrm ansible playbook in YAML why …

Launch ubuntu18 dev vm from dreamcloud-ubuntu18

I build dreamcloud/ubuntu18 vagrant box as practice, it is a dev ready vm: Guest Tool, shared folder gcc/git/python3/pip3 Here is demo how to launch ubuntu18 vm from this base, add 2nd host-only interface for private network. Vagrantfile vagrant up /mnt/c/vagrant/ubuntu18$ vagrant.exe up Bringing machine ‘ubuntu18’ up with ‘virtualbox’ provider… ==> …

gateone web terminal in WSL ubuntu

gateone HTML5-powered terminal emulator and SSH client download gateone 1.1 source https://github.com/liftoff/GateOne/downloads $ wget https://github.com/downloads/liftoff/GateOne/gateone-1.1.tar.gz install gateone from source $ tar zxvf gateone*.tar.gz; cd gateone*; sudo python setup.py install the gateone 1.1 released by 2012, only working well with tornado 2.4.1 $ pip install tornado==2.4.1 running gateone sudo python gateone.py …

create kvm vm from iso plus kickstart

download centos7 iso move iso to /var/lib/libvirt/boot ## prepare centos 7 kickstart file insert below line to standard kickstart file, to setup console mode for kickstart, %post –logfile=/root/grubby.log /sbin/grubby –update-kernel=ALL –args=”console=ttyS0″ %end create vm from iso + ks virt-install –name testvm-ks \ –nographics \ –location /var/lib/libvirt/boot/CentOS-7-x86_64-Minimal-1708.iso \ –initrd-inject /root/centos7-ks.cfg \ …

virt-install mis-setting driver type to raw when import qcow2

generate qcow2 base image virt-builder centos-7.6 \ –format qcow2 \ –size 20G -o /var/lib/libvist/boot/centos-7.6-20G.qcow2 verified type of disk is qcow2 by qemu-img info /var/lib/libvist/boot/centos-7.6-20G.qcow2 will use this base image as template for future vm quick launch. clone base image disk to vm disk cp /var/lib/libvist/boot/centos-7.6-20G.qcow2 /var/lib/libvist/images/testvm.qcow2 create vm testvm by …

libvirtd failure after latest upgrade in rhel/centos7

libvirtd down after upgrade [root@tripleo ~]# systemctl status libvirtd.service ● libvirtd.service – Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: failed (Result: start-limit) since Sat 2018-12-15 11:10:40 EST; 10s ago Docs: man:libvirtd(8) https://libvirt.org Process: 2507 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3) Main PID: 2507 (code=exited, status=3) Tasks: 2 (limit: 32768) …