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:
- Use the following command to create an instance.
Create Instance Command
qm create <VMID> --name <VM's name> --agent 1 --bootdisk scsi0 --cores <CPU cores> --memory <RAM memory in MB> --net0 <network interface> --ostype l26 --scsihw virtio-scsi-pci --sockets <number of sockets>
where the following in 'qm create' command needs to be set to the following values:
--bootdisk scsi0
--ostype l26
--scsi0 Disk Fomat to 'qcow2', Disk Size to 56G
--scsihw virtio-scsi-pci
- To create the VMID image directory, use the following command.
mkdir <value set for --scsi0 which is path to VM storage name:$VMID>
- Copy the qVSA QCOW2 disk image to your VMID's image directory.
cp <path to uploaded qVSA QCOW2 disk image> <path to $VMID storage image disk>
For more information, see
Step 4: Copy the qVSA QCOW2 disk to Proxmox VM Directory -
Assign the boot disk image to the instance VMID, using the following command.
qm set <VMID> --boot order=scsi0 -scsi0 local:< $VMID storage image disk > --agent 1
Sample Instance
The following sample shows an example of creating a Proxmox scanner.
Example
qm create 108 --name qualys-scanner --agent 1 --bootdisk scsi0 --cores 2 --memory 4096 --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.open.x86_64-4.1.82-1.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 --agent 1