SlideShare une entreprise Scribd logo
1  sur  78
WIN388
Using Virtual PC 2004:
Tips and Tricks

Ronald Beekelaar
Beekelaar Consultancy
About the speaker

    Consultant and trainer from The Netherlands
       MVP - Virtual PC
    Using Microsoft Virtual PC 2004
       For demos, presentations and courseware
       For hands-on labs at conferences
           Several security labs / XP SP2 labs
       For classes, studying and testing
    Contact:
       E-mail: ronald@beekelaar.com
Agenda
Topics
     How does Virtual PC work
         Architecture
         Networking
         Disks
         Hands-on labs at TechEd 2004 Amsterdam
     Tips
         Tips to optimize disk space
         Tips to optimize performance
         Tips for building VMs
         Tips for deploying VMs
Agenda
Not so topics

  Not in presentation
     Microsoft Virtual Server 2005
     Comparison with other products
        Such as: VMware Workstation
     Upgrading from Virtual PC 5.2
Agenda
Presentation disclaimer
     Disclaimer
        Many tips are undocumented or unsupported
        Many examples are unsupported
        by Microsoft Product Support Services (PSS)
            Such as: running Win2003 in Virtual PC
        Not necessarily "best" practices
            Mostly things I use myself
     EULA
        Always need to follow product activation rules
        Always need to adhere to product licensing rule
About virtual machines (VM)

 Software running on Windows (host)
 to create virtual computers
    Allows multiple operating systems and their
    applications to run in transportable virtual
    machines
    Each virtual machine (guest)
    is equivalent to a PC and
    a list of hardware devices
    Terms used:
    vm = virtual pc = image
How does Virtual PC work
Overview
    PC hardware emulation in a window
       Change configuration through GUI
       Configuration stored in .vmc file (XML)
       and options.xml file
        <hardware>
           <memory>
              <ram_size type="integer">256</ram_size>
           </memory>
           ...
           <pci_bus>
              <ethernet_adapter>
                 <controller_count type="integer">2</controller_count>
              </ethernet_adapter>
           </pci_bus>
        </hardware>


    Guest OS doesn't "know"
       Only need to install VM Additions in guest
How does Virtual PC work
Hardware components
    BIOS
       AMI (plus APM 1.2 and ACPI)
    Network adapter
            DEC / Intel 21140 Based PCI Faster Ethernet
              Supported by the RIS rbfg.exe disk
    Sound
       Creative Labs Sound Blaster 16
    Memory
       Max 3.6 GB
    CPU
       Sees only one processor
How does Virtual PC work
Architecture

  Virtual
    Virtual PC application on top of host OS
    Access
      CPU and memory directly
      Rest through host OS drivers
            VM port        host port
            VM SB16        host sound driver
            ...
            VM diskette    host diskette or .vfd file on host (1.44 MB)
            VM CD-rom      host CD-rom or .iso file on host
            VM disk        .vhd file on host
            VM network     host network or between VMs
How does Virtual PC work
Architecture
                                                              config in
                                                              vmc-file
                                         Sound

                                        Diskette

                    CPU Mem Disk        CD/DVD

                                        Network

                                   Ports USB




   Software   Virtual PC

                           VMM   VPC     host      VPC    host host host
                                        driver           driver driver driver


   Hardware

                                                                         .vfd
              CPU0 CPU1
                                 Disk                             .iso
                                 file
How does Virtual PC work
Virtual Machine Additions

  Provides:
    Performance improvements
         CPU - at 96-97% of host
         Network - at 70-90% of host
         Disk - at 40-70% of host
    Arbitrary screen resizing
    "Back-doors"
      Time sync
      Clipboard sync
      Shared folders
      Drag-n-drop
How does Virtual PC work
"Back doors"


                                     Z:




                           VM Additions




   Software   Virtual PC

                           Virtual pc.exe


   Hardware


                     Time  Clip D:data %temp%    Drag
                     sync board                  & drop
How does Virtual PC work
Virtual Machine Additions

  When is VM Additions working
    At startup, look at icon


    Start (or restart) service if needed


    Look at
    Action/Properties/Advanced
How does Virtual PC work
Special keys

  Host-key + any
     Default host-key is <right>Alt
            <right>Alt-Del        = Send Ctrl-Alt-Del
            <right>Alt-Enter      = Full screen
            <right>Alt-← →        = Prev / next VM
            <right>Alt key        = Uncapture mouse


        Tip: After using <right>Alt-Enter (full-screen)
        multiple times, the keyboard may no longer
        respond
            To resolve: press Ctrl key twice
Networking
Overview

  Uses a virtual switch
  and virtual network adapters (max 4)
  and virtual "virtual machines"

  Three configurations (per adapter)
     Shared Networking (NAT)
     Connect to host adapter
     Local only
Networking
 Three configurations
                Shared                           Connect to                          Local
              networking                          adapter                            only
    .1-.253     (NAT)                 10.1.2.7                        10.4.1.1

                DHCP/NAT                             Other VM                        Other VM
                                             local                           local

                  .254                               10.1.2.6                        10.4.1.2
                Virtual PC.exe      host
                                                       10.1.2.6
                   10.1.2.4       10.1.2.4           10.1.2.4                          10.1.2.4
                                             external
                                                     10.1.2.7



C:> ipconfig /all               C:> ipconfig /all               C:> ipconfig /all

IP Configuration                 IP Configuration                 IP Configuration
 MAC Address : 00-03-             MAC Address : 00-03-             MAC Address : 00-03-
FF-...                           FF-...                           FF-...
 IP Address :                     IP Address : 10.1.2.7            IP Address : 10.4.1.1
192.168.131.65                    Subnet Mask :                    Subnet Mask :
 Subnet Mask :                   255.255.255.0                    255.255.255.0
255.255.255.0                     Gateway      : 10.1.2.1          Gateway      : -
 Gateway      :                   DHCP Server : 10.1.2.30          DHCP Server : -
192.168.131.254                   DNS Server :                     DNS Server : -
 DHCP Server :                   10.6.180.53                       Lease        : -
192.168.131.254                   Lease        : 7 days
Networking
Additional information
     Shared networking (NAT)
            DNS address is copied from host computer
            Default gateway is 192.168.131.254
            Multiple VMs using NAT on some host computer cannot
            communicate
     To create seperate networks with multiple
     VMs:
          1 Install Microsoft Loopback Adapter(s)
          2 Ensure Virtual Machine Network Services is enabled
          3 Connect VM to Loopback adapter
Disks
Overview

  Hard disks
     IDE (max 3x) - no SCSI
     Types
        Virtual disk (dynamically expanding)
            Stored in .vhd file on host
        Fixed size disk
        Differencing disk
            Stores changes from .vhd
        Linked to hard disk
Virtual Disks
Disk files

  VM disks stored in files on host
      "Normal" disk     .vhd
      Differencing disk .vhd          (.vhdd)
      Undo disk         .vud
      Saved state file .vsv

      Note: I added custom elements,
      which are not in Virtual PC
         Pie chart icons are custom
         .vhdd extension is custom
Virtual Disks
File locations
      .vhd disk file
             In folder you specify
             in settings
      .vhdd disk file
             In folder you specify
             in settings
      .vud disk file
             In vmc-file folder


      .vsv disk file
             In vmc-file folder
