/[sysadmin-cookbook]/recepies/kvm/20.mount-image
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /recepies/kvm/20.mount-image

Parent Directory Parent Directory | Revision Log Revision Log


Revision 52 - (show annotations)
Mon May 11 21:48:57 2009 UTC (14 years, 10 months ago) by dpavlin
File size: 373 byte(s)
turn qemu/kvm image into nbd device

1 root@klin:/btrfs# kvm-nbd --port 10000 212052.qcow2 &
2
3 root@klin:/btrfs# nbd-client localhost 10000 /dev/nbd0
4 Negotiation: ..size = 52428800KB
5 bs=1024, sz=52428800
6
7 root@klin:/btrfs# mount /dev/nbd0p1 /mnt/tmp
8 root@klin:/btrfs# df /mnt/tmp
9 Filesystem 1K-blocks Used Available Use% Mounted on
10 /dev/nbd0p1 51605436 53064 48930968 1% /mnt/tmp
11

  ViewVC Help
Powered by ViewVC 1.1.26