Portál AbcLinuxu, 10. srpna 2025 16:10


Dotaz: vytvoreni iso souboru z vmdk pomoci qemu

8.11.2006 11:14 Ales
vytvoreni iso souboru z vmdk pomoci qemu
Přečteno: 1675×
Odpovědět | Admin
Ahoj, mam vytvoreny vmdk obraz operacniho systemu pro Vmware player a chtel jsem pomoci tohoto navodu zde a pomoci qemu udelat z toho iso obraz vhodny k vypaleni. Pouzil jsem syntaxi prikazu qemu-img -b stary.vmdk create -f vmdk novy.iso 8G ale nufunguje to, konzole mi napise jen help s prikazy, ten je takovyto. Podle navodu viz www mam pouzit prikaz create, ale bohuzel mam nekde chybu. Prosim, nevite kde? Moc dekuji

**************************************************
The following commands are supported: 

` create [-e] [-b base_image] [-f fmt] filename [size]' 
` commit [-f fmt] filename' 
` convert [-c] [-e] [-f fmt] filename [-O output_fmt] output_filename' 
` info [-f fmt] filename' 
Command parameters: 
filename 
is a disk image filename 
base_image
is the read-only disk image which is used as base for a copy on write image; the copy on write image only stores the modified data 
fmt 
is the disk image format. It is guessed automatically in most cases. The following formats are supported: 
raw 
Raw disk image format (default). This format has the advantage of being simple and easily exportable to all other emulators. If your file system supports holes (for example in ext2 or ext3 on Linux), then only the written sectors will reserve space. Use qemu-img info to know the real size used by the image or ls -ls on Unix/Linux. 
qcow 
QEMU image format, the most versatile format. Use it to have smaller images (useful if your filesystem does not supports holes, for example on Windows), optional AES encryption and zlib based compression. 
cow 
User Mode Linux Copy On Write image format. Used to be the only growable image format in QEMU. It is supported only for compatibility with previous versions. It does not work on win32. 
vmdk 
VMware 3 and 4 compatible image format. 
cloop 
Linux Compressed Loop image, useful only to reuse directly compressed CD-ROM images present for example in the Knoppix CD-ROMs. 
size 
is the disk image size in kilobytes. Optional suffixes M (megabyte) and G (gigabyte) are supported 
output_filename 
is the destination disk image filename 
output_fmt 
is the destination format 
-c 
indicates that target image must be compressed (qcow format only) 
-e 
indicates that the target image must be encrypted (qcow format only) 
Command description: 
` create [-e] [-b base_image] [-f fmt] filename [size]' 
Create the new disk image filename of size size and format fmt. 
If base_image is specified, then the image will record only the differences from base_image. No size needs to be specified in this case. base_image will never be modified unless you use the commit monitor command. 
` commit [-f fmt] filename' 
Commit the changes recorded in filename in its base image. 
` convert [-c] [-e] [-f fmt] filename [-O output_fmt] output_filename' 
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

8.11.2006 11:25 Aleš Kapica | skóre: 52 | blog: kenyho_stesky | Ostrava
Rozbalit Rozbalit vše Re: vytvoreni iso souboru z vmdk pomoci qemu
Odpovědět | | Sbalit | Link | Blokovat | Admin
Tak za prvé, qemu-img není určen pro vytváření nějakých iso ke smažení, ale pro virtuální disky.

Za druhé, ten příkaz nedělá nic jiného, než že vytvoří disk, který bude určen k ukládání změn. Původní disk je pouze pro čtení a na druhý - nově vytvořený - se ukládají jen rozdíly.

A za třetí to že má image příponu vmdk nic neznamená, protože je podstatné pro jakou verzi vmware ten image je určen. Např. image z novějšího vmware je nepoužitelný. A to všechno by ses dozvěděl hned, kdybys neměl za málo si nejdřív RTFM pro qemu.
8.11.2006 11:27 Aleš Kapica | skóre: 52 | blog: kenyho_stesky | Ostrava
Rozbalit Rozbalit vše Re: vytvoreni iso souboru z vmdk pomoci qemu
Ostatně v tom výpisu to máš napsáno také vmdk - VMware 3 and 4 compatible image format

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.