Disks
Topics
     Undo disks
     Three disk modes
         Persistent / undo-ask / undo-always
     Saved state
     Differencing disks
         Several uses:
            Save disk space / Quick testing /
            Phased distribution / Sequential delta VMs
     Repeatable Restore
         At Tech-Ed 2004 Amsterdam hands-on labs
Disks
Undo disks

  Disks images can be made undoable
     Specify folder to store undoable file per VM
        Stored in .vuh files     (    )
        All "writes" are done to .vuh file, not to .vhd file


     Setting for all disks in a VM
Disks
  Three disk modes
                    Start up   Running                           Close              Running

             VM
Persistent
             host

                                         1-Save state

                                         2-Turn off and save/Commit

Undo-Ask                                 2-Turn off and save             Start up


                                         3-Turn off and delete



Undo-Always


       = .vhd file
       = .vsv file
       = .vud file
Disks
Commit hard drive changes


  Commit
    means:
  Merge vuh undo file with vhd file
Disks
Saved state

  Store current "state" of running VM in a file,
  and close VM window
          Goal: to continue later at this exact spot
          Stored in .vsv files     (    )


  Contains current memory and window
  settings   Running Saved Restore (= Start up)


      Memory contents
      Window settings
Disks
Differencing disks

  Write changes not to main vhd disk,
  but to other disk file
     Create a new difference disk
     in Virtual Disk Wizard
        Plus point to parent vhd disk
        Stored in .vhdd files    (    )
     Is actually the same as an .vuh undo disk


     Creates delta VMs
            Delta VMs is not an official term,
            I made it up
Disks
How differencing disks works




      Virtual PC




     Read          Write       Create         Delete


                           3      1 2 3 4
                                                             Grow
                                 File-c.doc     File-d.doc

        1 2 3 4     1 2 3 4                      1 2 3 4            Read only

      File-a.doc File-b.doc                     File-d.doc
Differencing Disks
Tips

  Never change the parent vhd disk.
  It will break all delta VMs!
       Make the parent vhd disk read-only


  When creating multiple delta VMs,
  make sure they are "unique"
          Computer name (rename)
          Computer SID (Sysprep or other SID tool)
          IP address (DHCP)
          MAC address (automatic)
The case for differencing disks
Overview

  Differencing disks have many purposes
   1 Smaller size on host
        Miami.vhdd.zip: 12 MB
   2 Quick testing
   3 Phased distribution
        Only offer delta VM for download
   4 Sequential delta VMs
        Fool proof demo or lab modules
The case for differencing disks
1- Smaller size on host

  Use less space on host
        Miami.vhdd: 410 MB



        Works well with
        NTFS compression: 26 MB

        Works excellent with
        ZIP: 12 MB
The case for differencing disks
2 - Quick testing

  Quickly create temporary VMs
  Steps
       1 Create difference disk for existing vhd file
       2 Start up VM using the new vhdd file
       3 (Test, test, test...)
       4 Shut down VM
             Keep vhdd file for later, or delete now
      Costs less mental concentration
      than using Undo-Ask
The case for differencing disks
3 - Phased distribution

  Only offer delta VMs for download
  Steps
       1 Provide one or more "perfect" Windows XP or
         Windows Server 2003 master VMs
       2 Offer delta VMs for download
         that use the master VMs
       3 'Relink' the delta VMs
         to the parent (master) VM
The case for differencing disks
4 - Sequential delta VMs

  Fool proof demo or lab modules
  Use a separate (growing) delta VM to start
  each demo or lab module
     Demo
        Use for series of 'fool proof' demo steps
     Lab
        Use to continue course at any lab
        Use for 'student proof' lab configuration
The case for differencing disks
4 - Sequential delta VMs
                               Lab module 1

  Steps                       Lab module 2a


   1 Create difference disk     Lab module 2b

                                 Lab module 3
   2 Start up on VM              Lab module 4

     3 Do next demo or lab       Lab module 5


     4 Shut down VM
     5 Copy and rename difference disk
     6 Go to step 2
   7 For each diffence disk, create a separate VM
     Demo or lab can now be started from
     any module, or completed sequentially
Tech-Ed 2004 Amsterdam
Self-paced hands-on labs - Setup
     Host computers
        2 GB memory
        171 labs on 270 host computers
     Two user accounts:
        Admin - full administrative access
        HOL User - locked down user
              Windows XP SP2 and Virtual PC 2004 lock down
     Set up
        Use Admin account to deploy VMs for HOL User
              Register VMs
              Set options in Options.xml
Tech-Ed 2004 Amsterdam
Self-paced hands-on labs - Lab Menu

  Lab Menu
     List each lab
     on host computer
     Start multiple VMs
     - in order
     - with delays in between
     Use Repeatable Restore
        To avoid long VM boot times
        To avoid password confusion
Repeatable Restore
General
     Always restore at same point (saved state)
          Not a feature of Virtual PC 2004
     But can be done:
          Copy the same initial save state files before each
          startup
          Virtual PC deletes save state files are startup
Repeatable Restore
Setup

  Setup
   1 Enable Undo disk
   2 Start VM
   3 Configure desired state (log on, etc)
   4 Close VM and Save State
   5 Disable Close dialog box
Repeatable Restore
Use

 Use
      1 Start VM by using script
         Make copy of initial save state files
         Start VM
             Brings up VM in a few seconds
             Which removes one copy of save state files
      2 Use started VM
      3 Close VM
         No Close dialog box displayed
Tips
Topics
       Tips to optimize disk space
       Tips to optimize performance
       Tips for building VMs
       Tips for deploying VMs
       Tips for troubleshooting
Tips to optimize disk space
Overview

  Best tip: Understand disks
  Four relevant sizes:
   a. In VM: maximum disk capacity
         Not so relevant to optimizing disk space
   b. In VM: used disk size
         Stored in vhd-file
   c. On host: current size of vhd-file
         Contains b. + contains deleted files
   d. On network: size of zipped vhd-file
         Based on "patterns" in vhd-file
Tips to optimize disk space
a. In VM: maximum disk capacity

  You cannot enlarge the maximum disk
  capacity of a vhd-file
  Just pick a large size up to 16 GB
     I always pick 4000 MB
Tips to optimize disk space
b. In VM: used disk size

  Delete files that are not used:
     Files left over from installation
     Files only needed during installation
     Files that are always created anew at startup
     or when needed
     Files that are "cache" representations
     Files that are backup copies
     Files that are not applicable in the VM
Tips to optimize disk space
Delete files and folders

  Not needed
      Empty dllcache folder (-400 MB)
         run sfc.exe /cachesize=1
         restart guest (if needed)
         run sfc.exe /purgecache
      Empty ServicePackFilesi386 folder
      and $NtServicePackUninstall$ folder
         from windows (-280 / - 250 MB)
      Delete drivers.cab / SPx.cab
         from windowsDriver Cachei386 (-60 MB)
Tips to optimize disk space
Delete files and folders

  Left over from installation
      Virtual Machine additions
         del windowsinstallernnnnn.msi (-14 MB)
         Ensure you delete the correct msi-file
      Exchange 2003
         rd /s %temp%SITnnn folder 3x (-53 MB)
         del c:Exchange Server Progress Log (-2 MB)
      NewSID 4.03
         rd /s windowssystem32configNewsid Backup
         (-13 MB)
Tips to optimize disk space
Delete files and folders

  Rebuilt when needed
      rd /s windowssystem32wbemAutoRecover
      (-7 MB)
      del windowsinf*.pnf (-25 MB)
      del windowsinfinfcache.1 (-1 MB)
      del windowsprefetch*.* (-5 MB)
  Note - why not to do this:
      This may cost performance
      These files may be stored in each difference
      disk, when deleted from parent disk
