Stupid question?
Hi all,
This is the only QEMU list, so I put my question her.
How can I copy the contents of a "*.raw" image to a real HD partition or vice versa.
I often use a virtual image using qemu/kvm to test some OS's and want to migrate them to a HD partition if the time is right. Also, I like to preserve old partitions for future use/reference.
Any suggestions?
Regards, Frans.
Quoted 10 lines · Frans de Boer
Hi all,
This is the only QEMU list, so I put my question her.
How can I copy the contents of a "*.raw" image to a real HD partition or vice versa.
I often use a virtual image using qemu/kvm to test some OS's and want to migrate them to a HD partition if the time is right. Also, I like to preserve old partitions for future use/reference.Any suggestions?
Regards, Frans.
You can mount it using losetup.
http://blog.piotrj.org/2009/03/mounting-raw-kvmqemu-image.html
Thanks,
Dushyant
Quoted 9 lines · Dushyant Bansal
Quoted 8 lines · Frans de Boer
Hi all,
This is the only QEMU list, so I put my question her.
How can I copy the contents of a "*.raw" image to a real HD partition or vice versa.
I often use a virtual image using qemu/kvm to test some OS's and want to migrate them to a HD partition if the time is right. Also, I like to preserve old partitions for future use/reference.Any suggestions?
Quoted 8 lines
Quoted 2 lines
Regards, Frans.
You can mount it using losetup.
http://blog.piotrj.org/2009/03/mounting-raw-kvmqemu-image.htmlThanks,
Dushyant
Thanks, that seems a good way to start. Sorry for the obvious, but Linux has so many options/features, I sometimes use the lazy way to get answers.
Regards, Frans.
Quoted 11 lines · Dushyant Bansal
Quoted 10 lines · Frans de Boer
Hi all,
This is the only QEMU list, so I put my question her.
How can I copy the contents of a "*.raw" image to a real HD partition or vice versa.
I often use a virtual image using qemu/kvm to test some OS's and want to migrate them to a HD partition if the time is right. Also, I like to preserve old partitions for future use/reference.
Quoted 6 lines
Quoted 4 lines
Any suggestions?
Regards, Frans.
You can mount it using losetup.
http://blog.piotrj.org/2009/03/mounting-raw-kvmqemu-image.html
losetup is fine, can we directly use dd ?
Quoted 13 lines · Amos Kong
Quoted 11 lines · Dushyant Bansal
Quoted 10 lines · Frans de Boer
Hi all,
This is the only QEMU list, so I put my question her.
How can I copy the contents of a "*.raw" image to a real HD partition or vice versa.
I often use a virtual image using qemu/kvm to test some OS's and want to migrate them to a HD partition if the time is right. Also, I like to preserve old partitions for future use/reference.
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Any suggestions?
Regards, Frans.
You can mount it using losetup.
http://blog.piotrj.org/2009/03/mounting-raw-kvmqemu-image.htmllosetup is fine, can we directly use dd ?
dd words for a raw file; qemu-img works for all qemu supported formats.
Signature · 1 line
error compiling committee.c: too many arguments to function
kpartx is easier than losetup for getting at individual partitions inside a raw image.
http://linux.die.net/man/8/kpartx
Stefan