[Libguestfs] About Guest running Tiny Core Linux

Arup Raton Roy roy.arup at gmail.com
Mon Mar 24 13:10:43 UTC 2014


Waiting for the improvement.

-Arup

Regards

Arup Raton Roy
Graduate Student
David R. Cheriton School of Computer Science
University of Waterloo, Ontario, Canada


On Mon, Mar 24, 2014 at 9:02 AM, Richard W.M. Jones <rjones at redhat.com>wrote:

> On Mon, Mar 24, 2014 at 08:22:46AM -0400, Arup Raton Roy wrote:
> > Hi Richard,
> >
> > Thanks a lot for your prompt response. I am enumerating the steps that I
> > followed during the provisioning, if it helps.
>
> Thanks ...
>
> > 1. These are the commands that I used to create the disk image.
> >
> > qemu-img create -f qcow2 base_VM.qcow2 512M
> > kvm -m 512 -cdrom Core-current.iso -hda base_VM.qcow2 -boot d -net
> > nic,macaddr=00:00:00:00:cc:10 -net
> > tap,script=/etc/ovs-ifup0,downscript=/etc/ovs-ifdown0
> >
> > 2. a) The output of qemu-img
> > qemu-img info base_VM.qcow2
> > image: images/base_VM.qcow2
> > file format: qcow2
> > virtual size: 512M (536870912 bytes)
> > disk size: 46M
> > cluster_size: 65536
> > 2. b)  virt-filesystems --all --long -h -a base_VM.qcow2
> > Name       Type        VFS   Label  MBR  Size  Parent
> > /dev/sda1  filesystem  ext4  -      -    512M  -
> > /dev/sda1  partition   -     -      83   512M  /dev/sda
> > /dev/sda   device      -     -      -    512M  -
>
> In my previous analysis I didn't see that TCL actually installs itself
> to a persistent disk.  As shown above and in your trace, it's creating
> an ext4 partition on the persistent disk.
>
> I installed TCL to a disk to see what happens.
>
> $ guestfish --ro -a tcl.qcow2
> Welcome to guestfish, the guest filesystem shell for
> editing virtual machine filesystems and disk images.
>
> Type: 'help' for help on commands
>       'man' to read the manual
>       'quit' to quit the shell
>
> ><fs> run
> ><fs> list-filesystems
> /dev/sda1: ext4
> ><fs> mount /dev/sda1 /
> ><fs> ll /
> total 28
> drwxr-xr-x  4 root root  4096 Mar 24 12:56 .
> drwxr-xr-x 19 root root  4096 Mar 24 12:57 ..
> drwx------  2 root root 16384 Mar 24 12:56 lost+found
> drwxr-xr-x  4 1001 ftp   4096 Mar 24 12:56 tce
>
> ><fs> ll /tce/
> total 20
> drwxr-xr-x 4 1001 ftp  4096 Mar 24 12:56 .
> drwxr-xr-x 4 root root 4096 Mar 24 12:56 ..
> drwxr-xr-x 3 1001 ftp  4096 Mar 24 12:56 boot
> -rw-r--r-- 1 root root    0 Mar 24 12:56 mydata.tgz
> -rw-r--r-- 1 1001 ftp   449 Mar 24 12:56 onboot.lst
> drwxr-xr-x 2 1001 ftp  4096 Mar 24 12:56 optional
>
> It's still using an initramfs, so it's unlikely we can make inspection
> show the real TCL filesystem.  But we should certainly be able to
> improve on current behaviour (ie fix RHBZ#1079734).
>
> 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://people.redhat.com/~rjones/virt-top
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20140324/798aa40f/attachment.htm>


More information about the Libguestfs mailing list