<br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 7:17 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Aug 16, 2011 at 06:54:23AM -0700, David Konerding wrote:<br>
> On Tue, Aug 16, 2011 at 12:25 AM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>>wrote:<br>
><br>
> > On Mon, Aug 15, 2011 at 08:49:01PM -0700, David Konerding wrote:<br>
> > [..]<br>
> ><br>
> > I forgot to add last night that your problem sounds like missing udev.<br>
> > If you get a process listing (ps ax) is udevd running?  On Ubuntu<br>
> > 11.04 in virt-rescue I get:<br>
> ><br>
> >   43 ?        S<s    0:00 /sbin/udevd --daemon<br>
> >  367 ?        S<     0:00 /sbin/udevd --daemon<br>
> >  368 ?        S<     0:00 /sbin/udevd --daemon<br>
> ><br>
> ><br>
> udevd is definitely there (I see 1 instance, not three).  udevd complains<br>
> about /dev/null being missing, and /dev is pretty empty (there is only a<br>
> kmsg file there).<br>
<br>
</div>So I'm assuming /dev exists, and is a directory?<br>
<div class="im"><br></div></blockquote><div><br></div><div>Yes.  OK,  I fixed the udev problem, there are now three daemons running, and /dev is populated as expected.</div><div>Looks like the problem was the missing initscripts package, which I shoe-horned into <a href="http://febootstrap_debian.ml">febootstrap_debian.ml</a>.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> The other big problem I see right now is that virtio-serial isn't working<br>
> properly (which is the ultimate message I see).  I'm trying to debug that a<br>
> bit by manually starting a simple KVM with the virtio-console flags and<br>
> seeing if that works.<br>
<br>
</div>Yeah, one thing about this which I forgot.<br>
<br>
guestfsd opens /dev/virtio-ports/org.libguestfs.channel.0, see<br>
<a href="http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/guestfsd.c;h=eb1e82b4a53b9fc362d9580df6a763b620dbf901;hb=HEAD#l239" target="_blank">http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/guestfsd.c;h=eb1e82b4a53b9fc362d9580df6a763b620dbf901;hb=HEAD#l239</a><br>

<br>
This device won't exist unless (1) udev is running and populating /dev<br>
properly -- see above.  And (2) the udev rules exist for<br>
virtio-serial.  It might be that (2) requires an updated version of<br>
udev from a later Ubuntu release.  In Ubuntu 11.04 the rules are in<br>
'/lib/udev/rules.d/50-udev-default.rules'.<br>
<div class="im"><br></div></blockquote><div><br></div><div>Ah.  This is what I have on my home machine (Ubuntu 10.10):</div><div><br></div><div># virtio serial / console ports</div><div>KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"</div>
<div><br></div><div>This is what I have on my work machine (Ubuntu 10.04 derivative):</div><div><div># virtio serial / console ports</div><div>KERNEL=="vport*", SYMLINK+="virtio-ports/$ATTR{name}"</div>
</div><div><br></div><div>Do you have something more?  I'm tempted to upgrade my home machine to have at least one box I can use to test libguestfs.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div><div><div></div><div class="h5">libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" target="_blank">http://libguestfs.org</a><br>
</div></div></blockquote></div><br>