<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libguestfs.git/appliance/init, branch oldlinux</title>
<subtitle>[MIRROR] library for accessing and modifying guest disk images</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/'/>
<entry>
<title>EPEL 5: Add "null vmchannel" back for qemu without virtio-serial support.</title>
<updated>2012-06-27T15:36:16+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-06-18T15:06:34+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=bc2657ab1c52ae52464769457352719ad2adb1eb'/>
<id>bc2657ab1c52ae52464769457352719ad2adb1eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>virtio-scsi: Increase udev timeout.</title>
<updated>2012-06-14T13:22:07+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-06-14T13:21:16+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=abbace68881b0917919913fe71bd738e45f36df5'/>
<id>abbace68881b0917919913fe71bd738e45f36df5</id>
<content type='text'>
In Koji, when you've got 200+ disks, udev times out before all the
udev events have been processed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Koji, when you've got 200+ disks, udev times out before all the
udev events have been processed.
</pre>
</div>
</content>
</entry>
<entry>
<title>appliance: 'udevd' has been renamed, since it joined systemd.</title>
<updated>2012-05-28T15:09:40+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-05-28T15:09:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=a7868dd3c940b6cee0894e6033ba611f01a423dd'/>
<id>a7868dd3c940b6cee0894e6033ba611f01a423dd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>appliance: Remove some unnecessary errors.</title>
<updated>2012-04-25T21:58:25+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-04-25T21:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=beaa5288558fc78304bcd008b9254ae2725017f2'/>
<id>beaa5288558fc78304bcd008b9254ae2725017f2</id>
<content type='text'>
virt-rescue prints errors such as:

  rm: cannot remove `/proc': Is a directory
  mkdir: cannot create directory `/proc': File exists
  rm: cannot remove `/sys': Is a directory
  mkdir: cannot create directory `/sys': File exists

People have reported these errors (which are nothing to worry about)
as bugs in the past, so avoid them where possible.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
virt-rescue prints errors such as:

  rm: cannot remove `/proc': Is a directory
  mkdir: cannot create directory `/proc': File exists
  rm: cannot remove `/sys': Is a directory
  mkdir: cannot create directory `/sys': File exists

People have reported these errors (which are nothing to worry about)
as bugs in the past, so avoid them where possible.
</pre>
</div>
</content>
</entry>
<entry>
<title>appliance: Enhance --enable-valgrind-daemon with a suppressions file.</title>
<updated>2012-03-14T16:13:40+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-03-14T16:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=302309921a8cde83eb19a7c25b7ee43932b91a05'/>
<id>302309921a8cde83eb19a7c25b7ee43932b91a05</id>
<content type='text'>
This lets us suppress errors in system libraries.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This lets us suppress errors in system libraries.
</pre>
</div>
</content>
</entry>
<entry>
<title>Test fails in arch linux</title>
<updated>2012-03-01T19:47:34+00:00</updated>
<author>
<name>Nikos Skalkotos</name>
<email>skalkoto@gmail.com</email>
</author>
<published>2012-03-01T19:00:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=ba468e9c5ecb32046299dd69a6e045f2aa7ba982'/>
<id>ba468e9c5ecb32046299dd69a6e045f2aa7ba982</id>
<content type='text'>
--20cf303ea4a84a7a7c04ba331375
Content-Type: text/plain; charset=ISO-8859-1

Hello Richard,

I found what the problem was and the udev symlinks where not created. The
init script in the appliance uses a full paths for udevadm (/sbin/udevadm)
which in my case was wrong. In Arch Linux udevadm is hosted under /usr/bin,
not /sbin. When I fixed this, libguestfs was able to communicate with the
appliance VM.

Since PATH variable is defined and exported in init, there is no need in
using full paths for external programs. As far as I've seen this affects
all the git branches in libguestfs's repository. Please find attached a
patch for the master branch.

Nikos Skalkotos,
Athens, Greece

On 24 February 2012 10:25, Richard W.M. Jones &lt;rjones@redhat.com&gt; wrote:

