docs:libvirt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docs:libvirt [2014-05-11 13:01] – arekm | docs:libvirt [2014-05-15 09:36] (current) – [Changing guest configuration (config file)] arekm | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== libvirt ====== | ||
+ | |||
+ | [[wp> | ||
+ | |||
+ | |||
==== Sparse image ==== | ==== Sparse image ==== | ||
Line 4: | Line 9: | ||
qemu-img create -f qcow2 / | qemu-img create -f qcow2 / | ||
</ | </ | ||
+ | |||
+ | ==== Resize image ==== | ||
+ | |||
+ | < | ||
+ | qemu-img resize / | ||
+ | </ | ||
+ | |||
+ | and then resize partition table and filesystem. | ||
==== Installation ==== | ==== Installation ==== | ||
< | < | ||
- | virt-install -r 4096 --accelerate -n testowy | + | 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 ==== | ==== Deleting guest ==== | ||
Line 15: | Line 35: | ||
< | < | ||
virsh | virsh | ||
- | destroy | + | destroy |
- | undefine | + | undefine |
</ | </ | ||
+ | |||
+ | ==== Autostart ==== | ||
+ | |||
+ | < | ||
+ | virsh autostart test | ||
+ | </ | ||
+ | |||
+ | ==== Changing guest configuration (config file) ==== | ||
+ | |||
+ | < | ||
+ | virsh edit test | ||
+ | </ | ||
+ |
docs/libvirt.1399806077.txt.gz · Last modified: 2014-05-11 13:01 by arekm