This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
command_line [2015/01/27 15:18] k2patel [KVM Command Line] |
command_line [2017/10/06 00:17] k2patel [How to allow network access to KVM Guest] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Test your bootable USB on kvm ==== | + | |
- | In order to test your USB using KVM use following command. | + | |
- | <code bash> | + | |
- | qemu-kvm -hdb <device> | + | |
- | </code> | + | |
- | In my case device was "/dev/sdb". | + | |
====== KVM Command Line ====== | ====== KVM Command Line ====== | ||
Line 36: | Line 31: | ||
[[http://libvirt.org/formatdomain.html|Domain Format in KVM]] | [[http://libvirt.org/formatdomain.html|Domain Format in KVM]] | ||
+ | |||
+ | ==== Test your bootable USB on kvm ==== | ||
+ | In order to test your USB using KVM use following command. | ||
+ | <code bash> | ||
+ | qemu-kvm -hdb <device> | ||
+ | </code> | ||
+ | In my case device was "/dev/sdb". | ||
==== Converting Existing Image ==== | ==== Converting Existing Image ==== | ||
Line 149: | Line 151: | ||
</code> | </code> | ||
+ | ==== Extract folder from KVM Guest Image ==== | ||
+ | This is appear to be far easy solution then i thought.\\ | ||
+ | [[http://libguestfs.org/virt-copy-out.1.html|Link to official Document]] | ||
+ | |||
+ | <code bash> | ||
+ | mkdir test | ||
+ | virt-copy-out -a machine2.qcow2 /metadata/testing/users test/ | ||
+ | </code> |