1. Enable Promiscious Mode
=========================
Enable Promiscious Mode on Physical Device
-------------------------------------------------------------------------
# xe pif-list
uuid ( RO) : 175c7c48-c480-bc2f-660a-8aee62b5310b
device ( RO): eth0
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 8754f21e-aff3-aa6b-d2ef-f0a053025100
uuid ( RO) : 2023c9f9-1867-54fb-23c0-6901970c79c9
device ( RO): eth1
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 5d2a36b0-7315-66c2-7618-685d11ea3a10
#
# xe pif-list device=eth0
uuid ( RO) : 175c7c48-c480-bc2f-660a-8aee62b5310b
device ( RO): eth0
currently-attached ( RO): true
VLAN ( RO): -1
network-uuid ( RO): 8754f21e-aff3-aa6b-d2ef-f0a053025100
#
# xe pif-param-set uuid=175c7c48-c480-bc2f-660a-8aee62b5310b other-config:promiscuous="true"
# xe pif-param-list uuid=175c7c48-c480-bc2f-660a-8aee62b5310b
...
other-config (MRW): promiscuous: true
This indicates that promiscuous mode is active on the PIF.
#
Enable Promiscious Mode on Virtual/Guest Device
------------------------------------------------------------------------------------
# xe vif-list vm-name-label=Network-Cent7
# xe vif-param-list uuid=
# xe vif-param-set uuid=824f3f41-5866-3930-6936-95c859477c25 other-config:promiscuous="true"
In the output of this command you can see the following line:
# xe vif-param-list uuid=824f3f41-5866-3930-6936-95c859477c25
...
other-config (MRW): promiscuous: true
This indicates that promiscuous mode is active on the VIF.
#
2.Change-Dom0-Memory
========================
Log on to dom0 as root by using the console in XenCenter or by SSH access.
Change the existing dom0_mem parameter to read dom0_mem=2940M in the append line of the xe and xe-serial sections.
Following is a sample for reference:
Change the following:
label xe # XenServer kernel mboot.c32 append /boot/xen.gz dom0_mem=752M lowmem_emergency_pool=1M crashkernel=64M@32M console=com1 vga=mode-0x0311 --- /boot/vmlinuz-2.6-xen root=LABEL=root-ecpmuteu ro xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash --- /boot/initrd-2.6-xen.img
to:
label xe # XenServer kernel mboot.c32 append /boot/xen.gz dom0_mem=2940M lowmem_emergency_pool=1M crashkernel=64M@32M console=com1 vga=mode-0x0311 --- /boot/vmlinuz-2.6-xen root=LABEL=root-ecpmuteu ro xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash --- /boot/initrd-2.6-xen.img
Note: Adjust dom0 Memory Settings:
The dom0_mem=2940M change allocates more memory to dom0, which implies that it can better handle large numbers of virtual machines. After changing this setting and restarting, provide specific instructions to ensure that dom0 consumes all the memory allocated to it.
# vi /boot/extlinux.conf
serial 0 115200
default xe
prompt 1
timeout 50
label xe
# XenServer
kernel mboot.c32
append /boot/xen.gz dom0_mem=2048M,max:2940M watchdog dom0_max_vcpus=4 crashkernel=128M@32M cpuid_mask_xsave_eax=0 console=vga vga=mode-0x0311 --- /boot/vmlinuz-3.10-xen root=LABEL=root-yrmitkif ro hpet=disable xencons=hvc console=hvc0 console=tty0 quiet vga=785 splash --- /boot/initrd-3.10-xen.img
label xe-serial
# XenServer (Serial)
kernel mboot.c32
...
#
# init 6
Check memory after reboot
3.Unable to shutdown VM
======================
Unable to shutdown - dracut loop rm: cannot remove /lib/drauct/hooks/shutdown/30-dm-shutdown.sh: Read-only
Sol:
# vi /etc/dracut.conf.d/shut.conf
omit_dracutmodules+="shutdown"
#
# reboot
4.Xen-In-Xen( Enable VTx for VM inside xenserver)
=============================================
Create New VMs inside XenServer Using "Other Install Media" option which will enable HVM(HardwareVirtualisation)
Then After installing VM shutdown the same and set "exp-nested-hvm=true" for the VM i.e,
Login to XenServer
# xe vm-list
# xe vm-param-list uuid=xxxxxxxxxxxxxxx|grep exp-nested
# xe vm-param-set uuid=xxxxxxxxxxxxxxx platform:exp-nested-hvm=true
Login to VM and run
# egrep -i "vmx|svm" /proc/cpuinfo
Note--Check the Detected N/W interface HWaddr and rectify if N/W problem occures (In Some case The interface eth0 will not appers as defalt use eth1 in that case..)