Bug 590799 - guestfish donot work with xen domain xml
guestfish donot work with xen domain xml
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Richard W.M. Jones
Virtualization Bugs
Depends On:
  Show dependency treegraph
Reported: 2010-05-10 13:56 EDT by Kirby Zhou
Modified: 2010-05-12 07:58 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-05-12 07:58:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kirby Zhou 2010-05-10 13:56:42 EDT
Description of problem:

guestfish donot work with xen domain xml.

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:

[root@djt-18-97 ~]# guestfish -i kirby-dev.xml
--fish output is only possible with a single OS

[root@djt-18-97 ~]# cat kirby-dev.xml 
<domain type='xen' id='57'>
  <clock offset='utc'/>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/vgxpool/kirby-dev'/>
      <target dev='xvda' bus='xen'/>
    <disk type='block' device='disk'>
      <driver name='phy'/>
      <source dev='/dev/vgxpool/kirby-dev-data0'/>
      <target dev='xvdb' bus='xen'/>
    <interface type='bridge'>
      <mac address='00:16:3e:72:70:57'/>
      <source bridge='vbr0'/>
      <script path='vif-bridge'/>
      <target dev='vif57.0'/>
    <interface type='bridge'>
      <mac address='00:16:3e:72:70:58'/>
      <source bridge='vbr1'/>
      <script path='vif-bridge'/>
      <target dev='vif57.1'/>
    <console type='pty' tty='/dev/pts/12'>
      <source path='/dev/pts/12'/>
      <target port='0'/>

Actual results:

Expected results:

Additional info:

guestmount works

~]# guestmount $(virt-inspector --ro-fish /dev/vgxpool/kirby-dev /dev/vgxpool/kirby-dev-data0) /mnt/xxx/
Comment 2 Richard W.M. Jones 2010-05-10 14:15:38 EDT
> [root@djt-18-97 ~]# guestfish -i kirby-dev.xml

I see what you're trying to do, but the '-i' option can
only be used on disk image(s), not on libvirt XML.

You can extract the disk image paths from the
XML by doing:

$ xpath /domain/devices/disk/source < /tmp/dev.xml
Found 2 nodes:
-- NODE --
<source dev="/dev/vgxpool/kirby-dev" />
-- NODE --
<source dev="/dev/vgxpool/kirby-dev-data0" />

[Using the xpath program from perl-XML-XPath]

Then run guestfish -i directly on those disk images:

# guestfish -i /dev/vgxpool/kirby-dev /dev/vgxpool/kirby-dev-data0
Comment 3 Richard W.M. Jones 2010-05-10 14:16:29 EDT
Or ...  if the domain is in libvirt, you can just do:

# guestfish -i NameOfDomain
Comment 4 RHEL Product and Program Management 2010-05-10 15:13:57 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
Comment 5 Richard W.M. Jones 2010-05-12 07:58:16 EDT
Closing, since this is not a bug.

Note You need to log in before you can comment on or make changes to this bug.