KVM\Qemu\Openstack – Manage a live migration

virsh qemu-monitor-command {VMNAME} –pretty ‘{“execute”:”migrate_cancel”}’ Allow Virsh more downtime(If it cant keepup with RAM utilization) virsh migrate-setmaxdowntime VMNAME 2500   Check migration status virsh domjobinfo instance-000002ac Job type: Unbounded Operation: Outgoing migration Time elapsed: 1307956 ms Data processed: 118.662 GiB Data remaining: 9.203 MiB Data total: 8.005 GiB Memory processed: 118.662 GiB Memory remaining: 9.203 […]

Read More »

Openstack – Manually edit VM

Find the host the VM is running on and the instance ID(Use console view to get instance ID) cp /etc/libvirt/qemu/instance-0000030a.xml . edit instance-0000030a.xml to be what you need it to be While the VM is running (Warning, will crash the VM) virsh destroy instance-0000030a virsh undefine instance-0000030a virsh define instance-0000030a.xml virsh start instance-0000030a

Read More »

Openstack Queens – Nova: Error creating new key pair

Ina fresh install of Oepnstack Queens I was having an issue generating new keypairs after a reboot f the Nova node. The following error was logged in nova-api.log A simple restart of the nova-api service resolved this issue for me   2018-05-02 13:25:41.101 1351 ERROR nova.api.openstack.wsgi [req-78070ded-b2cd-4e1a-8a51-8c082b50e0a4 f2800cf724264988aab44aa21bf1dae4 0d280551fd45414eace8211d6ac154c0 – default 252047b9b8504489a11d9230a8f9bf55] Unexpected exception in […]

Read More »

Cinder – Resize root volume

To resize the root volume of an instance can be tricky, this worked for me Note some commands, particularly “cinder reset-state” returned a HTTP 403, i had to run those as admin   [root@vm-os-ks01 ~]# source admin.rc [root@vm-os-ks01 ~]# cinder reset-state –state available b35e676a-7593-458d-b6f4-cc60e075cfd4 [root@vm-os-ks01 ~]# nova volume-list +————————————–+———–+————–+——+————-+————————————–+ | ID                                   | Status    | Display […]

Read More »