KVM: syntaxe (bis)
This commit is contained in:
parent
0e03ef52b5
commit
d3af7f7a93
|
@ -308,6 +308,7 @@ Mountage de l'image (attention à ne jamais la monter en cours de fonctionnement
|
|||
loop1p1 : 0 9912042 /dev/loop1 63
|
||||
loop1p2 : 0 562275 /dev/loop1 9912105
|
||||
loop1p5 : 0 562212 loop1p1 63
|
||||
|
||||
# fdisk -l /dev/loop1
|
||||
# mount /dev/mapper/loop1p1 /mnt/test0
|
||||
# umount /mnt/test0
|
||||
|
@ -363,6 +364,7 @@ Disk /dev/loop0: 161.1 GB, 161061273600 bytes
|
|||
~~~
|
||||
# kpartx -d host.img
|
||||
loop deleted : /dev/loop0
|
||||
|
||||
# kpartx -v -a host.img
|
||||
add map loop0p1 (254:4): 0 314572737 linear /dev/loop0 63
|
||||
~~~
|
||||
|
@ -378,6 +380,7 @@ Pass 3: Checking directory connectivity
|
|||
Pass 4: Checking reference counts
|
||||
Pass 5: Checking group summary information
|
||||
/dev/mapper/loop0p1: 46712/6111232 files (8.3% non-contiguous), 20257932/24414775 blocks
|
||||
|
||||
# resize2fs /dev/mapper/loop0p1
|
||||
resize2fs 1.42.5 (29-Jul-2012)
|
||||
Resizing the filesystem on /dev/mapper/loop0p1 to 39321592 (4k) blocks.
|
||||
|
@ -388,8 +391,10 @@ The filesystem on /dev/mapper/loop0p1 is now 39321592 blocks long.
|
|||
|
||||
~~~
|
||||
# mount /dev/mapper/loop0p1 /mnt
|
||||
|
||||
# df -h /mnt
|
||||
/dev/mapper/loop0p1 148G 76G 72G 52% /mnt
|
||||
|
||||
# umount /mnt
|
||||
~~~
|
||||
|
||||
|
@ -659,6 +664,7 @@ Création d'une image dérivée :
|
|||
~~~
|
||||
# qemu-img create -f qcow2 -b install-debian-base.qcow2base serveur01.qcow2snap
|
||||
Formatting 'serveur01.qcow2snap', fmt=qcow2 size=12884901888 backing_file='install-debian-base.qcow2base' encryption=off cluster_size=0
|
||||
|
||||
# qemu-img info serveur01.qcow2snap
|
||||
image: serveur01.qcow2snap
|
||||
file format: qcow2
|
||||
|
|
Loading…
Reference in a new issue