Difference between revisions of "VM files"
(15 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== '''OpenVZ''' == | == '''OpenVZ''' == | ||
− | Containers:< | + | Containers: |
+ | <pre> | ||
+ | /vz/root/ | ||
+ | /vz/private/ | ||
+ | </pre> | ||
Config: | Config: | ||
<pre> | <pre> | ||
/etc/vz/vz.conf | /etc/vz/vz.conf | ||
/etc/vz/dists/distro-name.conf | /etc/vz/dists/distro-name.conf | ||
− | /etc/vz/conf/ | + | /etc/vz/conf/ #<CID>.conf |
+ | /etc/sysconfig/vz-scripts/ #ve-basic.conf-sample | ||
+ | |||
+ | /etc/modprobe.d/openvz.conf #options nf_conntrack ip_conntrack_disable_ve0=1 | ||
</pre> | </pre> | ||
− | + | Separate config files for each VM is located in its container (''/vz/root/'') and depends on guest OS type.<br/> | |
OpenVZ main log: | OpenVZ main log: | ||
<pre> | <pre> | ||
Line 23: | Line 30: | ||
== '''KVM''' == | == '''KVM''' == | ||
− | + | Images: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
− | / | + | /dev/<VolumeGroupName>/ #for example: /dev/vg1 |
</pre> | </pre> | ||
− | |||
Config: | Config: | ||
<pre> | <pre> | ||
Line 46: | Line 43: | ||
/etc/libvirt/qemu/<vmID>.xml | /etc/libvirt/qemu/<vmID>.xml | ||
</pre> | </pre> | ||
+ | KVM main log: | ||
+ | <pre> | ||
+ | /var/log/libvirt/libvirtd.log | ||
+ | </pre> | ||
+ | Separate log for each VM: | ||
+ | <pre> | ||
+ | /var/log/libvirt/qemu/ | ||
+ | </pre> | ||
+ | "[[Category:Admin area]]" |
Latest revision as of 00:10, 27 September 2014
OpenVZ
Containers:
/vz/root/ /vz/private/
Config:
/etc/vz/vz.conf /etc/vz/dists/distro-name.conf /etc/vz/conf/ #<CID>.conf /etc/sysconfig/vz-scripts/ #ve-basic.conf-sample /etc/modprobe.d/openvz.conf #options nf_conntrack ip_conntrack_disable_ve0=1
Separate config files for each VM is located in its container (/vz/root/) and depends on guest OS type.
OpenVZ main log:
/var/log/vzctl.log
Separate log for each VM:
/vz/root/<vmID>/var/log/massages #in case of linux guest
VM config:
KVM
Images:
/dev/<VolumeGroupName>/ #for example: /dev/vg1
Config:
/etc/libvirt/libvirtd.conf /etc/libvirt/qemu.conf
Separate config for each VM:
/etc/libvirt/qemu/<vmID>.xml
KVM main log:
/var/log/libvirt/libvirtd.log
Separate log for each VM:
/var/log/libvirt/qemu/
""