Tips to optimize disk space
c. On host: current size of vhd-file

  Sparse-file
      Starts with size "0"
      Writes in 2 MB blocks
  Zero-filled files do not use space
      Examples
         res1.dat, res2.dat (10 MB each)
         pagefile.sys (hundreds MB)
      So don't worry about a large paging file
Tips to optimize disk space
Writing zero-filled files




       Virtual PC




      Write         Write                           Read
                          000 000       000            000 000
                          000 000       000            000 000
        1 2 3 4       1 2 3 4 5
                          000 000       000            1112
                                                       000 000
                          000 000       000
                                              ...      000 000




        1 2 3 4       1             4

       File-a.doc                       Pagefile.sys
Tips to optimize disk space
How to create an empty paging file
   1 Use Control Panel/System to configure no
     paging file
   2 Restart the VM
        Existing pagefile.sys is deleted
   3 Use Control Panel/System to configure a
     "normal" paging file
        New pagefile.sys is completely empty (almost)


     Tip: develop VM with high RAM setting
     (512 MB+) to minimize pagefile.sys usage
Tips to optimize disk space
c. On host: current size of vhd-file

  Deleted files do still use space
      To solve:
         Create and delete a zero-filled file that overwrites
         all the previously deleted space ("clean-up")
         Move all the non-zero blocks ("compact")
      Can use the Precompact.iso tool
Tips to optimize disk space
Steps - clean up and compact
  1 Start up without Undo disks
  In VM - clean up:
  2 Defragment disk
      Possibly defragment twice
  3 Zero-fill all unallocated sectors
      Use Precompact.iso
         With Virtual PC 2004 SP1
  4 Shut down VM
Tips to optimize disk space
Steps - clean up and compact

  On host - compact:
  5 Use Virtual Disk Wizard to compact
    the disk image file



    Check disk size and
    NTFS compressed
    disk size to estimate
    "space" in vhd-file
Tips to optimize disk space
d. On network: size of zipped vhd-file

  Delete files that are "compressed"
     intro.wmv, title.wma
        from windowssystem32oobeimages (-4 MB)
     msgr3en.dll, nls302en.lex
        from windowssrchasst (-8 MB)
     XP: music.wma
        from Documents and SettingsAll Users
        DocumentsMy Music (-4 MB)
     XP: windowshelptour folder (-27 MB)
        Will give Windows File Protection (WFP) message
Tips to optimize disk space
d. On network: size of zipped vhd-file

  Do not do:
     zip files inside VM !
        This makes the vhd-file 25% smaller,
        but the resulting zipped vhd-file (zip of zip) is
        much larger
Tips to optimize disk space
General tips

  Remember
         In a sparse vhd file, every "write" to a new location
         costs 2 MB
         Files with only zeros are "free"
  Tips
         Develop VM with lots of RAM to keep
         pagefile.sys unused (is only zeros)
         Do not use or disable "smart" disk activities
            Dynamic disks (Win2000+)
            System Restore (Win XP)
            Shadow Copies (Win2003)
Tips to optimize disk space
Example - steps at guest

  After installation OS+SPs             1408 MB
      Example is Win2000 Server
    Empty dllcache folder                -250 MB
      run sfc.exe /cachesize=1
      restart guest (if needed)
      run sfc.exe /purgecache
    Empty ServicePackFiles folder        -196 MB
      from %windir%
    Delete drivers.cab / SPx.cab          -55 MB
      from %windir%Driver Cachei386
    Empty %temp% folder                   -14 MB
Tips to optimize disk space
Example - steps at guest
    Turn off XP System Restore                    -150 MB
      Control Panel/System/System Restore
      Especially important to prevent disk growth later (!)
         In hidden, forbidden System Volume Information folder
    Defragment disk (in guest)                   (prepare)
      Allows much better shrinking in next step
    Compact disk (on host)                        (reclaim)
      Use Virtual Disk Wizard
      Reclaims zero space                            - 10 %
  Subtotal (after guest steps)                    473 MB
Tips to optimize disk space
Example - steps at host
 Subtotal (after guest steps)               473 MB
 At host
   NTFS compress vhd file                    - 43 %
     No performance hit at guest measured



 Total (after host steps)                   269 MB
   Original footprint was               1408 MB
Tips to optimize disk space
Offline storage of VM disks

  Zip vhd file for storage               - 60%
    Subtotal (after guest steps)         473 MB
    Total (zip-file size)                185 MB


    On one CD-ROM:
      Easily fits multiple zipped VMs
      Especially if delta VMs are used
Tips to optimize performance
Number 1 tip
     Number 1 tip: Install Virtual Machine Additions
     Another number 1 tip:
        Run on a fast host disk - greatest bottleneck
        Do not run from network
            or redirected My Documents
     And another number 1 tip:
        Enable run at maximum speed
Tips to optimize performance
Other tips on host
     Defragment host disk
     Assign lots of memory to VM
     On notebook: NTFS compress disk files
        CPU is "faster" than disk access
     Exempt from anti-virus checking
        Virtual PC.exe or vhd (vhdd)/vud/vsv extensions
Tips to optimize performance
Windows Server 2003 guests
     Set display hardware acceleration to Full !
        Default is lower setting
            Causes slow mouse and display
        At Control Panel/Display/
        Settings tab/Advanced/
        Troubleshooting




     Note: Leave the Visual Effects enabled
        They hardly effect overall performance
Tips to optimize performance
Windows Server 2003 guests
     Set DVD ATAPI device to PIO Only mode
        Initial DMA mode causes 10 second delay when
        opening My Computer
           Switches to PIO Only mode automatically after 6x
           delay, but use of Undo disks may prevent this
           See Microsoft KB 817472
        At Device Manager/
        IDE ATA-ATAPI controllers/
        Secondary IDE Channel/
        Advanced Settings/Device 0
Tips for building VMs
General tips
     Always configure Virtual PC to run at
     maximum speed
        Install OS in 40 minutes, versus 8 hours
     Use bootable ISO CD-image to install OS
          1 Start VM
          2 Use Action/Pause to pause VM
          3 Use CD/Capture ISO image to use ISO file
          4 Use Action/Reset to boot from CD
     Always install Virtual Machine Additions after
     installation of OS
Tips for building VMs
Customize environment
     Add verbs to .vmc extension
        Edit - Notepad.exe "%1"
        Register - Virtual PC.exe -registervm "%1"
            Open (Virtual PC.exe -startvm "%1") already exists


     Add shortcut
        Notepad.exe options.xml
Tips for building VMs
Install sound in Win2003 VM
    Virtual PC Sound Blaster 16 is not supported by
    Windows Server 2003 anymore
     1 Copy wdma_ctl.inf and ctlsb16.sys
       from Windows XP to a folder
     2 In device manager,
       select Sound Blaster 16
       and click Update Driver
     3 Browse to the folder,
       and install driver
Tips for building VMs
Copy files to VMs

  Several methods:
    Use Shared Folders (drag folder to icon)
      Files at z: in VM - I only use this
    Use drag-n-drop from host to VM
      Files at desktop or folder in VM
    Burn quick ISO image (drag iso-file to icon)
      Files at d: (CD-ROM) in VM
    Use networking (drive mapping)
      Need network configuration
      Cannot use Local Only networking
