It is possible to decompress a raw image?

  • Thread starter Thread starter doknet
  • Start date Start date
D

doknet

Guest
I have a problem, turn off the machine, not start
a virtual machine, I get the error
<code> init: ureadahead-other main process (1557)
terminated with status 4 </ code>

I need to modify /etc/fstab, but I have it in VM
.raw image.
You can open an .raw image . you can change
that any image file externally?
Sorry my englis.

Thanks
 
Boot Your virtual machine using live cd (http://www.sysresccd.org for example) , mount Your partition and fix it.

Thank but:

I´m trying

<code>
qemu-img info /var/lib/vz/images/105/vm-105-disk-1.raw
image: /var/lib/vz/images/105/vm-105-disk-1.raw
file format: raw
virtual size: 12G (12884901888 bytes)
disk size: 6.9G


mount -t ext2 -o loop,offset=32256 /home/bk/vm-105-disk-1.raw /mnt/disco/
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


</code>

Any idea
 
Hi doknet,

Do you have LVM partitions inside your VM ? Then you have to use kpartx multipath tool to access logical volumes inside the VM.

See for example the CentOS (Red Hat) documentation :
http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-accessing-data.html

I already did that. You can access the data inside your VM in logical volumes.

Alain