Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2404 of /home/aliakuser/aliak.com/includes/menu.inc).

virtualization technology (VT) stuff to remember / forget

virtualization technology (VT) stuff to remember / forget

---------------------------------------------------------------------------------------------------------------------
config # 1

vmware server 2

system configuration
- linux 5.3
- vmware server 2.0.0.0 build 156745 (64 bit)
- vmware ESXi wouldn't install as it appears my (home) motherboard/cpu are not VT compatible
(virtualization technology)
- see hardware compatibility list on ESXi FAQ page
- vmware utils page - check if processor supports VT 64 bit
- installed QNX 6.4.1 RTOS (real time operating system) VM (virtual machine) (32 bit)

:::

vmware server on linux :
vmware server download page
- install the rpm : rpm -ivh /opt/vmware-server/VMware-server-2.0.1-156745.x86_64.rpm
- start scripts are in /etc/init.d - use service vmware status/stop/start/restart to manage
vmware-autostart -> vmware
vmware-core -> vmware
vmware-mgmt -> vmware

- create new disk partition for the VM to use (see below)
- open http://plato:8222 for VMware gui (hostname:vmware port)

add VMware datasource
- create a new datasource & specify new partition /qnx

create new VM / virtual machine
- for qnx VM, see "qnx VM" section below

:::

make a new disk partition for the VM to use
(common for different VT systems (vmware, XEN, redhat KVM)

fdisk /dev/hda
p=print current partition list
n=new - use n to make a new partition
d=delete (if you make a mistake or have to recreate it later)
w=write/save
reboot (works ok if you don't though)

format new partion
mkfs ext2 -j -b 4096 /dev/hda13
- the -j option converts it to an ext3 type not ext2

label partition & add to /etc/fstab for automount
- use e2label to label new partitions so they can be referenced in /etc/fstab (when booting up or using mount -a)
[root@plato ~]# e2label /dev/hda13

[root@plato ~]# e2label /dev/hda12
/usr/local1
[root@plato ~]# e2label /dev/hda13 /qnx
[root@plato ~]# e2label /dev/hda13
/qnx

eg:
[root@plato ~]# cat /etc/fstab
(other partitions removed)
LABEL=/qnx /qnx ext3 defaults 1 2
[root@plato ~]#

mount partition
- mkdir /qnx (to create mount point. only do first time/once)
- manually : mount /dev/hda13 /qnx
- via fstab if label / partition entry has been added to /etc/fstab
-- mount -a (reads /etc/fstab)
-- mount (to check volume mounted ok : eg: /dev/hda13 on /qnx type ext3 (rw) )

:::

qnx VM
- type=Other (32 bit)
- for qnx, select IDE0:0 hdd instead of SCSI (default) otherwise it won't see a drive to install onto
- for qnx, to use photon GUI (X display), login to qnx using terminal mode, then change the /etc/system/config/display.conf file's vmware section pixel_format=rgb565 (via foundry27 page) then ph to start photon (or restart server to confirm it's working)

---------------------------------------------------------------------------------------------------------------------------

config # 2

redhat-xen
ref#1 doc = (Deploying RHEL 5 Virtualization; Vol 1: Single System)
- install rpms as per (ref#1) - section 4 & Appendix B (I installed a fresh linux 5.3 - full version)
- installed Virtualization updates via software package manager & Redhat Network machine packages
- make sure Xen based kernel is running ie

[root@plato ~]# uname -a
Linux plato 2.6.18-164.el5xen #1 SMP Tue Aug 18 15:59:52 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

- follow instructions in section 6 & 6.1 (ref#1)
- setup NFS mount as per Appendix D (ref#1) & select source url=nfs:plato:/opt/redhat_linux53 (nfs:server:/nfs_mount_path)
- copy the linux dvd to /opt/redhat_linux53 (nfs mount point)
- service nfs start (if already stopped)
- chkconfig nfs on (if you want it to start on boot etc)
- vi /etc/exports & add the path & server name & permissions (read only) eg:

    /opt/redhat_linux53 plato.(ro) 

mount nfs paths:

[root@plato ~]# showmount -e
Export list for plato:
[root@plato ~]# exportfs -a
[root@plato ~]# showmount -e
Export list for plato:
/opt/redhat_linux53 plato
[root@plato ~]# 

- start the install of the VM

================================

02/09/2009 : error after creating VM - allocating space. too tired, will check tomorrow :(
I think the volume might be too small...

03/09/2009 : ok it turned out to be not enough memory allocated to the VM. I'd taken the default (512Mb) when setting it up. changing to
current allocation =512Mb
change allocation = 512Mb
max allocation=1024 Mb
server has 4094Mb installed
this redhat knowledgebase page has the explanation and fix
this thread and response also has suggestions

Unable to complete install 'libvirt.libvirtError virDomainCreateLinux() failed POST operation failed: (xend.err 'Error creating domain: The privileged domain did not balloon!')
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 627, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 822, in start_install
    return self._do_install(consolecb, meter, wait)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 843, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib64/python2.4/site-packages/libvirt.py", line 573, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err 'Error creating domain: The privileged domain did not balloon!')
'ble to complete install 'libvirt.libvirtError virDomainCreateLinux() failed POST operation failed: (xend.err 'Error creating domain: The privileged domain did not balloon!')
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 627, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 822, in start_install
    return self._do_install(consolecb, meter, wait)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 843, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib64/python2.4/site-packages/libvirt.py", line 573, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: virDomainCreateLinux() failed POST operation failed: (xend.err 'Error creating domain: The privileged domain did not balloon!')'

:::

xen config file

[root@plato ~]# ll /etc/xen
total 68
drwxr-xr-x 2 root root 4096 May 25 17:57 auto
-rwxr-xr-x 1 root root 156 May 19 2007 qemu-ifup
drwxr-xr-x 2 root root 4096 Sep 2 22:25 scripts
-rw-r--r-- 1 root root 6152 May 25 17:57 xend-config.sxp
-rw-r--r-- 1 root root 1256 May 25 17:57 xend-pci-permissive.sxp
-rw-r--r-- 1 root root 4129 May 25 17:57 xend-pci-quirks.sxp
-rw-r--r-- 1 root root 5463 May 25 17:57 xmexample1
-rw-r--r-- 1 root root 6746 May 25 17:57 xmexample2
-rw-r--r-- 1 root root 7264 May 25 17:57 xmexample.hvm
-rw-r--r-- 1 root root 5315 May 25 17:57 xmexample.vti
-rw------- 1 root root 332 Sep 3 13:18 zeus
[root@plato ~]#

[root@plato ~]# cat /etc/xen/zeus
name = "zeus"
uuid = "3714c6a3-ca28-7822-0c4e-424e2a66cb62"
maxmem = 1024
memory = 512
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ "type=vnc,vncunused=1,keymap=en-us" ]
disk = [ "tap:aio:/zeus/zeus.img,xvda,w" ]
vif = [ "mac=00:16:3e:29:0a:cb,bridge=xenbr0" ]
[root@plato ~]#

[root@plato ~]# ll /zeus/
total 7687512
-rwxr-xr-x 1 root root 7864320000 Sep 3 01:05 zeus.img
[root@plato ~]#

================================

:::

redhat linux links

linux architecture docs - cluster & virtualization :
Deploying RHEL 5 Virtualization; Vol 1: Single System
Deploying RHEL 5 Virtualization; Vol 2: Cluster

Virtualization Guide

Installation Guide

Virtualization Guide

Deployment Guide

Remote libvirt connections

::: location: