vCloud Director 1.5 database creation using Transact-SQL

In the past few weeks I have had to reinstall and clean up the vCloud Director 1.5 database on SQL Server 2008 R2. After a few times doing it using the SQL Server Management Studio GUI, I decided to automated it using four simple Transact-SQL scripts, so it would save me time and make it less error prone, and to better document it. I did modify the Transact-SQL part for the ALTER Database section, and I’m using a Simple Recovery mode for my database.

Create [vcloud] database
USE [master]
GO
CREATE DATABASE [vcloud] on PRIMARY
(NAME = N’vcloud’, FILENAME = N’D:\Microsoft SQL Server\vcloud-director\vcloud.mdf’, SIZE = 1024MB, MAXSIZE = 16384MB, FILEGROWTH = 512MB)
LOG ON
(NAME = N’vcloud_log’, FILENAME = N’D:\Microsoft SQL Server\vcloud-director\vcloud.ldf’, SIZE = 128MB, MAXSIZE = 2048MB, FILEGROWTH = 128MB)
COLLATE Latin1_General_CS_AS
GO

SQL vCD Database – Create vcloud database

Alter [vcloud] Database
This is the step 4 on Page 17 for the vCloud Director 1.5 Installation and Configuration Guide.
VMware Version:
USE [vcloud]
GO
ALTER DATABASE [vcloud] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [vcloud] SET ALLOW_SNAPSHOT_ISOLATION ON;
ALTER DATABASE [vcloud] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT;
ALTER DATABASE [vcloud] SET MULTI_USER;
GO
My modified version with the database in Simple Recovery mode.
USE [vcloud]
GO
ALTER DATABASE [vcloud] SET RECOVERY SIMPLE;
ALTER DATABASE [vcloud] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [vcloud] SET ALLOW_SNAPSHOT_ISOLATION ON;
EXEC sp_addextendedproperty @name = N’ALLOW_SNAPSHOT_ISOLATION’, @value = ‘ON’;
ALTER DATABASE [vcloud] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT;
EXEC sp_addextendedproperty @name = N’READ_COMMITTED_SNAPSHOT’, @value = ‘ON’;
ALTER DATABASE [vcloud] SET MULTI_USER;
GO

SQL vCD Database – Alter vcloud database


Create user vcddb
USE [vcloud]
GO
CREATE LOGIN [vcddb] WITH PASSWORD = ‘PASSWORD’, DEFAULT_DATABASE = [vcloud], DEFAULT_LANGUAGE=[us_english], CHECK_POLICY=OFF
GO
CREATE USER [vcddb] for LOGIN [vcddb]
GO

SQL vCD Database – Creat vcddba account

Modify user to add db_owner Role 
USE [vcloud]
GO
sp_addrolemember [db_owner],[vcddb]
GO
SQL vCD Database - Add db_owner role to vcddba

VMware View 3.1 & VMware View Open Client 3.1

VMware has released VMware View 3.1 on the 27th May 2009 and VMware View Open Client 3.1 on June 5th.

The only part that the open source client is missing is the USB redirection part. This missing USB features will be available for Linux clients only thru the ThinClient images that Third-party will release for their respective ThinClients (like HP for the HP gt7725), but this will not be out immediately.

Hello,

We’ve managed to shake a few more bugs out of the Beta release, which
means it’s time to announce that VMware View Open Client 3.1 is now
ready for general use.

This release includes many small bug fixes, as well as a few new features:

* Smart Card authentication support (see README.txt for details)
* Ctrl-Alt-Del will bring up a dialog letting you disconnect from
hung or unresponsive desktops
* Improved support for multiple monitors (see README.txt for details)
* A few UI improvements
* Internationalization support (using GNU gettext)
* Sound forwarding enabled by default
* Ability to specify more options to pass along to rdesktop
* Support for USB device forwarding (when additional USB software is installed)

Unfortunately, we are not able to open source the USB support, and
therefore cannot host those files on our Google Code site. We are
working on making them available on vmware.com; hopefully they will
make it there some day. In the mean time, we appreciate your
patience.

More information can be found in the README.txt file included in each
downloaded package.

Packages for RPM and Debian-based distributions, as well as binary and
source tarballs, can be downloaded from the Google Code site:

