Nems in KVM

Having issues? Post them here, and help other users.
Post Reply
corsairetc
Junior Member
Posts: 5
Joined: Fri Dec 04, 2020 3:26 am

Nems in KVM

Post by corsairetc »

Hello,
I just download qcow2 img by torrent. Could any one help me how can I imported to KVM. Itrying this:

Code: Select all

virt-install --name nems-vm --memory 2048 --vcpus 2 --disk /mnt/wd1TBraid1/kvm/img/NEMS\ Linux\ 1.5\ QCOW2\ Build\ 2.qcow2,bus=sata --import --os-variant debian10 --network bridge=br0 --graphics=none --console pty,target_type=serial

But it is black box. I cant connect it to vm via console and on my DHCP server I doesn't see any ip address lease.
Is there any how to import a run NEMS in KVM ?
Thank you for help.
corsairetc
Junior Member
Posts: 5
Joined: Fri Dec 04, 2020 3:26 am

Re: Nems in KVM

Post by corsairetc »

Hello, for all I find solution working for KVM.
1. .qcow2 image must be convert to .raw format like this:

Code: Select all

qemu-img convert /lib/kvm/img/nems.qcow2 /lib/kvm/img/nems.raw
I take some time when it's done.
2. Here is the import settings for KVM:

Code: Select all

virt-install --name nems-vm --memory 2048 --os-variant debian10 --network bridge=br0 --disk /lib/kvm/img/NEMS\ Linux\ 1.5\ QCOW2\ Build\ 2.raw --import
This will finish with success. If you check dhcp-lease-list you see nems with IP and that's it.
Hope this will help who struggle with KVM verison.
Post Reply