Difference between revisions of "Main Page/IT/Virtualisation"
From Lewis Consultancy Wiki
Jump to navigationJump to search (Created page with "=KVM= Stuff relevant to qemu-kvm ==Install a VM from the command line using virt-install== <pre>virt-install --name <<Your machine name>> --hvm --ram 512 --disk path=<<path to...") |
(→KVM) |
||
Line 1: | Line 1: | ||
=KVM= | =KVM= | ||
Stuff relevant to qemu-kvm | Stuff relevant to qemu-kvm | ||
+ | ==Create a qcow2 disk image== | ||
+ | This will be provisoned "thinly" so the file will grow as data is written into it. | ||
+ | |||
+ | <pre>kvm-img create -f qcow2 mydisk.qcow2 8G</pre> | ||
+ | |||
==Install a VM from the command line using virt-install== | ==Install a VM from the command line using virt-install== | ||
− | <pre>virt-install --name <<Your machine name>> --hvm --ram 512 --disk path=<<path to your | + | This will spin up a new VM given an existing disk image. |
+ | |||
+ | <pre>virt-install --name <<Your machine name>> --hvm --ram 512 --disk path=<<path to your existing OS image>>,format=qcow2,bus=virtio --import --network bridge=br100,model=virtio --vnc --os-type=linux --os-variant=debianwheezy</pre> |
Revision as of 16:04, 26 February 2014
KVM
Stuff relevant to qemu-kvm
Create a qcow2 disk image
This will be provisoned "thinly" so the file will grow as data is written into it.
kvm-img create -f qcow2 mydisk.qcow2 8G
Install a VM from the command line using virt-install
This will spin up a new VM given an existing disk image.
virt-install --name <<Your machine name>> --hvm --ram 512 --disk path=<<path to your existing OS image>>,format=qcow2,bus=virtio --import --network bridge=br100,model=virtio --vnc --os-type=linux --os-variant=debianwheezy