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) …

pytoolbar – a python toolbar demo in Tkinter

pytoolbar – a python toolbar demo in Tkinter features toolbar gui, run in window or unix/linux desktop, it’s always on top of desktop security protected login(predefined login user: pytoolbar/demo,test/test) customized search bar, predefined google, github, oxford dictionary, bab.la English-Chinese dictionary, wikipedia search engines, easy to extend customized tool button for …

One Node Two NIC Openstack Sandbox(centos) Vagrant Setup Guide

virtulabox vm node centOS based vm memory: 4-6GB CPU: 2 HD: 50G NIC1: NAT default 10.0.2.15, dhcp, for Internet access, ovs br-ex NIC2: Hostonly, static ip, 172.25.250.1, for openstack management/public network 172.25.250.0/24 opensatck vm user/pass: vagrant/vagrant openstack admin user/pass: admin/demo use vagrant to launch openstack sandbox $ mkdir vagrant/ctosbox2 $ …

vagrant pain point on 2nd Hostonly NIC setup

vagrant stuck at "Setting hostname" for private network setup ==> ctosbox2: Setting hostname… debug log from debug log, it used hostnamectl to change hostname, then will restart network service, DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-sshDEBUG ssh: stderr: cat: /etc/photon-release: No such file or directoryDEBUG ssh: Exit status: 1 DEBUG guest: Trying: redhat …

create web server using cloud-init

openstack sandbox Follow up the setup guide. create web server instance using cloud-init web-server-vm1, fedora, m2.small, ssh to web server [vagrant@ctosbox1 ~(keystone_lab_user)]$ ssh -i /home/vagrant/.ssh/lab-key.pem fedora@172.25.250.32 This is web server test using cloud-init from /etc/motd, can see cloud-init performed. vm Internet access ok, [fedora@web-server-vm1 ~]$ ping google.ca PING google.ca (172.217.9.131) …

Create ftp server using cloud-init

openstack sandbox setup Follow up the setup guide. create ftp server new instance: ftp-server-vm1, m2.small Configuration/Customization Script monitor instance booting log Project/Compute/Instances/Log/View Full Log ping floating ip not working due to it will take longer time than cirros, can check progress from above gui log, [vagrant@ctosbox1 ~(keystone_lab_user)]$ nova list +————————————–+—————-+——–+————+————-+——————————————+ …