eveadm.xen.test.sh
by
Petr Fedchenkov
—
last modified
Jan 28, 2020 04:12 PM
/tmp/xen_test ======================================== download image and create config ======================================== --2020-01-28 15:33:43-- http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img Resolving download.cirros-cloud.net (download.cirros-cloud.net)... 64.90.42.85, 2607:f298:6:a036::bd6:a72a Connecting to download.cirros-cloud.net (download.cirros-cloud.net)|64.90.42.85|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 12716032 (12M) Saving to: ‘/tmp/xen_test/cirros.qcow2’ /tmp/xen_test/cirros.qcow2 100%[==================================================================================>] 12.13M 4.11MB/s in 2.9s 2020-01-28 15:33:46 (4.11 MB/s) - ‘/tmp/xen_test/cirros.qcow2’ saved [12716032/12716032] xenbr0 8000.000000000000 no ======================================== create vm ======================================== ======================================== sleep 5 ======================================== ======================================== domid vm ======================================== 10 ======================================== start vm ======================================== ======================================== vm info ======================================== [ { "domid": 10, "config": { "c_info": { "type": "pv", "name": "testxen", "uuid": "fbaaa17e-ddeb-4651-bad7-371ef33f2454", "run_hotplug_scripts": "True" }, "b_info": { "max_vcpus": 1, "avail_vcpus": [ 0 ], "max_memkb": 131072, "target_memkb": 131072, "video_memkb": 0, "sched_params": { "sched": "credit2", "weight": 256, "cap": 0 }, "claim_mode": "True", "cmdline": "console=hvc0 root=/dev/xvda1", "bootloader": "pygrub", "type.pv": { }, "arch_arm": { } }, "disks": [ { "pdev_path": "/tmp/xen_test/cirros.qcow2", "vdev": "xvda", "format": "qcow2", "readwrite": 1, "colo_restore_enable": "False" } ], "nics": [ { "devid": 0, "mac": "00:16:3e:09:8f:a3", "bridge": "xenbr0", "nictype": "vif" } ], "on_reboot": "restart", "on_soft_reset": "soft_reset" } } ] ======================================== sleep 5 ======================================== ======================================== vm stop ======================================== ======================================== vm delete ======================================== ========================================