You are here |
zzamboni.org | ||
| | | |
blog.oddbit.com
|
|
| | | | Recently, changes from the xmlgawk project have been integrated into GNU awk, and xmlgawk has been renamed to gawkextlib. With both a recent (post-4.0.70) gawk and gawkextlib built and installed correctly, you can write simple XML parsing scripts using gawk. For example, let's say you would like to generate a list of disk image files associated with a KVM virtual instance. You can use the virsh dumpxml command to get output like the following: | |
| | | |
manuel.kiessling.net
|
|
| | | | Let's assume you have a physical machine running a Linux system, and you would like to convert this system into a virtual KVM/QEMU machine, keeping everything as close to the original as possible. What follows is my approach. | |
| | | |
blog.oddbit.com
|
|
| | | | If you are starting virtual machines via libvirt, and you have attached them to the default network, there is a very simple method you can use to determine the address assigned to your running instance: Libvirt runs dnsmasq for the default network, and saves leases in a local file (/var/lib/libvirt/dnsmasq/default.leases under RHEL). You can get the MAC address assigned to a virtual machine by querying the domain XML description. Putting this together gets us something along the lines of: | |
| | | |
blog.hobbyistsoftware.com
|
|
| |