http://code.google.com/p/vmware-view-open-client/downloads/list?q=3.1.0-GA

Please report any issues you find to:

http://code.google.com/p/vmware-view-open-client/issues/list

Thanks and Let’s Go Pens,

Your View Open Client Team

VMware View Open Client 2.1.1 (Test Build 153227) released

The team writing the VMware View Open Client has released a new test version of the 2.1.1 client. This client fixes a few issues about library linking and some other fixes. The team announced that the client should build fine on Linux 64-bit systems as well as Mac OS X platforms.

I can confirm that it runs great on my Fedora 10 (x86-64). I just compiled the source code and connected 10 minutes later to a VirtualMachine running in a VMware View infrastructure on the other side of the world (Asia).

I had to add a single configure switch during my installation.

./configure –with-boost-libdir=/usr/lib64

And that’s all. You can connect to the VMware View Open Client group on Google code to retrieve the latest version.

Cisco, EMC and VMware, a menage a trois ?

This is my own speculation, because I’m not privy to any information from either companies, but only based on blog conjecture and various infos…

Will Cisco buy EMC (who owns a majority of the VMware stock), or will Cisco buy VMware of EMC . With Cisco’s project California (Compute Blades) due to come out shortly, the tension is building up…

EMC must know that VMware is a great financial asset to it’s future, yet EMC might rather sell VMware for a good value rather than taking the risk of being bought itself by Cisco, and so losing it’s independance.