Tips for building VMs
Security
    Use Local Only networking to avoid any contact
    with outside network
    Patch VMs as if they are real machines on the
    network
    ICF / Windows Firewall does not protect
    Use NAT to have                    Connect to
                                        adapter
    protected access          10.1.2.7

                                              Other VM
                                      local

                                              10.1.2.6
                             host
                                                10.1.2.6
                           10.1.2.4           10.1.2.4     ICF
                                      external
                                              10.1.2.7
Tips for building VMs
Multiple VMs - difference disks

  Unique per VM
      Computer name : rename computer
      Computer SID  : run Sysprep or SID changers
         I use Sysinternal's Newsid v4.03
      IP address         : manually or use DHCP
      MAC address        : automatically different
Tips for building VMs
Multiple VMs - undo disks

  Careful with product activation
  Disable computer domain password change
    At VM - DC
    # Key: hklmsccssNetlogonParameters
        RefusePasswordChange = 1 (reg_dword)    # DC never accepts pw
    change
    or at VM - member computer
    # Key: hklmsccssNetlogonParameters
        DisablePasswordChange = 1 (reg_dword)   # Computer never changes pw


  Active Directory replication
       if multiple DCs and undoable,
       do not shut down and start up only one
       Restart VM is okay - does not "undo" changes
Tips for building VMs
Multiple VMs - time sync

  VPC Additions syncs time with host
    Does NOT take the time zone in account
      Only syncs the "system tray" time


    Ensure that all VMs use the same
    time zone in a domain scenario
Tips for building VMs
Multiple VMs - avoid confusion

  For lab
     Use background colors
     Use topology graphics



     Always use Undo-Always
Tips for building VMs
Cleanup

  Do not use Start/Run, but use cmd.exe to
  start other programs while building
    Keeps Run dialog list empty
  Empty Recycle Bin
    May even remove from desktop
  Clean up Start Menu
  Disable screen saver
Tips for deploying VMs
Installing VMs
    Installing Virtual PC interrupts network
    connection to host
      Unattended install possible (see online help)
    Register VMs by creating shortcuts to vmc-files
      In folder
      C:Documents and Settings<user>Application Data
      MicrosoftVirtual PCVirtual Machines

      For other user as well
      Shortcuts are case-sensitive (!)
          .vmc-extension has to be lowercase ?
      Note: Options.xml file is at
      C:Documents and Settings<user>Application Data
      MicrosoftVirtual PCOptions.xml
Tips for deploying VMs
Configure VMs

  Options.xml
    "Hide" Virtual PC console by moving off-screen
     # Options.xml
     /preferences/window/console/left_position = 4000

       Closing Virtual PC console, closes all running VMs


  file.vmc (per VM)
    Disable VM window Close button
    # Sydney.vmc
    /preferences/command_line/override/disable_close = true

       Use Action/Close to close VM window instead
Tips for deploying VMs
How to restrict use

  Restrict use for lab users
      Set VM BIOS password
           At startup, press Del to enter AMI BIOS
      Set permissions on files and folders
      Disable parts of user interface




    # Registry
    hklmSoftwareMicrosoftVirtual PC5.0SecurityLocks = 0x02B (dword)
Tips for deploying VMs
Multiple VMs - start up

  When using a script to start multiple VMs:
         Use delays in between to avoid too much
         concurrent host disk activity

    VM                       VM

    VM                       VM

    Host                     Host
Useful links

  Drivers
    DOS network adapter driver (dc21x4.dos)
    http://developer.intel.com/design/network
      /drivers/sla_ndis2.htm

  Tools
    Precompact.iso - zero fills unallocated sectors
    http://go.microsoft.com/?linkid=2615769
    (with Virtual PC SP1)


    Newsid.exe - assigns random SID to (delta) VM
    http://www.sysinternals.com/ntw2k/source/newsid.shtml

Contenu connexe

Tendances

Kvm virtualization in_rhel_7
Kvm virtualization in_rhel_7Kvm virtualization in_rhel_7
Kvm virtualization in_rhel_7Urgen Sherpa
 
RunX: deploy real-time OSes as containers at the edge
RunX: deploy real-time OSes as containers at the edgeRunX: deploy real-time OSes as containers at the edge
RunX: deploy real-time OSes as containers at the edgeStefano Stabellini
 
LCA13: Xen on ARM
LCA13: Xen on ARMLCA13: Xen on ARM
LCA13: Xen on ARMLinaro
 
Qemu device prototyping
Qemu device prototypingQemu device prototyping
Qemu device prototypingYan Vugenfirer
 
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, IntelXPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, IntelThe Linux Foundation
 
Realtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKTRealtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKTThe Linux Foundation
 
QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?Pradeep Kumar
 
kexec / kdump implementation in Linux Kernel and Xen hypervisor
kexec / kdump implementation in Linux Kernel and Xen hypervisorkexec / kdump implementation in Linux Kernel and Xen hypervisor
kexec / kdump implementation in Linux Kernel and Xen hypervisorThe Linux Foundation
 
Dom0less - Xen Developer Summit 2019
Dom0less  - Xen Developer Summit 2019Dom0less  - Xen Developer Summit 2019
Dom0less - Xen Developer Summit 2019Stefano Stabellini
 
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...The Linux Foundation
 
PV-Drivers for SeaBIOS using Upstream Qemu
PV-Drivers for SeaBIOS using Upstream QemuPV-Drivers for SeaBIOS using Upstream Qemu
PV-Drivers for SeaBIOS using Upstream QemuThe Linux Foundation
 
Mobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen TechnologiesMobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen TechnologiesThe Linux Foundation
 
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...Circling Cycle
 
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicHP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicCircling Cycle
 

Tendances (20)

Kvm virtualization in_rhel_7
Kvm virtualization in_rhel_7Kvm virtualization in_rhel_7
Kvm virtualization in_rhel_7
 
RunX: deploy real-time OSes as containers at the edge
RunX: deploy real-time OSes as containers at the edgeRunX: deploy real-time OSes as containers at the edge
RunX: deploy real-time OSes as containers at the edge
 
Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008
 
LCA13: Xen on ARM
LCA13: Xen on ARMLCA13: Xen on ARM
LCA13: Xen on ARM
 
Xen Hypervisor
Xen HypervisorXen Hypervisor
Xen Hypervisor
 
Qemu device prototyping
Qemu device prototypingQemu device prototyping
Qemu device prototyping
 
Xen time machine
Xen time machineXen time machine
Xen time machine
 
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, IntelXPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
XPDS13: HVM Dom0 - Any unmodified OS as Dom0 - Will Auld, Intel
 
RunningFreeBSDonLinuxKVM
RunningFreeBSDonLinuxKVMRunningFreeBSDonLinuxKVM
RunningFreeBSDonLinuxKVM
 
Xen RAS Status and Progress
Xen RAS Status and ProgressXen RAS Status and Progress
Xen RAS Status and Progress
 
Realtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKTRealtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKT
 
QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?
 
kexec / kdump implementation in Linux Kernel and Xen hypervisor
kexec / kdump implementation in Linux Kernel and Xen hypervisorkexec / kdump implementation in Linux Kernel and Xen hypervisor
kexec / kdump implementation in Linux Kernel and Xen hypervisor
 
Dom0less - Xen Developer Summit 2019
Dom0less  - Xen Developer Summit 2019Dom0less  - Xen Developer Summit 2019
Dom0less - Xen Developer Summit 2019
 
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...XPDDS18: LCC18:  Xen Project: After 15 years, What's Next? - George Dunlap, C...
XPDDS18: LCC18: Xen Project: After 15 years, What's Next? - George Dunlap, C...
 
