Recent Virtual Server 2005 posts* * * * * * * * * * * * * * * * * * * *
|
Add Solution
Latest Topics
Post Reply |
This is Spam! | Mark as Spam
DVD/CD ROM and Secondary SCSI Drive Mappings Incorrect at Start UpSource: microsoft.public.virtualserver Sent: 07/25/2006 From: John D. Message:I'm running Microsoft 2005 Virtual Server R2 with Windows 2003 Server as the
Guest OS. When the guest OS first comes up the, DVD/CD ROM is mapped as the
'D:' drive and the secondary hard disk drive, SCSI attached (virtual SCSI and
virtual hard drive) is mapped as the 'E:' drive. I can manually remap the
drive through the GUI or by using diskpart.exe and a script file, but I'd
like to correct the situation before the system even starts for the first
time. The Virtual Server instance can either be created through the GUI
(browser or client) or I have a script that creates the VS instances. Here
is an excerpt from the script, VBScript, that creates the VS (removed error
checking etc., paths and machine names changed):
strHD1 = "C:\Disk1.vhd"
strHD2 = "C:\Disk2.vhd"
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.CreateVirtualMachine("MACHINE","C:\")
Set objVMSCSI = objVM.AddSCSIController()
Set objVMDVDDrive1 = objVM.AddDVDROMDrive(0,1,0)
Set objVMHardDiskConnection1 = objVM.AddHardDiskConnection(strHD1,1,0,0)
objVMHardDiskConnection2 = objVM.AddHardDiskConnection(strHD2,1,0,1)
Thanks in advance.
Post Reply |
This is Spam! | Mark as Spam
Related Messages
Post Reply |
This is Spam! | Mark as Spam
Other groups
|