&gt; On Thu, Feb 23, 2012 at 08:50:12PM +0200, Nikos Skalkotos wrote:
&gt; [...]
&gt;
&gt; I don't know specifically why it fails with ArchLinux, but the problem
&gt; is caused by the /dev/virtio-ports/* symlinks not getting created by
&gt; udev.
&gt;
&gt; /dev/vport0p1 exists:
&gt;
&gt; &gt; crw------- 1 root root 252,   1 Feb 23 18:17 vport0p1
&gt;
&gt; but udev doesn't make the corresponding /dev/virtio-ports symlink:
&gt;
&gt; &gt; /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory
&gt;
&gt; The symlink is supposed to be created by this udev rule:
&gt;
&gt; /lib/udev/rules.d/50-udev-default.rules:KERNEL=="vport*",
&gt; ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
&gt;
&gt; So I'd start by looking to see if that rule exists in the udev rules
&gt; that Arch is using.  Secondly if it does exist, is the corresponding
&gt; *.rules being copied into the appliance?  (Check appliance/supermin.d/
&gt; hostfiles)
&gt;
&gt; In an old Ubuntu that has udev that predates having this rule, we add
&gt; the following patch:
&gt;
&gt;
&gt; http://libguestfs.org/download/binaries/ubuntu1004-packages/0002-ubuntu-10.04-Use-dev-vport0p1.patch
&gt;
&gt; Rich.
&gt;
&gt; --
&gt; Richard Jones, Virtualization Group, Red Hat
&gt; http://people.redhat.com/~rjones
&gt; virt-p2v converts physical machines to virtual machines.  Boot with a
&gt; live CD or over the network (PXE) and turn machines into Xen guests.
&gt; http://et.redhat.com/~rjones/virt-p2v
&gt;

Hello Richard,&lt;br&gt;&lt;br&gt;I found what the problem was and the udev symlinks where not created. The init script in the appliance uses a full paths for udevadm (/sbin/udevadm) which in my case was wrong. In Arch Linux udevadm is hosted under /usr/bin, not /sbin. When I fixed this, libguestfs was able to communicate with the appliance VM.&lt;br&gt;
&lt;br&gt;Since PATH variable is defined and exported in init, there is no need in using full paths for external programs. As far as I&amp;#39;ve seen this affects all the git branches in libguestfs&amp;#39;s repository. Please find attached a patch for the master branch.&lt;br&gt;
&lt;br&gt;Nikos Skalkotos,&lt;br&gt;Athens, Greece&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On 24 February 2012 10:25, Richard W.M. Jones &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:rjones@redhat.com"&gt;rjones@redhat.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;
On Thu, Feb 23, 2012 at 08:50:12PM +0200, Nikos Skalkotos wrote:&lt;br&gt;
[...]&lt;br&gt;
&lt;br&gt;
I don&amp;#39;t know specifically why it fails with ArchLinux, but the problem&lt;br&gt;
is caused by the /dev/virtio-ports/* symlinks not getting created by&lt;br&gt;
udev.&lt;br&gt;
&lt;br&gt;
/dev/vport0p1 exists:&lt;br&gt;
&lt;div class="im"&gt;&lt;br&gt;
&amp;gt; crw------- 1 root root 252,   1 Feb 23 18:17 vport0p1&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;but udev doesn&amp;#39;t make the corresponding /dev/virtio-ports symlink:&lt;br&gt;
&lt;div class="im"&gt;&lt;br&gt;
&amp;gt; /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;The symlink is supposed to be created by this udev rule:&lt;br&gt;
&lt;br&gt;
/lib/udev/rules.d/50-udev-default.rules:KERNEL==&amp;quot;vport*&amp;quot;, ATTR{name}==&amp;quot;?*&amp;quot;, SYMLINK+=&amp;quot;virtio-ports/$attr{name}&amp;quot;&lt;br&gt;
&lt;br&gt;
So I&amp;#39;d start by looking to see if that rule exists in the udev rules&lt;br&gt;
that Arch is using.  Secondly if it does exist, is the corresponding&lt;br&gt;
*.rules being copied into the appliance?  (Check appliance/supermin.d/&lt;br&gt;
hostfiles)&lt;br&gt;
&lt;br&gt;
In an old Ubuntu that has udev that predates having this rule, we add&lt;br&gt;
the following patch:&lt;br&gt;
&lt;br&gt;
&lt;a href="http://libguestfs.org/download/binaries/ubuntu1004-packages/0002-ubuntu-10.04-Use-dev-vport0p1.patch" target="_blank"&gt;http://libguestfs.org/download/binaries/ubuntu1004-packages/0002-ubuntu-10.04-Use-dev-vport0p1.patch&lt;/a&gt;&lt;br&gt;

&lt;br&gt;
Rich.&lt;br&gt;
&lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt;
--&lt;br&gt;
Richard Jones, Virtualization Group, Red Hat &lt;a href="http://people.redhat.com/%7Erjones%0Avirt-p2v" target="_blank"&gt;http://people.redhat.com/~rjones&lt;br&gt;
virt-p2v&lt;/a&gt; converts physical machines to virtual machines.  Boot with a&lt;br&gt;
live CD or over the network (PXE) and turn machines into Xen guests.&lt;br&gt;
&lt;a href="http://et.redhat.com/%7Erjones/virt-p2v" target="_blank"&gt;http://et.redhat.com/~rjones/virt-p2v&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--20cf303ea4a84a7a7c04ba331375
Content-Type: text/plain; charset=ISO-8859-1

Hello Richard,

I found what the problem was and the udev symlinks where not created. The
init script in the appliance uses a full paths for udevadm (/sbin/udevadm)
which in my case was wrong. In Arch Linux udevadm is hosted under /usr/bin,
not /sbin. When I fixed this, libguestfs was able to communicate with the
appliance VM.

Since PATH variable is defined and exported in init, there is no need in
using full paths for external programs. As far as I've seen this affects
all the git branches in libguestfs's repository. Please find attached a
patch for the master branch.

Nikos Skalkotos,
Athens, Greece

On 24 February 2012 10:25, Richard W.M. Jones &lt;rjones@redhat.com&gt; wrote:

&gt; On Thu, Feb 23, 2012 at 08:50:12PM +0200, Nikos Skalkotos wrote:
&gt; [...]
&gt;
&gt; I don't know specifically why it fails with ArchLinux, but the problem
&gt; is caused by the /dev/virtio-ports/* symlinks not getting created by
&gt; udev.
&gt;
&gt; /dev/vport0p1 exists:
&gt;
&gt; &gt; crw------- 1 root root 252,   1 Feb 23 18:17 vport0p1
&gt;
&gt; but udev doesn't make the corresponding /dev/virtio-ports symlink:
&gt;
&gt; &gt; /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory
&gt;
&gt; The symlink is supposed to be created by this udev rule:
&gt;
&gt; /lib/udev/rules.d/50-udev-default.rules:KERNEL=="vport*",
&gt; ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
&gt;
&gt; So I'd start by looking to see if that rule exists in the udev rules
&gt; that Arch is using.  Secondly if it does exist, is the corresponding
&gt; *.rules being copied into the appliance?  (Check appliance/supermin.d/
&gt; hostfiles)
&gt;
&gt; In an old Ubuntu that has udev that predates having this rule, we add
&gt; the following patch:
&gt;
&gt;
&gt; http://libguestfs.org/download/binaries/ubuntu1004-packages/0002-ubuntu-10.04-Use-dev-vport0p1.patch
&gt;
&gt; Rich.
&gt;
&gt; --
&gt; Richard Jones, Virtualization Group, Red Hat
&gt; http://people.redhat.com/~rjones
&gt; virt-p2v converts physical machines to virtual machines.  Boot with a
&gt; live CD or over the network (PXE) and turn machines into Xen guests.
&gt; http://et.redhat.com/~rjones/virt-p2v
&gt;

Hello Richard,&lt;br&gt;&lt;br&gt;I found what the problem was and the udev symlinks where not created. The init script in the appliance uses a full paths for udevadm (/sbin/udevadm) which in my case was wrong. In Arch Linux udevadm is hosted under /usr/bin, not /sbin. When I fixed this, libguestfs was able to communicate with the appliance VM.&lt;br&gt;
&lt;br&gt;Since PATH variable is defined and exported in init, there is no need in using full paths for external programs. As far as I&amp;#39;ve seen this affects all the git branches in libguestfs&amp;#39;s repository. Please find attached a patch for the master branch.&lt;br&gt;
&lt;br&gt;Nikos Skalkotos,&lt;br&gt;Athens, Greece&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On 24 February 2012 10:25, Richard W.M. Jones &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:rjones@redhat.com"&gt;rjones@redhat.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;
On Thu, Feb 23, 2012 at 08:50:12PM +0200, Nikos Skalkotos wrote:&lt;br&gt;
[...]&lt;br&gt;
&lt;br&gt;
I don&amp;#39;t know specifically why it fails with ArchLinux, but the problem&lt;br&gt;
is caused by the /dev/virtio-ports/* symlinks not getting created by&lt;br&gt;
udev.&lt;br&gt;
&lt;br&gt;
/dev/vport0p1 exists:&lt;br&gt;
&lt;div class="im"&gt;&lt;br&gt;
&amp;gt; crw------- 1 root root 252,   1 Feb 23 18:17 vport0p1&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;but udev doesn&amp;#39;t make the corresponding /dev/virtio-ports symlink:&lt;br&gt;
&lt;div class="im"&gt;&lt;br&gt;
&amp;gt; /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;The symlink is supposed to be created by this udev rule:&lt;br&gt;
&lt;br&gt;
/lib/udev/rules.d/50-udev-default.rules:KERNEL==&amp;quot;vport*&amp;quot;, ATTR{name}==&amp;quot;?*&amp;quot;, SYMLINK+=&amp;quot;virtio-ports/$attr{name}&amp;quot;&lt;br&gt;
&lt;br&gt;
So I&amp;#39;d start by looking to see if that rule exists in the udev rules&lt;br&gt;
that Arch is using.  Secondly if it does exist, is the corresponding&lt;br&gt;
*.rules being copied into the appliance?  (Check appliance/supermin.d/&lt;br&gt;
hostfiles)&lt;br&gt;
&lt;br&gt;
In an old Ubuntu that has udev that predates having this rule, we add&lt;br&gt;
the following patch:&lt;br&gt;
&lt;br&gt;
&lt;a href="http://libguestfs.org/download/binaries/ubuntu1004-packages/0002-ubuntu-10.04-Use-dev-vport0p1.patch" target="_blank"&gt;http://libguestfs.org/download/binaries/ubuntu1004-packages/0002-ubuntu-10.04-Use-dev-vport0p1.patch&lt;/a&gt;&lt;br&gt;

&lt;br&gt;
Rich.&lt;br&gt;
&lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt;
--&lt;br&gt;
Richard Jones, Virtualization Group, Red Hat &lt;a href="http://people.redhat.com/%7Erjones%0Avirt-p2v" target="_blank"&gt;http://people.redhat.com/~rjones&lt;br&gt;
virt-p2v&lt;/a&gt; converts physical machines to virtual machines.  Boot with a&lt;br&gt;
live CD or over the network (PXE) and turn machines into Xen guests.&lt;br&gt;
&lt;a href="http://et.redhat.com/%7Erjones/virt-p2v" target="_blank"&gt;http://et.redhat.com/~rjones/virt-p2v&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>appliance: udev &gt;= 176 now requires /dev to be a devtmpfs.</title>
<updated>2012-01-27T15:36:31+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-01-27T15:36:31+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=8f564ae7a2fb0f170308bd103a6be0a981583b1c'/>
<id>8f564ae7a2fb0f170308bd103a6be0a981583b1c</id>
<content type='text'>
See this udev commit:
https://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=220893b3cbdbf8932f95c44811b169a8f0d33939
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See this udev commit:
https://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=220893b3cbdbf8932f95c44811b169a8f0d33939
</pre>
</div>
</content>
</entry>
<entry>
<title>appliance: Switch to using 'iproute' ('ip' command) from 'net-tools' (RHBZ#784647).</title>
<updated>2012-01-25T19:15:41+00:00</updated>
<author>
<name>Jiri Popelka</name>
<email>jpopelka@redhat.com</email>
</author>
<published>2012-01-25T17:16:56+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=501561742b43edb044072ec85048bb35b0b8201a'/>
<id>501561742b43edb044072ec85048bb35b0b8201a</id>
<content type='text'>
Change 'ifconfig' and 'netstat' commands to use 'ip' instead.

'iproute' was already included in the appliance, so this reduces the
size of the appliance accordingly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change 'ifconfig' and 'netstat' commands to use 'ip' instead.

'iproute' was already included in the appliance, so this reduces the
size of the appliance accordingly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable running the daemon under valgrind.</title>
<updated>2012-01-24T15:56:14+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-01-24T13:47:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=d08806adfc5d111b4b6c761540ff508d3f25b66e'/>
<id>d08806adfc5d111b4b6c761540ff508d3f25b66e</id>
<content type='text'>
This commit allows you to run the daemon under valgrind.  You have to
enable it at configure time:

  ./configure --enable-valgrind-daemon

This should *not* be done for production builds.

When this feature is enabled, valgrind is added to the appliance and
the daemon is run under valgrind.  Log messages from valgrind are
passed back over a virtio-serial channel into a file called
'valgrind.log.$PID' in the top build directory.

Running 'make check', 'make extra-tests' etc causes many
valgrind.log.* files to be created which must be examined by hand.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit allows you to run the daemon under valgrind.  You have to
enable it at configure time:

  ./configure --enable-valgrind-daemon

This should *not* be done for production builds.

When this feature is enabled, valgrind is added to the appliance and
the daemon is run under valgrind.  Log messages from valgrind are
passed back over a virtio-serial channel into a file called
'valgrind.log.$PID' in the top build directory.

Running 'make check', 'make extra-tests' etc causes many
valgrind.log.* files to be created which must be examined by hand.
</pre>
</div>
</content>
</entry>
<entry>
<title>New API: list-md-devices.</title>
<updated>2011-11-11T22:52:31+00:00</updated>
<author>
<name>Matthew Booth</name>
<email>mbooth@redhat.com</email>
</author>
<published>2011-11-10T17:56:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=00a0fab50b3803be8db5b7d9fa0869a70b0da556'/>
<id>00a0fab50b3803be8db5b7d9fa0869a70b0da556</id>
<content type='text'>
Return a list of Linux MD devices detected in the guest.

This API complements list_devices, list_partitions, list_lvs and
list_dm_devices.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return a list of Linux MD devices detected in the guest.

This API complements list_devices, list_partitions, list_lvs and
list_dm_devices.
</pre>
</div>
</content>
</entry>
</feed>
