Re: [fedora-virt] libguestfs - no ext3 support building on CentOS 5
by Richard W.M. Jones
[Please keep fedora-virt CC'd on these ...]
On Wed, May 27, 2009 at 09:18:33AM -0500, Charles Duffy wrote:
> On Wed, May 27, 2009 at 2:37 AM, Richard W.M. Jones <rjones(a)redhat.com>wrote:
> > Does it work if you modify make-initramfs to add the extra module?
>
> I can't give a full reply until I'm back at the office (no remote access
> atm), but editing make-initramfs.sh.in did indeed resolve that particular
> issue.
Could you check this patch to see if it should work:
http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=213988115a8fd25...
> However, the logic for skipping the zerofree test if
> /usr/sbin/zerofree wasn't found inside the guest wasn't working, so it still
> proceeded to fail even with working ext3 support.
I'll take a look at this one on my CentOS machine ...
> Also, the CentOS 5 %check script was trying to use test-command without
> compiling it first.
That'll be a bug. Do you mean the EPEL package or the contributed
CentOS spec file (in contrib/)?
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
14 years, 11 months
Hostdev XML Not Working (Libvirt)
by Robert L Cochran
Why doesn't the hostdev xml shown below for a USB device work? I've
shown the entire <devices> block for context.
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='cdrom'>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/Ubuntu9.img'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='network'>
<mac address='54:52:00:74:32:2f'/>
<source network='default'/>
<model type='virtio'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<hostdev mode='subsystem' type='usb'>
<source>
<vendor id='0403'/>
<product id='6001'/>
</source>
</hostdev>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<sound model='es1370'/>
</devices>
The USB device of interest to me is an FTDI FT232RL chip. When I plug
the board into a USB port on the host, I want it to be passed through to
my Ubuntu guest so that it can be seen as /dev/ttyUSB0. The guest
doesn't see it. I took the product and vendor id numbers from the
/var/log/messages output, and these might be in hexadecimal (and I
should be writing e.g. <vendorid=0x0403'/>. I might also be getting the
physical handling of the device wrong: maybe it needs to be already
plugged in at the time the Ubuntu guest is started up, or maybe I should
start the guest first and then plug in the device?
Advice appreciated.
Bob Cochran
14 years, 11 months
Re: p2v question
by Richard W.M. Jones
On Wed, May 27, 2009 at 04:03:50PM +0200, Kevin Stabel wrote:
> I subscribed to et-mgmt-tools and sent an inquiry already but i don't
Ah I wasn't paying much attention to that list. I'm looking
at fedora-virt mostly.
> see anything coming back to me (including my own post) ... so if you
> don't mind, i would like to ask you directly ... if that's okay.
>
> Can i convert or use the resulting images with vmware in any way? I've
> tried qemu-tools but that won't work, it only creates ide disks and i
> can't convert those.
We have a separate tool in Fedora called virt-convert. I don't know
specifically if it will work on the virt-p2v images, but worth a try.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
14 years, 11 months
Distributing Fedora 11 Created Virtual Machines
by Robert L Cochran
I have a virtual machine created on Fedora 11 which runs Ubuntu 9.04. I
have some more customizations to do with the machine, such as getting it
to speak to (FTDI 232R-based) USB devices. When that is done, I would
like to copy the virtual machine to a USB flash drive and postal mail
that to a teacher. The scenario I'm envisioning is that the teacher can
then import the virtual machine and play it on his or her computer --
whatever that computer is, perhaps a Windows machine running VirtualBox
or VMWare. Not necessarily a machine running Fedora 11, you see. Now we
have my first question: can she run my virtual machine on another
virtual machine manager, which is not necessarily a Fedora product?
To go on with the story I'd like the teacher to add her customizations
to the Ubuntu virtual machine, then she in turn will deploy that to
students. They would copy the virtual machine to their computers
(whatever those are) and play them on those computers. These will
probably be whatever computers the school has an d/or whatever computers
the student can afford to pay for. Could this work as well?
Suppose the answer is no they cannot play a Fedora 11-created virtual
machine on their own virtualization software. Is it possible to take the
virtual machine file and clone (part of?) it to a hard drive such that
Ubuntu can be booted from the hard drive?
I'm having a wonderful time in the sandbox, playing with my Ubuntu guest.
Bob Cochran
14 years, 11 months
libguestfs - no ext3 support building on CentOS 5
by Charles Duffy
Howdy.
CentOS 5's stock kernel has ext3 modularized; however, while
make-initramfs.sh allows ext2.ko and ext4.ko modules to be included in
the generated initramfs, no such exception is made for ext3.ko (or
jbd.ko, on which it depends), leading to the following:
====
5/140 test_zerofree_0
mount: /dev/hda1 on /: mount: unknown filesystem type 'ext3'
test_zerofree_0 FAILED
====
Notably, ext4 is still ext4dev as of this kernel.
14 years, 11 months
Successful Compile of libguestfs 1.0.31 in Fedora 11
by Robert L Cochran
I've been looking at the postings here more closely now that I have a
Ubuntu guest running, and I decided to compile libguestfs-1.0.31 in
Fedora 11. It took some time for me to get the dependencies installed.
Question: what packages do I need for the ruby bindings? What package
represents rake? How about OCaml bindings -- what packages are needed to
get it to build?
When building this file as part of `make`:
initramfs.fedora-11.x86_64.img
I got an awesome number of errors related to my not being the root user,
but I assume those errors are okay since I built as an ordinary user.
Also the perl documentation process came up with a large number of errors.
After doing `make check` I got this result:
Test boot completed after 10 iterations.
PASS: test-bootbootboot.sh
==================
All 2 tests passed
==================
Am I ready for 'make install' -- is libguestfs built sufficiently well
for that? Although I would like to get the ruby and OCaml bindings to
build.
Thanks
Bob
14 years, 11 months
[Fwd: Re: [fedora-virt] Hostdev XML Not Working (Libvirt)]
by Robert L Cochran
-------- Original Message --------
Subject: Re: [fedora-virt] Hostdev XML Not Working (Libvirt)
Date: Tue, 26 May 2009 16:51:04 -0400
From: Robert L Cochran <cochranb(a)speakeasy.net>
To: Richard W.M. Jones <rjones(a)redhat.com>
On 05/26/2009 11:02 AM, Richard W.M. Jones wrote:
> On Mon, May 25, 2009 at 09:14:25PM -0400, Robert L Cochran wrote:
>
>> Why doesn't the hostdev xml shown below for a USB device work? I've
>> shown the entire<devices> block for context.
>> <hostdev mode='subsystem' type='usb'>
>> <source>
>> <vendor id='0403'/>
>> <product id='6001'/>
>> </source>
>> </hostdev>
>>
>
> hostdev was only added to libvirt recently -- earlier this month -- so
> my best guess is that you need a newer version of libvirt. Get it
> from Fedora updates or Koji.
>
> Rich.
>
>
I guess I need to explore the world of Koji. I don't know how to grab
Koji updates.
I think I'm set up to get Fedora 11 updates off of yum. I generally hunt
around for new updates at least twice daily.
$ rpm -q libvirt
libvirt-0.6.2-8.fc11.x86_64
Bob
14 years, 11 months
Backport of zfs patches.
by Ruben Kerkhof
Hi all,
I've hit a few issues with booting an Opensolaris domU (build 114)
with the current Xen in Fedora.
Would it be possible to backport patches hg19323 and hg19322?
Otherwise I can wait for Xen 3.4 to hit rawhide, what's the timeframe
for that?
Kind regards,
Ruben Kerkhof
14 years, 11 months
Newbie Q? Mailing-List Support.
by Frank Murphy
Is the mailing list support just for people who run guests on Fedora,
or can it be used with Fedora Guest on CentOS Base?
Thinking of putting a virt box or two together.
FRank
--
msn: frankly3d skype: frankly3d
Mailing-List Reply to: Mailing-List
Still Learning, Unicode where possible
14 years, 11 months