docs:libvirt
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:libvirt [2014-05-11 12:59] – created arekm | docs:libvirt [2014-05-15 09:36] (current) – [Changing guest configuration (config file)] arekm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== libvirt ====== | ||
- | Sparse image: | + | [[wp> |
+ | |||
+ | ==== Sparse image ==== | ||
+ | |||
+ | < | ||
qemu-img create -f qcow2 / | qemu-img create -f qcow2 / | ||
+ | </ | ||
+ | |||
+ | ==== Resize image ==== | ||
+ | |||
+ | < | ||
+ | qemu-img resize / | ||
+ | </ | ||
+ | |||
+ | and then resize partition table and filesystem. | ||
+ | |||
+ | ==== Installation ==== | ||
+ | |||
+ | < | ||
+ | virt-install -r 4096 --accelerate -n test \ | ||
+ | -f / | ||
+ | --cdrom / | ||
+ | --network=type=direct, | ||
+ | --graphics vnc, | ||
+ | --noautoconsole | ||
+ | </ | ||
+ | |||
+ | (connect using vnc client to server IP to finish installation) | ||
+ | |||
+ | ==== Deleting guest ==== | ||
+ | |||
+ | < | ||
+ | virsh | ||
+ | destroy test | ||
+ | undefine test | ||
+ | </ | ||
+ | |||
+ | ==== Autostart ==== | ||
+ | |||
+ | < | ||
+ | virsh autostart test | ||
+ | </ | ||
+ | |||
+ | ==== Changing guest configuration (config file) ==== | ||
- | Installation: | + | < |
+ | virsh edit test | ||
+ | </ | ||
- | virt-install -r 4096 --accelerate -n testowy -f / |
docs/libvirt.1399805968.txt.gz · Last modified: 2014-05-11 12:59 by arekm