Skip to main content

Home/ ProGauge SCADA/ Group items tagged xenserver

Rss Feed Group items tagged

Kevin Mershon

Installing XenServer Tools on Ubuntu 10.04 - 0 views

  • Create a VM from the Other install media template
  • Attach the Ubuntu 10.04 ISO to the DVD drive of the VM
  • Start the VM
  • ...19 more annotations...
  • At the disk partitioning stage make sure to replace Ext4 with Ext3, or create a specific boot partition with Ext3
  • Select at least the OpenSSH server package to be able to log in to the VM remotely
  • Finish installation and boot the VM
  • Connect to the VM using SSH
  • sudo cp /etc/init/tty1.conf /etc/init/hvc0.conf sudo vi /etc/init/hvc0.conf
  • Replace all occurrences of tty1 with hvc0
  • Read /boot/grub/grub.cfg
  • Copy the contents of menuentry near the bottom to a temporary text file, to be used as input for the makepv.sh script that we will use later on menuentry 'Ubuntu, with Linux 2.6.32-21-server' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,1)' search --no-floppy --fs-uuid --set 02899ea9-1876-4e7b-8ef8-2b09b598cedb linux /boot/vmlinuz-2.6.32-21-server root=UUID=02899ea9-1876-4e7b-8ef8-2b09b598cedb ro quiet initrd /boot/initrd.img-2.6.32-21-server }
  • Make special note of /boot/vmlinuz…, root=UUID=… and /boot/initrd.img…
  • Shutdown the VM
  • Connect to the XenServer host with SSH
  • Run the makepv.sh script, replacing my-vm-name with the actual name of your VM
  • Boot the VM and log in with SSH
  • In XenCenter, attach xs-tools.iso to the DVD drive of the VM
  • sudo mount /dev/cdrom1 /mnt sudo dpkg -i /mnt/Linux/xe-guest-utilities_5.5.0-466_amd64.deb sudo umount /mnt
  • In XenCenter, detach xs-tools.iso from the DVD drive of the VM (this ensures that XenServer does not complain about too many bootable devices)
  • Reboot the VM and log in with SSH
  • sudo update-rc.d -f xe-linux-distribution remove sudo update-rc.d xe-linux-distribution defaults
  • Reboot the VM for the last time
Kevin Mershon

Tips for XenServer Stability - 0 views

  • There's a timeout parameter used by NTP that if things get out of sync by too much, it won't sync them at all.
  • The default is something low, I think just 128 msec, which is pretty small under some circumstances.
  • edit the /etc/sysconfig/ntpd on the control VM to sync hardware. Default is no. Once done, please cycle ntpd. You will see an extra line for hardware clock. If possible, all VMs and XenServer should use a local physical time server.
    • Kevin Mershon
       
      Changing the system clock settings does not seem to have had any effect on the server's behavior.
  • ...1 more annotation...
  • if you have 4 VCPUs assigned to a guest, the guest would need to wait until 4 cores (physical) are free before it can access the CPU directly
Kevin Mershon

How to fix VM "pending" state on XenServer - 0 views

  • xe task-list to view the Pending tasks
  • xe task-cancel force=true uuid=<UUID> to cancel a specific task
Kevin Mershon

OpenSUSE 11.4 hangs on boot when installed as XenServer guest - 0 views

  • Ok great! I think I have a solution. For me this reduces the bug from 1 in 5 times, to around 1 in 1000. I still see the bug but this helps a bunch: ======== My Almost 100% Solution!! ======== Edit /etc/inittab. Comment out all of the normal tty's (they are unused in PV mode). For example: Code: #1:2345:respawn:/sbin/mingetty --noclear tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6 Near the end of the file, there (may) should be a cons entry. Comment it out as well Code: #cons:12345:respawn:/sbin/smart_agetty -L 42 console add this line to the end of inittab: Code: co:2345:respawn:/sbin/agetty xvc0 9600 vt102 From XenCenter: Right click on the VM, click Startup Options. Replace all the text in OS Boot Parameters with this: Code: xencons=xvc console=xvc0
Kevin Mershon

OpenSUSE 11.4 hangs on boot when installed as XenServer guest - 0 views

  • Edit /etc/inittab. Comment out all of the normal tty's (they are unused in PV mode). For example: Code: #1:2345:respawn:/sbin/mingetty --noclear tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6
  • Near the end of the file, there (may) should be a cons entry. Comment it out as well Code: #cons:12345:respawn:/sbin/smart_agetty -L 42 console
  • add this line to the end of inittab: Code: co:2345:respawn:/sbin/agetty xvc0 9600 vt102
  • ...1 more annotation...
  • From XenCenter: Right click on the VM, click Startup Options. Replace all the text in OS Boot Parameters with this: Code: xencons=xvc console=xvc0
Kevin Mershon

XenServer: HowTo Convert HVM to PV (RHEL/SuSE) - 0 views

  • HVM-boot-policy=BIOS order
  • xe vm-param-set uuid=<vm uuid> PV-bootloader=pygrub
Kevin Mershon

Citrix Forums : Can't adjust VM memory using command ... - 0 views

  • xe vm-memory-limits-set uuid=xxx static-min=137438953472 dynamic-min=137438953472 dynamic-max=137438953472 static-max=137438953472
Kevin Mershon

Disable kernel's irq balance feature - 0 views

  • Add 'noirqbalance' (w/o the quotes) to your kernel cmd-line.
  • kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/241459a4-d4b5-42cf-a30f-4c6bc0120d1d resume=/dev/sda5 ro vga=792 noirqbalance quiet
Kevin Mershon

CentOS how to change hostname? - 0 views

Kevin Mershon

Citrix Forums: Centos 6 - 0 views

  •  
    mount /dev/xvdd /mnt rpm -Uhv /mnt/Linux/xe*x86_64.rpm umount -fl /dev/xvdd
1 - 11 of 11
Showing 20 items per page