Server Software#Virtualization
Term | Explanation |
---|---|
Domain-0 | host os |
Domain-U | gest os |
Para-Virtualization | Para-virtualization is a virtualization technique which involves running modified versions of operating systems. Performance is generally very close to running bare-metal, non-virtualized operating systems. |
Full Virtualization | Full virtualization offers lower I/O performance than native (or bare-metal) installations of operating systems. |
# service xend restart # ifconfig check xenbr0, xenbr1 # service xend stop # service libvirtd restart # service xend start # /etc/xen/scripts/network-bridge stop # /etc/init.d/network restart # /etc/xen/scripts/network-bridge start
It is advised to use virsh or virt-manager instead of xm. The xm command does not handle error checking or configuration file errors very well and mistakes can lead to system instability or errors in virtual machines. Editing Xen configuration files manually is dangerous and should be avoided.
Command | Explanation |
---|---|
xm list | |
xm console GEST_NAME | ctrl + ] : cancel console |
xm create CONFIG | |
xm shutdown SERVER | |
xm destroy SERVER | |
xm vcpu-list | |
xm info |
xen default bridging
Command | Explanation |
---|---|
brctl | help |
brctl show |
virsh is a command line interface tool for managing guests and the hypervisor.
The virsh tool is built on the libvirt management API and operates as an alternative to the xm command and the graphical guest Manager (virt-manager).
Command | Explanation |
---|---|
virsh list virsh list --all | |
virsh dumpxml GUEST_NAME > /etc/xen/xml/GUEST_NAME.xml | create xml file |
virsh define /etc/xen/xml/GUEST_NAME.xml | create xml file |
virsh create GUEST_DEF_FILE | start server |
virsh shutdown GUEST_DEF_FILE | |
virsh destroy GUEST_DEF_FILE | |
virsh console GUEST_NAME |
libvirtd service
Command | Explanation |
---|---|
virsh net-list |
# virsh net-autostart default --disable # virsh net-destroy default
# virsh net-start default # virsh net-autostart default
# yum groupinstall Virtualization # vi /etc/sysconfig/kernel DEFAULTKERNEL=kernel-xen # vi /boot/grub/menu.lst default=0 # reboot
# ln -s /etc/xen/gestOS /etc/xen/auto/gestOS
/etc/sysctl.conf
xen.independent_wallclock = 1
# echo 1 > /proc/sys/xen/independent_wallclock or # sysctl xen.independent_wallclock=1