$ sudo cp *.qcow2 /var/lib/libvirt/images $ qemu-img convert -f vmdk -O qcow2 GNS3\ VM-disk002.vmdk GNS3\ VM-disk002.qcow2 $ qemu-img convert -f vmdk -O qcow2 GNS3\ VM-disk001.vmdk GNS3\ VM-disk001.qcow2 Convert VMDK disk to QCOW2 and place them in KVM default image directory (set propper permissions). Wrote small FAQ how to create GNS3VM with virt-install in libvirt, how knows maybe someone find this usefull :-):ġ. Actually I decreases resources but it was running stable 6 students workshop (2x vSRX, 1x Ubuntu-Desktop, 1x VPCs, 2 switches plus Cloud per lab). See attached PNG, these are settings for my GNS3VM running in Lab. Juniper suggests some optimalizations for nested KVM envinronment but those were already present. I was looking for staff that would speed up my vSRXes and using Virtio-BLK disks gave me the most. Other tuning must be perfomed on hypervisor OS level but as I reviewed GNS3VM all most obvious staff is already setup. vRAM 8-16G (depends on how much will be consumed by your VMs, balooning helps here a lot and is supported in Linux kernels by default, Windows need special drivers). vHDD disks Bus type: Virtio-BPK (I was experimenting with cache mode but it does not seem to influence performance much, I plan to investigate that later).Ĥ. vCPU type: host (on workstation use balooning as it saves RAM).Ģ. For QEMU/KVM enterprise clusters we are using Proxmox PVE which manages its VMs by itself without intermediate layer (just like GNS3-server does BTW).īut I think there some general rules the one must keep in order to gain maximum performance.ġ. I am using Linux/KVM in different favours A LOT these days.įor single hosted type of use I prefer QEMU/KVM managed by libvirt via Virt-manager/Virsh (I guess this is what people do in most cases). They could even add it to 2.2 :-) since doing that is really trivial and would take a hour or two to find all SDB dependencied in scripts they have. I think GNS3 guys will have to modify a couple of scripts (I was not looking for all places where SDB is sued) when they decide to support GNS3VM officially. This works as a charm and you have better performance too. Shut down GNS3VM and change controller type in KVM guest definition from SCSI/ATA to Virtio.Use this UUID to m ount /opt (you ca use root partition from /etc/fstab as an example).Use "blockid" to find UUID for /dev/sdb1 partition. So you should first define GNS3VM as IDE or SCSI and run it (to let all initalization scripts do its work then log as root in shell and modify /etc/fstab NOT to use /dev/sdb1 to mount /opt. Virtio Blk devices is recognized as VDA in Linux kernel. You have to have SCSI/ATA hardisks configured when you first starting GNS3VM since there are scripts winthin the initialization process which uses SD as the name of the disk. Since GNS3 is build on the top of 18.04 LTS you have all drivers build in the kernel. My KVM GNE3VM has Virtio Blk disk and Virtio network adapters which guaranties best possible performance. I need to investigate it further to have my eight vSRX3.0 devices of JNCIE-SEC lab infrastructure easy to use with fabolous GNS3 ennvironment :-) That is why I started to think what differs GNS3VM for different HV platforms. I was really surprised GNS3VM on ESXi behaved so well (I cant use it since borrow space for tests only). I think I will stay with gns3-server installed for the time being on the top of Ubuntu18.04/KVM running on PVE platform until I find why GNS3VM boots my vSRX so slowly. I thought NFS could be the problem but checked that it is not. IT SHOULD BE SIMILAR TO MY UBUNTU/KVM CASES. I spent the whole day looking at GNS3VM settings but could not really find reasons why it was the worst case here. A small improvements when added "pti=off kpti=off spectre_v2=off" in /etc/default/grub and updated GRUB2 but it was really 2-3 minutes better that 14 minutes in plain PVE - Ubuntu 18.04/KVM - Juniper vSRX cases. I did all tests having KVM acceleration enabled, KVM nesting enabled, ACPIv disabled, PML disabled and finally QEMU KSM disabled. ESXi 6.7 - GNS3 VM for VMWare 2.2rc3 (local storage) - VSRX3 19.2R1 - 4m16s.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |