How do I create a .img
file or any disk image to be used with KVM?
Asked
Active
Viewed 1.5k times
4
-
go on - give us a clue - KVM? In my line of work it is an acronym for "keyboard-video-mouse" ! – fossfreedom Aug 04 '11 at 09:20
-
Kernel-based Virtual Machine. – Oxwivi Aug 04 '11 at 09:27
2 Answers
0
you can create sparse file:
undefine@uml:/var/vm$ dd if=/dev/zero of=plik bs=1M count=1 seek=1000
1+0 przeczytanych recordów
1+0 zapisanych recordów
skopiowane 1048576 bajtów (1,0 MB), 0,00540732 s, 194 MB/s
undefine@uml:/var/vm$ ls -l plik
-rw-rw-r-- 1 undefine undefine 1049624576 lis 9 19:40 plik
and use it as image.

undefine
- 478