XS Boston 2008 Memory Overcommit
XS Boston 2008 Memory OvercommitXS Boston 2008 Memory Overcommit
XS Boston 2008 Memory Overcommit
 
PV-Drivers for SeaBIOS using Upstream Qemu
PV-Drivers for SeaBIOS using Upstream QemuPV-Drivers for SeaBIOS using Upstream Qemu
PV-Drivers for SeaBIOS using Upstream Qemu
 
Mobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen TechnologiesMobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen Technologies
 
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases by Dusan Bal...
 
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicHP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
 

En vedette

Vmwarepresentation1207005
Vmwarepresentation1207005Vmwarepresentation1207005
Vmwarepresentation1207005chinitooo
 
Vmwarepresentation1207005
Vmwarepresentation1207005Vmwarepresentation1207005
Vmwarepresentation1207005chinitooo
 
Vmwarepresentation1207005
Vmwarepresentation1207005Vmwarepresentation1207005
Vmwarepresentation1207005chinitooo
 
Clasificación de los lenguajes de programación
Clasificación de los lenguajes de programaciónClasificación de los lenguajes de programación
Clasificación de los lenguajes de programaciónJavier Camacho
 
T001 72110280
T001 72110280T001 72110280
T001 72110280chinitooo
 
Elmodelo osi
Elmodelo osiElmodelo osi
Elmodelo osichinitooo
 

En vedette (8)

Vmwarepresentation1207005
Vmwarepresentation1207005Vmwarepresentation1207005
Vmwarepresentation1207005
 
T 25
T 25T 25
T 25
 
Clases 2002
Clases 2002Clases 2002
Clases 2002
 
Vmwarepresentation1207005
Vmwarepresentation1207005Vmwarepresentation1207005
Vmwarepresentation1207005
 
Vmwarepresentation1207005
Vmwarepresentation1207005Vmwarepresentation1207005
Vmwarepresentation1207005
 
Clasificación de los lenguajes de programación
Clasificación de los lenguajes de programaciónClasificación de los lenguajes de programación
Clasificación de los lenguajes de programación
 
T001 72110280
T001 72110280T001 72110280
T001 72110280
 
Elmodelo osi
Elmodelo osiElmodelo osi
Elmodelo osi
 

Similaire à Intrack14dec tips tricks_clean

Virtual Pc Seminar
Virtual Pc SeminarVirtual Pc Seminar
Virtual Pc Seminarguest5b5549
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization TipsYoussef EL HADJ
 
Using Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And TestingUsing Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And Testingelliando dias
 
Virtualization Primer for Java Developers
Virtualization Primer for Java DevelopersVirtualization Primer for Java Developers
Virtualization Primer for Java DevelopersRichard McDougall
 
how to install VMware
how to install VMwarehow to install VMware
how to install VMwarertchandu
 
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...Spiceworks
 
Lessons On Hyper V
Lessons On Hyper VLessons On Hyper V
Lessons On Hyper VAidan Finn
 
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...Nicolas Collery
 
MSMDC_CLI363
MSMDC_CLI363MSMDC_CLI363
MSMDC_CLI363mokacao
 
Windows Server Core
Windows Server CoreWindows Server Core
Windows Server CoreMark Wilson
 
S4 xen hypervisor_20080622
S4 xen hypervisor_20080622S4 xen hypervisor_20080622
S4 xen hypervisor_20080622Todd Deshane
 
Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...Pier Alberto Pierini
 
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsLet Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsNicolas Collery
 
RHEL5 XEN HandOnTraining_v0.4.pdf
RHEL5 XEN HandOnTraining_v0.4.pdfRHEL5 XEN HandOnTraining_v0.4.pdf
RHEL5 XEN HandOnTraining_v0.4.pdfPaul Yang
 
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersGet Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersUnidesk Corporation
 
ACRN vMeet-Up EU 2021 - installation and configuration introduction
ACRN vMeet-Up EU 2021 - installation and configuration introductionACRN vMeet-Up EU 2021 - installation and configuration introduction
ACRN vMeet-Up EU 2021 - installation and configuration introductionProject ACRN
 

Similaire à Intrack14dec tips tricks_clean (20)

Virtual Pc Seminar
Virtual Pc SeminarVirtual Pc Seminar
Virtual Pc Seminar
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
 
Using Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And TestingUsing Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And Testing
 
Virtualization Primer for Java Developers
Virtualization Primer for Java DevelopersVirtualization Primer for Java Developers
Virtualization Primer for Java Developers
 
how to install VMware
how to install VMwarehow to install VMware
how to install VMware
 
OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training OSSNA18: Xen Beginners Training
OSSNA18: Xen Beginners Training
 
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
Making IT Easier to Manage Your Virtualized Environment - David Babbitt, Spic...
 
Lessons On Hyper V
Lessons On Hyper VLessons On Hyper V
Lessons On Hyper V
 
