search for: root_filesystem

Displaying 1 result from an estimated 1 matches for "root_filesystem".

2014 Jun 14
3
Script to read systemd journal of a guest to find its IP address
...----------- #!/usr/bin/python #----------------------------------------------------------------- # PURPOSE: To find what IP address a guest has acquired from DHCP #----------------------------------------------------------------- image = "/var/lib/libvirt/images/ostack-controller.qcow2" root_filesystem = "/dev/fedora/root" import os import sys import re import guestfs g = guestfs.GuestFS () g.add_drive (image, format='qcow2') g.launch () #print g.list_partitions() # Set trace #g.set_trace (1) g.mount_options ("ro", root_filesystem, "/") # Open the jour...