Setting Up CPTC Practice VMs in Proxmox
Virtual machines from prior CPTC competitions can be found at cptc.rit.edu. This post covers how to import those VMs into Proxmox and recover credentials on both Linux and Windows machines.
Importing a VMDK into Proxmox
Based off this YouTube video.
1. Create a Virtual Machine
- Give the VM a name
- On the OS tab, set to “Do not use any media”
- On the Disk tab, configure whatever you want — this disk will be deleted
- Set CPU, memory, and network as normal
- Click Create
2. Remove the Default Disk
- Detach the drive from the VM
- Once detached it will appear as an unused disk — remove it
- The VM should now have no disk attached
3. Import the VMDK
Open the shell on the Proxmox node hosting the VM and download the VMDK file:
1
wget <url-to-vmdk>
Then import the disk using:
1
qm importdisk <vmid> <file> <storage>
Example:
1
qm importdisk 200 example.vmdk tank
Replace
tankwith your storage pool name if it differs.
The disk will now appear as vm-<vmid>-disk-0 under VM Disks in storage.
4. Mount the Imported Disk
Before mounting, ensure the SCSI Controller is set to VirtIO SCSI.
Double-click the unused disk to mount it:
- Set the bus device to SCSI
- Confirm the correct disk image is selected
- Click Add
To expand the disk, select it and use the Resize Disk option.
5. Set Boot Order
Go to Options → Boot Order, add the new drive, and drag it to the top.
The VM is now ready to start or clone as a template.
Recovering Credentials on Linux
To reset the root password after importing a Linux VM:
- Spam Shift during boot when the Ubuntu logo appears
- Press
eto edit GRUB commands - On the line beginning with
linux, changerotorwand remove anyconsole=options - Append
init=/bin/bashto the end of that line - Press Ctrl+X to boot — you should drop into a root shell
- Remount the filesystem as read-write:
1
mount -o remount,rw / - Change the root password:
1
passwd
- Reboot:
1
reboot -f
Recovering Credentials on Windows
To reset a forgotten administrator password on a Windows VM:
- Boot from an ISO and open a Command Prompt
- Navigate to System32:
1
cd /d C:\Windows\System32
- Back up Utilman.exe and replace it with cmd.exe:
1 2
copy C:\Windows\System32\Utilman.exe C:\Windows\System32\Utilman.bak copy C:\Windows\System32\cmd.exe C:\Windows\System32\Utilman.exe
- Boot the machine normally
- On the login screen, click Ease of Access — this now opens a command prompt
- Reset the administrator password:
1
net user administrator <password>
- Once logged in, restore Utilman.exe:
1 2 3
takeown /f Utilman.exe icacls Utilman.exe /grant administrators:F copy Utilman.bak Utilman.exe