Skip to content

Instantly share code, notes, and snippets.

/usr/local/bin/entrypoint: line 5: [: missing `]'
Preparing virt-v2v
Starting virt-v2v
+ ls -l /var/tmp/v2v
total 4
lrwxrwxrwx 1 107 root 25 Aug 3 16:00 PhotonOS-5.0-sda -> /mnt/disks/disk0/disk.img
-rw-r--r-- 1 107 root 16 Aug 3 16:00 vmware.pw
+ '[' vCenter == vCenter ']'
+ exec virt-v2v -v -x -i libvirt -ic 'vpx://tmpadmin%40vsphere.local@10.10.128.10/Datacenter/host/Cluster2/10.10.20.110?no_verify=1' -o local -os /var/tmp/v2v -ip /var/tmp/v2v/vmware.pw -it vddk -io vddk-libdir=/opt/vmware-vix-disklib-distrib -io vddk-thumbprint=E3:95:23:08:79:A6:6B:2B:B6:82:6F:34:A7:88:85:12:11:47:6D:C2 -- PhotonOS-5.0
+ /usr/local/bin/virt-v2v-monitor
@prakashmishra1598
prakashmishra1598 / log.txt
Created August 1, 2023 13:55
Virt-v2v logs while migrating Windows Server 2016
Extracting libguestfs appliance...
appliance/
appliance/kernel
appliance/initrd
appliance/root
appliance/README.fixed
Run virt-v2v with the following input:
<domain type="kvm"><name>windows-server-2016-migration-test</name><memory>17179869184</memory><os><type>hvm</type><boot dev="hd"></boot></os><cpu><topology sockets="2" cores="2"></topology></cpu><devices><disk type="file" device="disk"><driver name="qemu" type="raw"></driver><source file="/mnt/disks/disk0/disk.img"></source><target dev="hda" bus="virtio"></target></disk></devices></domain>[ 0.0] Opening the source -i libvirtxml /mnt/v2v/input.xml
virt-v2v: virt-v2v 1.42.0rhel=8,release=22.module_el8+310+72016cce (x86_64)
libvirt version: 8.0.0
@prakashmishra1598
prakashmishra1598 / ingest_pipeline_delay
Created January 15, 2020 05:54 — forked from cdahlqvist/ingest_pipeline_delay
Ingest pipeline definition for measuring ingest delay based on @timestamp field
# Ingest pipeline that records the timestamp the event was processed (`@received`)
# by the ingest pipeline and calculates the difference in milliseconds compared to
# the event timestamp (`@timestamp`).
POST _scripts/calculate_ingest_delay
{
"script": {
"lang": "painless",
"source": "SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\"); ctx.ingest_delay = (sdf.parse(ctx['received']).getTime() - sdf.parse(ctx['@timestamp']).getTime()) / 1000.0"
}
2019/02/01 09:15:54 Go Runtime version: go1.10.8
2019/02/01 09:15:54 Build Version: v0.4.8
2019/02/01 09:15:54 Build Revision: 4c85f854
2019/02/01 09:15:54 Build Branch: HEAD
2019/02/01 09:15:54 Build Date: 2019-01-29-22:37:13
2019/02/01 09:15:54 Build TimeUnix: 1548801433
09:15:54.781263[I] no seed nodes set, using dedicated etcd cluster
2019-02-01T09:15:54.811Z INFO resolved cluster namespace {"namespace": "default"}
2019-02-01T09:15:55.193Z INFO no m3msg server configured
2019-02-01T09:15:55.193Z INFO starting server {"address": "0.0.0.0:7201"}
{"placement":{"instances":{"m3dbnode-0":{"id":"m3dbnode-0","isolationGroup":"pod0","zone":"embedded","weight":100,"endpoint":"m3dbnode-0.m3dbnode:9000","shards":[{"id":0,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":2,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":3,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":4,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":5,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":6,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":8,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":13,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":14,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":16,"state":"AVAILABLE","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":17,"state":"AVAILABLE","sourceId":"","cutoverNanos":"
This file has been truncated, but you can view the full file.
2019-01-30T12:49:44.662Z ERROR Write error {"err": "failed to meet consistency level majority with 1/3 success, 3 nodes responded, errors: [shard 848 in host m3dbnode-0 is not available (initializing) shard 848 in host m3dbnode-2 is not available (initializing)]"}
2019-01-30T12:49:44.667Z ERROR Write error {"err": "failed to meet consistency level majority with 1/3 success, 3 nodes responded, errors: [shard 433 in host m3dbnode-2 is not available (initializing) shard 433 in host m3dbnode-0 is not available (initializing)]"}
2019-01-30T12:49:44.694Z ERROR Write error {"err": "failed to meet consistency level majority with 1/3 success, 3 nodes responded, errors: [shard 1 in host m3dbnode-0 is not available (initializing) shard 1 in host m3dbnode-2 is not available (initializing)]"}
2019-01-30T12:49:44.697Z ERROR Write error {"err": "failed to meet consistency level majority with 1/3 success, 3 nodes responded, errors: [shard 916 in host m3dbnode-2 is not available (initializing) shard 916 in host m3dbnode-0 is
{"placement":{"instances":{"m3dbnode-0":{"id":"m3dbnode-0","isolationGroup":"pod0","zone":"embedded","weight":100,"endpoint":"m3dbnode-0.m3dbnode:9000","shards":[{"id":0,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":1,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":2,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":3,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":4,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":5,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":6,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":7,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":8,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":9,"state":"INITIALIZING","sourceId":"","cutoverNanos":"0","cutoffNanos":"0"},{"id":10,"state":"INITIALIZING",
@prakashmishra1598
prakashmishra1598 / sample_module.py
Created July 26, 2017 06:58 — forked from juliedavila/sample_module.py
New Ansible Module Boilerplate
#!/usr/bin/python
# libraries you import here, must be present on the target node.
import os
# You can defined other functions up here to make your code more modular.
# These functions will need to be called from main(), either directly or through N number of other functions
# that eventually lead back to main()
def main():