“Specs of the new blades servers that surface on website and blogs: include Intel Core i7 processors, 192GB Memory, PCI Express connectivity (providing access to Cisco Unified Fabric Architecture with direct communication between the blades and the storage servers” Source InternetNews

Running VMware ESX 3.0.1 inside a VMware Workstation 6.0

It is now possible to run VMware ESX 3.0.1 servers inside a VMware Workstation6.0 (Build 45731) if you have specific processors in your system. These processors need to have the new x86 virtualization capabilities (Intel VT or the AMD-V).

The guys are xtravirt.com have written a good starter guide. While they only mentionned how to run it with the Intel VT ( monitor_control.vt32 = TRUE ) flag, you can run them on AMD Opteron (AM2 or Socket F 1207pin). You need to use the monitor_control.svm_enable = TRUE. Thanks to the monitor_control.svn_enable switch, the virtual ESX 3.0.1 server will boot and be ready within 90 seconds.

Here is a sample esx-01.vmx file that I’m using on my AMD Opteron workstation (HP xw9400 Workstation). Notice the ethernet device used (e1000), the number of vcpu (2), and the monitor_control switches.

esx-01.vmx

annotation = "esx-02.vi3.local|0A|0AVMware ESX 3.0.1 Build 39823|0A|0AvSwitch0 - Service Console|0AvSwitch1 - VM Network|0AvSwitch2 - VMotion|0A"
<span lang="EN-GB">config.version = “8″
deploymentPlatform = “windows”
displayName = “esx-02 (VMware ESX 3.0.1)”
ethernet0.addressType = “generated”
ethernet0.connectionType = “bridged”
ethernet0.present = “TRUE”
ethernet0.virtualDev = “e1000″
ethernet0.wakeOnPcktRcv = “FALSE”
ethernet1.addressType = “generated”
ethernet1.connectionType = “bridged”
ethernet1.present = “TRUE”
ethernet1.virtualDev = “e1000″
ethernet2.addressType = “generated”
ethernet2.connectionType = “bridged”
ethernet2.present = “TRUE”
ethernet2.virtualDev = “e1000″
floppy0.fileName = “/dev/fd0″
floppy0.startConnected = “FALSE”
guestOS = “other-64″
ide1:0.deviceType = “cdrom-raw”
ide1:0.fileName = “/dev/hdc”
ide1:0.present = “TRUE”
isolation.tools.hgfs.disable = “TRUE”</span>
<span lang="EN-GB">isolation.tools.getPtrLocation.disable = “TRUE”
isolation.tools.setPtrLocation.disable = “TRUE”
MemAllowAutoScaleDown = “FALSE”
memsize = “1024″
monitor_control.enable_svm = TRUE
monitor_control.restrict_backdoor = TRUE
#monitor_control.vt32 = TRUE
numvcpus = “2″
nvram = “esx-02.nvram”
RemoteDisplay.vnc.port = “0″
scsi0:0.fileName = “esx-02.vmdk”
scsi0:0.present = “TRUE”
scsi0.present = “TRUE”
scsi0.virtualDev = “lsilogic”
svga.vramSize = “16708800″
tools.upgrade.policy = “useGlobal”
</span>virtualHW.productCompatibility = “esx”
virtualHW.version = “4″

Two entries in the VMware Community forum cover this topic. “Ability to run ESX as a Workstation guestand “How to install ESX3 on Workstation 6 – Whitepaper!

Enabling Virtual Machine Interface (VMI) in VMware Workstation 6.0 & Ubuntu 7.04 (i386)

The Virtual Machine Interface (VMI) that is provided in the VMware Workstation 6.0 work currently only with the Ubuntu Feisty Fawn 7.04 distro. But it requires the i386 version, not the x86-64. To check if you’re kernel has VMI paravirtual kernel support enabled, you can check the kernel compile config.
Code:

# grep VMI /boot/config-2.6.20-15-server

CONFIG_VMI=y

There isn’t much showing inside the virtual machine when it’s running with the paravirtual kernel support. The only quick way I’ve found so far, is to check the APIC timer interrupt. In the Virtual Machine Interface (VMI) enabled machine you have to check the following

Code:

# grep VMI /proc/interrupts

0   74    IO-APIC-Edge            VMI-alarm

The normal APIC timer function has been replaced by a VMI-alarm function.

It goes without saying that you need to activate the VMI paravirtual kernel support in the config of the virtual machine in the Options/Advanced section.

VMware Workstation 6.0 for Linux

VMware LogoVMware has released VMware Workstation 6.0 yesterday. It is the sixth generation of the Workstation virtualization product. This version brings enhancements on the virtual devices and connectivity for the virtual machines (USB 2.0 support, more network cards, multiple-display). Seemlessly run both 32bit environments and 64bit (x86-64) on the same host. Supports running virtual machines in the background with headless operations. Enhanced support for developpers.

Up to this point nothing earthshattering right. Well two new features that VMware Workstation 6.0 brings to virtualization are :

  • Virtual Machine Interface (VMI) support (experimental): VMware Workstation 6.0 is the first virtualization platform to allow execution of paravirtualized guest operating systems that implement the VMI interface. Please note that VMI configuration is only available in i386 kernels for the moment. x86-64 will come.
  • Continuous virtual machine record and replay (experimental): Users can record the execution of a virtual machine, including all inputs, outputs and decisions made along the way. On demand, the user can go “back in time” to the start of the recording and replay execution, guaranteeing that the virtual machine will perform exactly the same operations every time and ensuring bugs can be reproduced and resolved.

Having taken part of the two beta releases and the release candidate of the Workstation 6.0 product, I immediately upgraded my Workstation 5.0 for Linux license to the new version last night. This is an amazing product !!!

Cloning Servers in VMware

On Thu, 10 Jul 2003 16:29:18 -0500, “Rob” <m@me.com> wrote:
>I am wanting to create 5-6 virtual servers running Windows 2000. Is there an easy way to set up and configure one and then clone it?

Create one good Windows 2000 template (called a Gold Master at VMware)with all the drivers, tools and utilities (winzip,acrobat,newsid) and patches (sp4, WindowsUpdate), but do not include it in a domain.Then you simply copy your Gold Master to another directory, start that system, newsid it, and then only insert it into your target domain.I always keep an updated copy my Gold Master around, so I can get a new server up and running in just the timeframe of copying one directory to another.

show original

Airsnort & VMware

On Fri, 18 Apr 2003 20:13:22 +0900, “nightmare” <nightm@hotmail.com> wrote:

>How can I setup airsnort with a wireless card ( orinoco ) on linux under vmware? (windows XP : host operating system Redhat Linux 7.3 : guest operating system)

 

It’s going to be difficult as VMware does not pass PCMCIA Devices over to the Guest VM machines (unless this is now supported in VMware WS 4 which I haven’t tested). Your only luck would be to have the Orinoco Wireless card on the PCI bus…

show original