Desktop virtualization involves creating virtual desktops that run on centralized servers and are accessed remotely by users. Server virtualization, on the other hand, focuses on partitioning a physical server into multiple virtual servers, each capable of running its own operating system and applications. The primary difference lies in the end-use; desktop virtualization aims at providing individual users with virtual desktop environments, whereas server virtualization optimizes server resource usage and management.