[fedora-virt] Need to read guests logs.

Richard W.M. Jones rjones at redhat.com
Thu Nov 4 19:53:19 UTC 2010


On Thu, Nov 04, 2010 at 07:24:29PM +0000, Frank Murphy wrote:
> On 04/11/10 19:01, Richard W.M. Jones wrote:
> >
> >   virt-cat Guest /var/log/messages     # or /var/log/dmesg etc
> 
> This tell me there is no image there. possible luks? as below
> 
> >
> > or:
> >
> >   guestfish --ro -i -d Guest
> >   ><fs>  less /var/log/messages
> >
> >
> This sigterms out, it cannot understand crypto-luks.
> The guest /home, swap, and / are luks encrypted

You need to do it manually in that case.  This is an example with a
whole disk encrypted guest:

guestfish [--ro] -d Guest
><fs> run
><fs> vfs-type /dev/vda1 
ext4
><fs> vfs-type /dev/vda2 
crypto_LUKS
><fs> luks-open /dev/vda2 encrypted
Enter key or passphrase ("key"): 
><fs> vgscan 
><fs> vg-activate-all true
><fs> list-filesystems 
/dev/vda1: ext4
/dev/vg_f13x64encrypted/lv_root: ext4
/dev/vg_f13x64encrypted/lv_swap: swap
><fs> inspect-os 
/dev/vg_f13x64encrypted/lv_root
><fs> inspect-get-product-name /dev/vg_f13x64encrypted/lv_root
Fedora release 13 (Goddard)
><fs> inspect-get-mountpoints /dev/vg_f13x64encrypted/lv_root
/: /dev/vg_f13x64encrypted/lv_root
/boot: /dev/vda1
><fs> mount /dev/vg_f13x64encrypted/lv_root /
><fs> mount /dev/vda1 /boot
><fs> edit /boot/grub/grub.conf

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora


More information about the virt mailing list