Aplura virtualization slides
Aplura virtualization slidesAplura virtualization slides
Aplura virtualization slides
 
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
Needle In An Encrypted Haystack: Forensics in a hardened environment (with Fu...
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
MSMDC_CLI363
MSMDC_CLI363MSMDC_CLI363
MSMDC_CLI363
 
Windows Server Core
Windows Server CoreWindows Server Core
Windows Server Core
 
S4 xen hypervisor_20080622
S4 xen hypervisor_20080622S4 xen hypervisor_20080622
S4 xen hypervisor_20080622
 
Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...Rancher OS - A simplified Linux distribution built from containers, for conta...
Rancher OS - A simplified Linux distribution built from containers, for conta...
 
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened EnvironmentsLet Me Pick Your Brain - Remote Forensics in Hardened Environments
Let Me Pick Your Brain - Remote Forensics in Hardened Environments
 
RHEL5 XEN HandOnTraining_v0.4.pdf
RHEL5 XEN HandOnTraining_v0.4.pdfRHEL5 XEN HandOnTraining_v0.4.pdf
RHEL5 XEN HandOnTraining_v0.4.pdf
 
Usenix Invited Talk
Usenix Invited TalkUsenix Invited Talk
Usenix Invited Talk
 
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersGet Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
 
ACRN vMeet-Up EU 2021 - installation and configuration introduction
ACRN vMeet-Up EU 2021 - installation and configuration introductionACRN vMeet-Up EU 2021 - installation and configuration introduction
ACRN vMeet-Up EU 2021 - installation and configuration introduction
 

Dernier

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 

Dernier (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 

Intrack14dec tips tricks_clean

  • 1. WIN388 Using Virtual PC 2004: Tips and Tricks Ronald Beekelaar Beekelaar Consultancy
  • 2. About the speaker Consultant and trainer from The Netherlands MVP - Virtual PC Using Microsoft Virtual PC 2004 For demos, presentations and courseware For hands-on labs at conferences Several security labs / XP SP2 labs For classes, studying and testing Contact: E-mail: ronald@beekelaar.com
  • 3. Agenda Topics How does Virtual PC work Architecture Networking Disks Hands-on labs at TechEd 2004 Amsterdam Tips Tips to optimize disk space Tips to optimize performance Tips for building VMs Tips for deploying VMs
  • 4. Agenda Not so topics Not in presentation Microsoft Virtual Server 2005 Comparison with other products Such as: VMware Workstation Upgrading from Virtual PC 5.2
  • 5. Agenda Presentation disclaimer Disclaimer Many tips are undocumented or unsupported Many examples are unsupported by Microsoft Product Support Services (PSS) Such as: running Win2003 in Virtual PC Not necessarily "best" practices Mostly things I use myself EULA Always need to follow product activation rules Always need to adhere to product licensing rule
  • 6. About virtual machines (VM) Software running on Windows (host) to create virtual computers Allows multiple operating systems and their applications to run in transportable virtual machines Each virtual machine (guest) is equivalent to a PC and a list of hardware devices Terms used: vm = virtual pc = image
  • 7. How does Virtual PC work Overview PC hardware emulation in a window Change configuration through GUI Configuration stored in .vmc file (XML) and options.xml file <hardware> <memory> <ram_size type="integer">256</ram_size> </memory> ... <pci_bus> <ethernet_adapter> <controller_count type="integer">2</controller_count> </ethernet_adapter> </pci_bus> </hardware> Guest OS doesn't "know" Only need to install VM Additions in guest
  • 8. How does Virtual PC work Hardware components BIOS AMI (plus APM 1.2 and ACPI) Network adapter DEC / Intel 21140 Based PCI Faster Ethernet Supported by the RIS rbfg.exe disk Sound Creative Labs Sound Blaster 16 Memory Max 3.6 GB CPU Sees only one processor
  • 9. How does Virtual PC work Architecture Virtual Virtual PC application on top of host OS Access CPU and memory directly Rest through host OS drivers VM port  host port VM SB16  host sound driver ... VM diskette  host diskette or .vfd file on host (1.44 MB) VM CD-rom  host CD-rom or .iso file on host VM disk  .vhd file on host VM network  host network or between VMs
  • 10. How does Virtual PC work Architecture config in vmc-file Sound Diskette CPU Mem Disk CD/DVD Network Ports USB Software Virtual PC VMM VPC host VPC host host host driver driver driver driver Hardware .vfd CPU0 CPU1 Disk .iso file
  • 11. How does Virtual PC work Virtual Machine Additions Provides: Performance improvements CPU - at 96-97% of host Network - at 70-90% of host Disk - at 40-70% of host Arbitrary screen resizing "Back-doors" Time sync Clipboard sync Shared folders Drag-n-drop
  • 12. How does Virtual PC work "Back doors" Z: VM Additions Software Virtual PC Virtual pc.exe Hardware Time Clip D:data %temp% Drag sync board & drop
  • 13. How does Virtual PC work Virtual Machine Additions When is VM Additions working At startup, look at icon Start (or restart) service if needed Look at Action/Properties/Advanced
  • 14. How does Virtual PC work Special keys Host-key + any Default host-key is <right>Alt <right>Alt-Del = Send Ctrl-Alt-Del <right>Alt-Enter = Full screen <right>Alt-← → = Prev / next VM <right>Alt key = Uncapture mouse Tip: After using <right>Alt-Enter (full-screen) multiple times, the keyboard may no longer respond To resolve: press Ctrl key twice
  • 15. Networking Overview Uses a virtual switch and virtual network adapters (max 4) and virtual "virtual machines" Three configurations (per adapter) Shared Networking (NAT) Connect to host adapter Local only
  • 16. Networking Three configurations Shared Connect to Local networking adapter only .1-.253 (NAT) 10.1.2.7 10.4.1.1 DHCP/NAT Other VM Other VM local local .254 10.1.2.6 10.4.1.2 Virtual PC.exe host 10.1.2.6 10.1.2.4 10.1.2.4 10.1.2.4 10.1.2.4 external 10.1.2.7 C:> ipconfig /all C:> ipconfig /all C:> ipconfig /all IP Configuration IP Configuration IP Configuration MAC Address : 00-03- MAC Address : 00-03- MAC Address : 00-03- FF-... FF-... FF-... IP Address : IP Address : 10.1.2.7 IP Address : 10.4.1.1 192.168.131.65 Subnet Mask : Subnet Mask : Subnet Mask : 255.255.255.0 255.255.255.0 255.255.255.0 Gateway : 10.1.2.1 Gateway : - Gateway : DHCP Server : 10.1.2.30 DHCP Server : - 192.168.131.254 DNS Server : DNS Server : - DHCP Server : 10.6.180.53 Lease : - 192.168.131.254 Lease : 7 days
  • 17. Networking Additional information Shared networking (NAT) DNS address is copied from host computer Default gateway is 192.168.131.254 Multiple VMs using NAT on some host computer cannot communicate To create seperate networks with multiple VMs: 1 Install Microsoft Loopback Adapter(s) 2 Ensure Virtual Machine Network Services is enabled 3 Connect VM to Loopback adapter
  • 18. Disks Overview Hard disks IDE (max 3x) - no SCSI Types Virtual disk (dynamically expanding) Stored in .vhd file on host Fixed size disk Differencing disk Stores changes from .vhd Linked to hard disk
  • 19. Virtual Disks Disk files VM disks stored in files on host "Normal" disk .vhd Differencing disk .vhd (.vhdd) Undo disk .vud Saved state file .vsv Note: I added custom elements, which are not in Virtual PC Pie chart icons are custom .vhdd extension is custom
  • 20. Virtual Disks File locations .vhd disk file In folder you specify in settings .vhdd disk file In folder you specify in settings .vud disk file In vmc-file folder .vsv disk file In vmc-file folder
  • 21. Disks Topics Undo disks Three disk modes Persistent / undo-ask / undo-always Saved state Differencing disks Several uses: Save disk space / Quick testing / Phased distribution / Sequential delta VMs Repeatable Restore At Tech-Ed 2004 Amsterdam hands-on labs
  • 22. Disks Undo disks Disks images can be made undoable Specify folder to store undoable file per VM Stored in .vuh files ( ) All "writes" are done to .vuh file, not to .vhd file Setting for all disks in a VM
  • 23. Disks Three disk modes Start up Running Close Running VM Persistent host 1-Save state 2-Turn off and save/Commit Undo-Ask 2-Turn off and save Start up 3-Turn off and delete Undo-Always = .vhd file = .vsv file = .vud file
  • 24. Disks Commit hard drive changes Commit means: Merge vuh undo file with vhd file
  • 25. Disks Saved state Store current "state" of running VM in a file, and close VM window Goal: to continue later at this exact spot Stored in .vsv files ( ) Contains current memory and window settings Running Saved Restore (= Start up) Memory contents Window settings
  • 26. Disks Differencing disks Write changes not to main vhd disk, but to other disk file Create a new difference disk in Virtual Disk Wizard Plus point to parent vhd disk Stored in .vhdd files ( ) Is actually the same as an .vuh undo disk Creates delta VMs Delta VMs is not an official term, I made it up
  • 27. Disks How differencing disks works Virtual PC Read Write Create Delete 3 1 2 3 4 Grow File-c.doc File-d.doc 1 2 3 4 1 2 3 4 1 2 3 4 Read only File-a.doc File-b.doc File-d.doc
  • 28. Differencing Disks Tips Never change the parent vhd disk. It will break all delta VMs! Make the parent vhd disk read-only When creating multiple delta VMs, make sure they are "unique" Computer name (rename) Computer SID (Sysprep or other SID tool) IP address (DHCP) MAC address (automatic)
  • 29. The case for differencing disks Overview Differencing disks have many purposes 1 Smaller size on host Miami.vhdd.zip: 12 MB 2 Quick testing 3 Phased distribution Only offer delta VM for download 4 Sequential delta VMs Fool proof demo or lab modules
  • 30. The case for differencing disks 1- Smaller size on host Use less space on host Miami.vhdd: 410 MB Works well with NTFS compression: 26 MB Works excellent with ZIP: 12 MB
  • 31. The case for differencing disks 2 - Quick testing Quickly create temporary VMs Steps 1 Create difference disk for existing vhd file 2 Start up VM using the new vhdd file 3 (Test, test, test...) 4 Shut down VM Keep vhdd file for later, or delete now Costs less mental concentration than using Undo-Ask
  • 32. The case for differencing disks 3 - Phased distribution Only offer delta VMs for download Steps 1 Provide one or more "perfect" Windows XP or Windows Server 2003 master VMs 2 Offer delta VMs for download that use the master VMs 3 'Relink' the delta VMs to the parent (master) VM
  • 33. The case for differencing disks 4 - Sequential delta VMs Fool proof demo or lab modules Use a separate (growing) delta VM to start each demo or lab module Demo Use for series of 'fool proof' demo steps Lab Use to continue course at any lab Use for 'student proof' lab configuration
  • 34. The case for differencing disks 4 - Sequential delta VMs Lab module 1 Steps Lab module 2a 1 Create difference disk Lab module 2b Lab module 3 2 Start up on VM Lab module 4 3 Do next demo or lab Lab module 5 4 Shut down VM 5 Copy and rename difference disk 6 Go to step 2 7 For each diffence disk, create a separate VM Demo or lab can now be started from any module, or completed sequentially
  • 35. Tech-Ed 2004 Amsterdam Self-paced hands-on labs - Setup Host computers 2 GB memory 171 labs on 270 host computers Two user accounts: Admin - full administrative access HOL User - locked down user Windows XP SP2 and Virtual PC 2004 lock down Set up Use Admin account to deploy VMs for HOL User Register VMs Set options in Options.xml
  • 36. Tech-Ed 2004 Amsterdam Self-paced hands-on labs - Lab Menu Lab Menu List each lab on host computer Start multiple VMs - in order - with delays in between Use Repeatable Restore To avoid long VM boot times To avoid password confusion
  • 37. Repeatable Restore General Always restore at same point (saved state) Not a feature of Virtual PC 2004 But can be done: Copy the same initial save state files before each startup Virtual PC deletes save state files are startup
  • 38. Repeatable Restore Setup Setup 1 Enable Undo disk 2 Start VM 3 Configure desired state (log on, etc) 4 Close VM and Save State 5 Disable Close dialog box
  • 39. Repeatable Restore Use Use 1 Start VM by using script Make copy of initial save state files Start VM Brings up VM in a few seconds Which removes one copy of save state files 2 Use started VM 3 Close VM No Close dialog box displayed
  • 40. Tips Topics Tips to optimize disk space Tips to optimize performance Tips for building VMs Tips for deploying VMs Tips for troubleshooting
  • 41. Tips to optimize disk space Overview Best tip: Understand disks Four relevant sizes: a. In VM: maximum disk capacity Not so relevant to optimizing disk space b. In VM: used disk size Stored in vhd-file c. On host: current size of vhd-file Contains b. + contains deleted files d. On network: size of zipped vhd-file Based on "patterns" in vhd-file
  • 42. Tips to optimize disk space a. In VM: maximum disk capacity You cannot enlarge the maximum disk capacity of a vhd-file Just pick a large size up to 16 GB I always pick 4000 MB
  • 43. Tips to optimize disk space b. In VM: used disk size Delete files that are not used: Files left over from installation Files only needed during installation Files that are always created anew at startup or when needed Files that are "cache" representations Files that are backup copies Files that are not applicable in the VM
  • 44. Tips to optimize disk space Delete files and folders Not needed Empty dllcache folder (-400 MB) run sfc.exe /cachesize=1 restart guest (if needed) run sfc.exe /purgecache Empty ServicePackFilesi386 folder and $NtServicePackUninstall$ folder from windows (-280 / - 250 MB) Delete drivers.cab / SPx.cab from windowsDriver Cachei386 (-60 MB)
  • 45. Tips to optimize disk space Delete files and folders Left over from installation Virtual Machine additions del windowsinstallernnnnn.msi (-14 MB) Ensure you delete the correct msi-file Exchange 2003 rd /s %temp%SITnnn folder 3x (-53 MB) del c:Exchange Server Progress Log (-2 MB) NewSID 4.03 rd /s windowssystem32configNewsid Backup (-13 MB)
  • 46. Tips to optimize disk space Delete files and folders Rebuilt when needed rd /s windowssystem32wbemAutoRecover (-7 MB) del windowsinf*.pnf (-25 MB) del windowsinfinfcache.1 (-1 MB) del windowsprefetch*.* (-5 MB) Note - why not to do this: This may cost performance These files may be stored in each difference disk, when deleted from parent disk
  • 47. Tips to optimize disk space c. On host: current size of vhd-file Sparse-file Starts with size "0" Writes in 2 MB blocks Zero-filled files do not use space Examples res1.dat, res2.dat (10 MB each) pagefile.sys (hundreds MB) So don't worry about a large paging file
  • 48. Tips to optimize disk space Writing zero-filled files Virtual PC Write Write Read 000 000 000 000 000 000 000 000 000 000 1 2 3 4 1 2 3 4 5 000 000 000 1112 000 000 000 000 000 ... 000 000 1 2 3 4 1 4 File-a.doc Pagefile.sys
  • 49. Tips to optimize disk space How to create an empty paging file 1 Use Control Panel/System to configure no paging file 2 Restart the VM Existing pagefile.sys is deleted 3 Use Control Panel/System to configure a "normal" paging file New pagefile.sys is completely empty (almost) Tip: develop VM with high RAM setting (512 MB+) to minimize pagefile.sys usage
  • 50. Tips to optimize disk space c. On host: current size of vhd-file Deleted files do still use space To solve: Create and delete a zero-filled file that overwrites all the previously deleted space ("clean-up") Move all the non-zero blocks ("compact") Can use the Precompact.iso tool
  • 51. Tips to optimize disk space Steps - clean up and compact 1 Start up without Undo disks In VM - clean up: 2 Defragment disk Possibly defragment twice 3 Zero-fill all unallocated sectors Use Precompact.iso With Virtual PC 2004 SP1 4 Shut down VM
  • 52. Tips to optimize disk space Steps - clean up and compact On host - compact: 5 Use Virtual Disk Wizard to compact the disk image file Check disk size and NTFS compressed disk size to estimate "space" in vhd-file
  • 53. Tips to optimize disk space d. On network: size of zipped vhd-file Delete files that are "compressed" intro.wmv, title.wma from windowssystem32oobeimages (-4 MB) msgr3en.dll, nls302en.lex from windowssrchasst (-8 MB) XP: music.wma from Documents and SettingsAll Users DocumentsMy Music (-4 MB) XP: windowshelptour folder (-27 MB) Will give Windows File Protection (WFP) message
  • 54. Tips to optimize disk space d. On network: size of zipped vhd-file Do not do: zip files inside VM ! This makes the vhd-file 25% smaller, but the resulting zipped vhd-file (zip of zip) is much larger
  • 55. Tips to optimize disk space General tips Remember In a sparse vhd file, every "write" to a new location costs 2 MB Files with only zeros are "free" Tips Develop VM with lots of RAM to keep pagefile.sys unused (is only zeros) Do not use or disable "smart" disk activities Dynamic disks (Win2000+) System Restore (Win XP) Shadow Copies (Win2003)
  • 56. Tips to optimize disk space Example - steps at guest After installation OS+SPs 1408 MB Example is Win2000 Server Empty dllcache folder -250 MB run sfc.exe /cachesize=1 restart guest (if needed) run sfc.exe /purgecache Empty ServicePackFiles folder -196 MB from %windir% Delete drivers.cab / SPx.cab -55 MB from %windir%Driver Cachei386 Empty %temp% folder -14 MB
  • 57. Tips to optimize disk space Example - steps at guest Turn off XP System Restore -150 MB Control Panel/System/System Restore Especially important to prevent disk growth later (!) In hidden, forbidden System Volume Information folder Defragment disk (in guest) (prepare) Allows much better shrinking in next step Compact disk (on host) (reclaim) Use Virtual Disk Wizard Reclaims zero space - 10 % Subtotal (after guest steps) 473 MB
  • 58. Tips to optimize disk space Example - steps at host Subtotal (after guest steps) 473 MB At host NTFS compress vhd file - 43 % No performance hit at guest measured Total (after host steps) 269 MB Original footprint was 1408 MB
  • 59. Tips to optimize disk space Offline storage of VM disks Zip vhd file for storage - 60% Subtotal (after guest steps) 473 MB Total (zip-file size) 185 MB On one CD-ROM: Easily fits multiple zipped VMs Especially if delta VMs are used
  • 60. Tips to optimize performance Number 1 tip Number 1 tip: Install Virtual Machine Additions Another number 1 tip: Run on a fast host disk - greatest bottleneck Do not run from network or redirected My Documents And another number 1 tip: Enable run at maximum speed
  • 61. Tips to optimize performance Other tips on host Defragment host disk Assign lots of memory to VM On notebook: NTFS compress disk files CPU is "faster" than disk access Exempt from anti-virus checking Virtual PC.exe or vhd (vhdd)/vud/vsv extensions
  • 62. Tips to optimize performance Windows Server 2003 guests Set display hardware acceleration to Full ! Default is lower setting Causes slow mouse and display At Control Panel/Display/ Settings tab/Advanced/ Troubleshooting Note: Leave the Visual Effects enabled They hardly effect overall performance
  • 63. Tips to optimize performance Windows Server 2003 guests Set DVD ATAPI device to PIO Only mode Initial DMA mode causes 10 second delay when opening My Computer Switches to PIO Only mode automatically after 6x delay, but use of Undo disks may prevent this See Microsoft KB 817472 At Device Manager/ IDE ATA-ATAPI controllers/ Secondary IDE Channel/ Advanced Settings/Device 0
  • 64. Tips for building VMs General tips Always configure Virtual PC to run at maximum speed Install OS in 40 minutes, versus 8 hours Use bootable ISO CD-image to install OS 1 Start VM 2 Use Action/Pause to pause VM 3 Use CD/Capture ISO image to use ISO file 4 Use Action/Reset to boot from CD Always install Virtual Machine Additions after installation of OS
  • 65. Tips for building VMs Customize environment Add verbs to .vmc extension Edit - Notepad.exe "%1" Register - Virtual PC.exe -registervm "%1" Open (Virtual PC.exe -startvm "%1") already exists Add shortcut Notepad.exe options.xml
  • 66. Tips for building VMs Install sound in Win2003 VM Virtual PC Sound Blaster 16 is not supported by Windows Server 2003 anymore 1 Copy wdma_ctl.inf and ctlsb16.sys from Windows XP to a folder 2 In device manager, select Sound Blaster 16 and click Update Driver 3 Browse to the folder, and install driver
  • 67. Tips for building VMs Copy files to VMs Several methods: Use Shared Folders (drag folder to icon) Files at z: in VM - I only use this Use drag-n-drop from host to VM Files at desktop or folder in VM Burn quick ISO image (drag iso-file to icon) Files at d: (CD-ROM) in VM Use networking (drive mapping) Need network configuration Cannot use Local Only networking
  • 68. Tips for building VMs Security Use Local Only networking to avoid any contact with outside network Patch VMs as if they are real machines on the network ICF / Windows Firewall does not protect Use NAT to have Connect to adapter protected access 10.1.2.7 Other VM local 10.1.2.6 host 10.1.2.6 10.1.2.4 10.1.2.4 ICF external 10.1.2.7
  • 69. Tips for building VMs Multiple VMs - difference disks Unique per VM Computer name : rename computer Computer SID : run Sysprep or SID changers I use Sysinternal's Newsid v4.03 IP address : manually or use DHCP MAC address : automatically different
  • 70. Tips for building VMs Multiple VMs - undo disks Careful with product activation Disable computer domain password change At VM - DC # Key: hklmsccssNetlogonParameters RefusePasswordChange = 1 (reg_dword) # DC never accepts pw change or at VM - member computer # Key: hklmsccssNetlogonParameters DisablePasswordChange = 1 (reg_dword) # Computer never changes pw Active Directory replication if multiple DCs and undoable, do not shut down and start up only one Restart VM is okay - does not "undo" changes
  • 71. Tips for building VMs Multiple VMs - time sync VPC Additions syncs time with host Does NOT take the time zone in account Only syncs the "system tray" time Ensure that all VMs use the same time zone in a domain scenario
  • 72. Tips for building VMs Multiple VMs - avoid confusion For lab Use background colors Use topology graphics Always use Undo-Always
  • 73. Tips for building VMs Cleanup Do not use Start/Run, but use cmd.exe to start other programs while building Keeps Run dialog list empty Empty Recycle Bin May even remove from desktop Clean up Start Menu Disable screen saver
  • 74. Tips for deploying VMs Installing VMs Installing Virtual PC interrupts network connection to host Unattended install possible (see online help) Register VMs by creating shortcuts to vmc-files In folder C:Documents and Settings<user>Application Data MicrosoftVirtual PCVirtual Machines For other user as well Shortcuts are case-sensitive (!) .vmc-extension has to be lowercase ? Note: Options.xml file is at C:Documents and Settings<user>Application Data MicrosoftVirtual PCOptions.xml
  • 75. Tips for deploying VMs Configure VMs Options.xml "Hide" Virtual PC console by moving off-screen # Options.xml /preferences/window/console/left_position = 4000 Closing Virtual PC console, closes all running VMs file.vmc (per VM) Disable VM window Close button # Sydney.vmc /preferences/command_line/override/disable_close = true Use Action/Close to close VM window instead
  • 76. Tips for deploying VMs How to restrict use Restrict use for lab users Set VM BIOS password At startup, press Del to enter AMI BIOS Set permissions on files and folders Disable parts of user interface # Registry hklmSoftwareMicrosoftVirtual PC5.0SecurityLocks = 0x02B (dword)
  • 77. Tips for deploying VMs Multiple VMs - start up When using a script to start multiple VMs: Use delays in between to avoid too much concurrent host disk activity VM VM VM VM Host Host
  • 78. Useful links Drivers DOS network adapter driver (dc21x4.dos) http://developer.intel.com/design/network /drivers/sla_ndis2.htm Tools Precompact.iso - zero fills unallocated sectors http://go.microsoft.com/?linkid=2615769 (with Virtual PC SP1) Newsid.exe - assigns random SID to (delta) VM http://www.sysinternals.com/ntw2k/source/newsid.shtml