Re: Updated Fedora ARM qemu images?

2012-03-23 Thread Richard W.M. Jones
I cannot get qemu-system-arm to boot any of our F17 kernels, but
here's what I did anyway.

# Make a disk image:

$ wget 'http://fedora.roving-it.com/rootfs-f17-hfp-alpha1.tar.bz2'
$ bunzip2 rootfs-f17-hfp-alpha1.tar.bz2
$ virt-make-fs -s 2G -t ext3 -F raw --partition=mbr rootfs-f17-hfp-alpha1.tar 
disk.img
Formatting 'disk.img', fmt=raw size=2147483648 
$ ll disk.img 
-rw-r--r--. 1 rjones rjones 2147483648 Mar 23 05:47 disk.img
$ virt-filesystems -a disk.img --all --long -h
Name   TypeVFS   Label  MBR  Size  Parent
/dev/sda1  filesystem  ext3  -  -2.0G  -
/dev/sda1  partition   - -  83   2.0G  /dev/sda
/dev/sda   device  - -  -2.0G  -

# Extract the kernels from the tarball:

$ tar tf rootfs-f17-hfp-alpha1.tar | less
$ tar xf rootfs-f17-hfp-alpha1.tar ./boot/

# Try to boot it one of the kernels in the boot/ directory:

$ qemu-system-arm -m 256 -M versatilepb -kernel 
boot/vmlinuz-3.3.0-0.rc4.git3.1.fc17.armv7hl -initrd 
boot/initramfs-3.3.0-0.rc4.git3.1.fc17.armv7hl.img -hda disk.img -serial stdio 
-vga std
Uncompressing Linux... done, booting the kernel.

It just hangs at this point using 100% CPU with no output.  The other
kernels don't even seem to get that far.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Updated Fedora ARM qemu images?

2012-03-23 Thread Richard W.M. Jones
On Thu, Mar 22, 2012 at 03:38:37PM -0400, Chris Tyler wrote:
 On Thu, 2012-03-22 at 12:10 -0600, Orion Poplawski wrote:
  I started looking at:
  
  http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu
  
  VM starts okay in F16 with setsebool -P virt_use_execmem=on
  
  But the image is a Fedora 12 system.  Any updated images out there?
 
 New yum-installable RPM images coming Real Soon Now(tm) :-)

Interesting .. how's it going to work?  Is this a port of anaconda?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Updated Fedora ARM qemu images?

2012-03-22 Thread Orion Poplawski

I started looking at:

http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu

VM starts okay in F16 with setsebool -P virt_use_execmem=on

But the image is a Fedora 12 system.  Any updated images out there?

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office  FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301   http://www.nwra.com
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Updated Fedora ARM qemu images?

2012-03-22 Thread Jon Masters
On 03/22/2012 03:38 PM, Chris Tyler wrote:
 On Thu, 2012-03-22 at 12:10 -0600, Orion Poplawski wrote:
 I started looking at:

 http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu

 VM starts okay in F16 with setsebool -P virt_use_execmem=on

 But the image is a Fedora 12 system.  Any updated images out there?
 
 New yum-installable RPM images coming Real Soon Now(tm) :-)

Chris, David has some time to possibly help with this. I already
mentioned it to him...hopefully he pinged you :)

Jon.

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Updated Fedora ARM qemu images?

2012-03-22 Thread Orion Poplawski

On 03/22/2012 01:30 PM, Brendan Conoboy wrote:

On 03/22/2012 11:10 AM, Orion Poplawski wrote:

I started looking at:

http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu

VM starts okay in F16 with setsebool -P virt_use_execmem=on

But the image is a Fedora 12 system. Any updated images out there?


You should be able to use the F17 alpha 1 image. The pointer is it:

http://fedoraproject.org/wiki/Architectures/ARM

We'll have the document updated for this soon. I've set reply-to to the arm
list since the responsible parties are all there.



Sorry, still very green with vm wrangling.  How do I take the rootfs tarball 
and make a qemu image I can use with libvirt?


Or perhaps I'll just wait for the promised rpm installable images... :)

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office  FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301   http://www.nwra.com
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Updated Fedora ARM qemu images?

2012-03-22 Thread Richard W.M. Jones
On Thu, Mar 22, 2012 at 02:02:26PM -0600, Orion Poplawski wrote:
 On 03/22/2012 01:30 PM, Brendan Conoboy wrote:
 On 03/22/2012 11:10 AM, Orion Poplawski wrote:
 I started looking at:
 
 http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu
 
 VM starts okay in F16 with setsebool -P virt_use_execmem=on
 
 But the image is a Fedora 12 system. Any updated images out there?
 
 You should be able to use the F17 alpha 1 image. The pointer is it:
 
 http://fedoraproject.org/wiki/Architectures/ARM
 
 We'll have the document updated for this soon. I've set reply-to to the arm
 list since the responsible parties are all there.
 
 
 Sorry, still very green with vm wrangling.  How do I take the rootfs
 tarball and make a qemu image I can use with libvirt?

I've not actually tried it for this situation, but virt-make-fs can
turn a tarball into a disk image.

http://libguestfs.org/virt-make-fs.1.html

Probably something like this:

  virt-make-fs -s 1G -t ext3 -F raw --partition=mbr rootfs.tar disk.img

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel