Deploy Scanner Instance Using Command-Line 

Log in to your Proxmox server and run the following commands to launch a scanner instance.

Create Instance

To create an instance, perform the following steps from the Proxmox server:

  1. Use the following command to create a scanner VM.
    Provide an ID, not used by any other VM, a name, CPU cores, RAM, and a network for your VM. Qualys recommends a CPU-to-RAM ratio of 1:4 or 1:3.

    Command

    qm create 300 --name qualys-proxmox-scanner --cores 4 --memory 16384 --net0 virtio,bridge=vmbr0
    
  2. To import the Qcow2 disk into a Proxmox storage, use the following command. 
    You need to provide the Scanner VM’s ID, the full path to the qcow2 image, and the storage where the image is imported.

    Command

    qm importdisk 300 /root/qVSA.x86_64-4.2.20-2.qcow2 local-lvm
    
  3. Attach the disk to the created Scanner VM.
    Provide –boot order=scsi0 flag so the VM boots from the imported disk.

    Command

    qm set 300 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-300-disk-0 --boot order=scsi0
    
  4. Start the scanner VM by providing the VM’s ID.
    Now, proceed to Personalize the Scanner using the VNC Console to complete the scanner's configuration and enter the personalization code you generated.

    Command

    qm start 300      
    

Sample Instance

The following sample shows how to create a Proxmox scanner. 

Example

qm create 108  {}name qualys-scanner{-}  -bootdisk scsi0   --cores 4   --memory 16384   --net0 virtio,bridge=vmbr0   --ostype l26   --scsihw virtio-scsi-pci   --sockets 1
mkdir /var/lib/vz/images/108
cp /var/lib/vz/template/cache/qVSA.x86_64-4.2.xx-x.qcow2 /var/lib/vz/images/108/vm-108-disk-0.qcow2
qm set 108 --boot order=scsi0 --scsi0 local:108/vm-108-disk.0.qcow2

Next Step

Step 4: Personalize Scanner